Skip to content

Formatting honours tab vs spaces setting only sometimes? #6667

Closed
@egamma

Description

@egamma

From @alexandrudima on January 27, 2016 13:6

Testing #2218

I have the following settings:

// Place your settings in this file to overwrite default and user settings.
{
    "typescript.tsdk": "C:\\Alex\\salsa\\node_modules\\typescript\\lib",
    "editor.tabSize": 4,
    "editor.insertSpaces": false
}

If I have a function indented with 5 spaces, and choose format, the 5 spaces get replaced with a tab:

function howdyAgain(name) {
     return 'hi';
}

If I have the same function indented with 4 spaces, and choose format, the 4 spaces do not get replaced with a tab:

function howdyAgain(name) {
    return 'hi';
}

Copied from original issue: microsoft/vscode#2443

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDuplicateAn existing issue was already created

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions