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 #3847

Closed
nixbb opened this issue Mar 8, 2016 · 2 comments
Closed

Code formatting does not obey editor.insertSpaces #3847

nixbb opened this issue Mar 8, 2016 · 2 comments
Assignees
Labels
verified Verification succeeded
Milestone

Comments

@nixbb
Copy link

nixbb commented Mar 8, 2016

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.

@alexdima alexdima added this to the March 2016 milestone Mar 9, 2016
@alexdima
Copy link
Member

alexdima commented Mar 9, 2016

fyi @jrieken @dbaeumer

@alexdima
Copy link
Member

Moved to dotnet/vscode-csharp#93

@alexdima alexdima added the verified Verification succeeded label Mar 21, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants