Skip to content
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 #5

Closed
jrieken opened this issue Jan 20, 2016 · 10 comments
Closed

Can't format C# code #5

jrieken opened this issue Jan 20, 2016 · 10 comments

Comments

@jrieken
Copy link
Contributor

jrieken commented Jan 20, 2016

From @Darktutu on January 11, 2016 9:12

version 0.10.6
image 032

Copied from original issue: microsoft/vscode#1918

@jrieken
Copy link
Contributor Author

jrieken commented Jan 20, 2016

From @isidorn on January 11, 2016 15:23

Not sure if we support C# formating, joh?

@jrieken jrieken self-assigned this Jan 20, 2016
@jrieken
Copy link
Contributor Author

jrieken commented Jan 20, 2016

@Darktutu What does the OmniSharp log read (press Cmd+L, L)?

@jrieken
Copy link
Contributor Author

jrieken commented Jan 20, 2016

From @Darktutu on January 13, 2016 9:26

@jrieken nothing in omnisharp log

@jrieken
Copy link
Contributor Author

jrieken commented Jan 20, 2016

do you have a project.json file or a set of csproj/sln files? otherwise it won't work

@jrieken
Copy link
Contributor Author

jrieken commented Jan 20, 2016

From @FaicSilier on January 19, 2016 9:2

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)

@jrieken
Copy link
Contributor Author

jrieken commented Jan 20, 2016

@FaicSilier JavaScript is independent of that. If you see issue with formatting JS please file a separate bug

@jrieken
Copy link
Contributor Author

jrieken commented Jan 20, 2016

From @Darktutu on January 20, 2016 3:37

@jrieken I open a solution. but it didn't work。is vscode support c# format ?

@jrieken
Copy link
Contributor Author

jrieken commented Jan 20, 2016

@Darktutu What does the OmniSharp log read (press Cmd+L, L)? It should not be empty

@DustinCampbell
Copy link
Member

This is pretty old and I can't repro. When I open a folder containing an .sln file and right-click within a C# file, I see the Format Code in the context menu. @Darktutu is it still a problem for you?

image

@zerowang
Copy link

zerowang commented May 24, 2016

I got the same context menu as darktutu's screenshot.
and OmniSharp Log has:
[INFO] Starting OmniSharp at 'c:\Working Directory\Test_ASPNETCore'...

And stuck with that message forever.
This is on:
vscode: 1.1.1
C#: 1.0.11

UPDATE:
Fixed in this version:
vscode: 1.2.0
C# (OmniSharp): 1.1.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants