You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice it indents by 2 characters (while showing the tab arrow).
Go to Settings and notice "editor.tabSize": 4,, "editor.insertSpaces": true, and "editor.detectIndentation": true,.
Change the latter two to false in User Settings. Also try changing tabSize to 4 there as well.
Save the file, close it, close the editor, open both back up again, and notice nothing has changed and the same problem happens on any file even with new typed or pasted tabs no matter what even if it's pasted from another source.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered:
@mccreeker Those are indeed the 3 settings that influence what pressing Tab will do:
// When opening a file, `editor.tabSize` and `editor.insertSpaces` will be detected // based on the file contents."editor.detectIndentation": true,// Insert spaces when pressing Tab. This setting is overridden based on the file // contents when `editor.detectIndentation` is on."editor.insertSpaces": true,// The number of spaces a tab is equal to. This setting is overridden based on the // file contents when `editor.detectIndentation` is on."editor.tabSize": 4,
All files will be opened with those settings. This will be confirmed in the status bar:
Here are some reasons why things might be not working for you:
You have installed an extension that uses VS Code API to tweak those settings at runtime. e.g. editorconfig extension. Try with disabling all extensions.
You have installed an extension that reimplements Tab. Try with disabling all extensions.
You have workspace settings; you open a folder and the folder has a .vscode/settings.json file where the user settings are overwritten.
You have modified your keybindings for Tab that it does something else than the default. Check your keybindings.json file.
So I checked that Spaces area at the bottom and noticed it said 2, clicked on it and changed it there, then did a 2nd review of all my settings and saw that "editor.tabSize": 2, was in Workspace Settings, which wasn't being respected before when I wanted to use that (for some reason, I'm not sure what I missed there), so I deleted it since I just want to use 4 now, restarted, and everything's working fine now. Thanks.
Steps to Reproduce:
"editor.tabSize": 4,
,"editor.insertSpaces": true,
and"editor.detectIndentation": true,
.Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: