- VSCode Version:1.1.1
- OS Version: Ubuntu 15.10 64bit
Steps to Reproduce:
- User settings set like so:
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation":true,
- Open a C/C++ project with 4 space indentation.
- Open a file in the project, observe on the status bar Spaces:2 (expected: Spaces: 4)
- Click on the Spaces:2 setting in the status bar and select "Detect Indentation from Content".
- Observe that the status bar now says Spaces: 4.
- Switch to a different file with indentation of 4 spaces, it doesn't seem to matter.
- Observe that the status bar now say Spaces: 2 (expected: Spaces: 4)
- Switch back to the original file, observe that the status bar still stays Spaces: 2 (expected: spaces 4)
I've seen similar behavior with Makefiles and tabs, I manually switch to tab mode and every time I toggle back and forth from another file the tab mode is reset to spaces.