Skip to content

editor.detectIndentation:false not working properly for .go files #115607

@pprokopi

Description

@pprokopi
VSCode Version:code --version 1.48.2
OS Version: Fedora 32 x64

Steps to Reproduce:

Run code --disable-extensions
Create a .go file with a separate editor that has tab indentation
Set the following in user settings
"editor.detectIndentation": false,
"editor.insertSpaces": true,
"editor.tabSize": 4,
Make sure the workspace has no settings
Open the file
Check in the lower right corner if indentation is tabs or spaces

What I expected:
VS code ignores the already used indentation in the file and uses spaces for future indentation.

What happened:
VS code detected the indentation of the file and kept using tabs instead of spaces for indentation.

Does this issue occur when all extensions are disabled?: Yes/No
Yes

Metadata

Metadata

Assignees

Labels

editor-indent-detectionIssues around the guessing of indentation for filesinfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions