-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't format C# code #1918
Comments
Not sure if we support C# formating, joh? |
@Darktutu What does the OmniSharp log read (press Cmd+L, L)? |
@jrieken nothing in omnisharp log |
do you have a project.json file or a set of csproj/sln files? otherwise it won't work |
Hello, I have kind of the same problem with formatting javascript: Nothing happens if I format it. How can I add a project.json file or set a csproj/sln file so that formatting works. (as a suggestion: would be great if you wouldn't need to create files to format code) |
@FaicSilier JavaScript is independent of that. If you see issue with formatting JS please file a separate bug |
@jrieken I open a solution. but it didn't work。is vscode support c# format ? |
@Darktutu What does the OmniSharp log read (press Cmd+L, L)? It should not be empty |
This issue was moved to dotnet/vscode-csharp#5 |
For others encountering the same issue in VSCode on a Mac with the "Format Document" command missing when editing C# script try adding a "project.json" file in the root project folder with a version tag worked as suggested by @jrieken
|
version 0.10.6

The text was updated successfully, but these errors were encountered: