Skip to content

Code formatting does not obey editor.insertSpaces #93

@alexdima

Description

@alexdima

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.

Metadata

Metadata

Assignees

Labels

BugfixedFixed and available in the stable version of C# Extension.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions