-
Notifications
You must be signed in to change notification settings - Fork 679
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
csharp: Shift+Alt+F not honouring "editor.tabSize": 2 #24
Comments
Thanks this has led me to find a work around for now. Relates with OmniSharp/omnisharp-roslyn/issues/366 So adding an omnisharp.json content: {
"FormattingOptions": {
"useTabs": false,
"tabSize": 2,
"indentationSize": 2,
"smartIndent": 2,
"newLine": "\n"
}
} Do you know if there is way I can also specify the CSharpFormattingOptions too? |
@jrieken Thank you for keeping my issue current with the multiple submissions in different repos. I tested this workaround and I am unable to get it to work for me. I tried placing the |
@TJSoftware one extra thing that has to be done is to restart vs code after creating the omnisharp.json file. |
@pflannery Yes, I had done that, just in case I did it again. I still have the same results. I tested this on both my host and vm machines. They are both Windows 10 pro. I rebooted the vm just for fun, still no change. |
@TJSoftware looking again at your screen shot it might be that the "editor.tabSize" is set to 4 in your user\workspace settings. In your screen shot I can see 4 spaces from left but only two spaces once inside the c# class block. |
@pflannery I actually tried both the workspace and the user settings before. My original submission is here. I double checked to make sure my current settings have this. Here is another screenshot with relevant settings. I am still seeing issues with the format in |
I tested with the same settings as before in the latest insider. The results are the same, formatting works in Node still shows as 4.1.1 P.S. thanks for sharing the insider builds 👍 |
This has been fixed with #1055 |
From @pflannery on January 27, 2016 12:50
v0.10.6
Executing Shift+Alt+F in a csharp file always defaults to a tab size of 4 regardless of my editor.tabSize preference.
But pressing tab in a csharp file does honour my tab size preference.
Also Shift+Alt+F works in javascript files.
Copied from original issue: microsoft/vscode#2439
The text was updated successfully, but these errors were encountered: