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

editor.formatOnType does not respect editor.insertSpaces setting #14108

Closed
j-h-a opened this issue Oct 20, 2016 · 4 comments
Closed

editor.formatOnType does not respect editor.insertSpaces setting #14108

j-h-a opened this issue Oct 20, 2016 · 4 comments
Assignees
Labels
formatting Source formatter issues

Comments

@j-h-a
Copy link

j-h-a commented Oct 20, 2016

  • VSCode Version:
    1.6.1
  • OS Version:
    OSX (10.11.6)

Searchable description

VS Code keeps changing some lines to have spaces instead of tabs in the leading whitespace.

Steps to Reproduce:

Use these settings:
"editor.tabSize": 4,
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"editor.formatOnType": true,

Type some code that triggers formatOnType to activate a format change.

Expected behaviour:

Line is formatted using tabs for leading whitespace, because of the insertSpaces setting.

Actual behaviour:

Line is formatted with spaces instead of tabs for the leading whitespace.

@roblourens
Copy link
Member

Is this in an html file? Could be #13563

@roblourens roblourens added the info-needed Issue requires more information from poster label Oct 20, 2016
@j-h-a
Copy link
Author

j-h-a commented Oct 20, 2016

No, this is while editing C#

@roblourens roblourens added formatting Source formatter issues and removed info-needed Issue requires more information from poster labels Oct 20, 2016
@roblourens
Copy link
Member

Related @aeschli?

@aeschli
Copy link
Contributor

aeschli commented Oct 21, 2016

This issue was moved to dotnet/vscode-csharp#834

@aeschli aeschli closed this as completed Oct 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
formatting Source formatter issues
Projects
None yet
Development

No branches or pull requests

3 participants