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

Code formatting does not obey editor.insertSpaces #93

Closed
alexdima opened this issue Mar 15, 2016 · 5 comments
Closed

Code formatting does not obey editor.insertSpaces #93

alexdima opened this issue Mar 15, 2016 · 5 comments
Assignees
Milestone

Comments

@alexdima
Copy link

Moved from microsoft/vscode#3847
I have verified that we call on our side the format on type provider with the configured indentation options.


From @nixbb
It seems that the code formatter does not adhere to the indentation mode specified in the user settings.

Here's a simple example using version 0.10.10
In this case "editor.insertSpaces" is set to "auto" but this issue also manifests if it's set to false.
codeformattingbug

The example shows that all the indentation starts off as tabs.
The newly added line (line 11) is also indented using tabs.
When the statement is finished with a semicolon the current line and the next line is then indented with spaces.

Not shown in the gif is that an undo will revert line 11 and 12 to tabs instead of spaces.

Hope this helps narrow down the issue.

@0xdeafcafe
Copy link

Any updates on this? It's incredibly annoying.

@anfomin
Copy link

anfomin commented Jun 18, 2016

Is it alive?

@pavlos256
Copy link

Is this the reason that the "implement interface" uses spaces instead of tabs or should I file a new bug?

@0xdeafcafe
Copy link

@pavlos256 Same reason. It runs the format command on the relevant lines, which uses spaces.

@ivanz
Copy link
Contributor

ivanz commented Aug 16, 2016

For a potential workaround see here (how to use omnisharp.json): OmniSharp/omnisharp-roslyn#366

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

7 participants