Reputation: 7601
i'm trying to auto-indent code in vscode, using alt+shift+f (i'm in OSX) and it works, only the indentation is 4 spaces instead of 2 which is what I want.
I set "editor.tabSize": 2
in settings.js (both user settings and workspace settings), but it seems to have no effect on automatic indentation.
How can I auto-indent using 2-spaces-indentation?
Upvotes: 2
Views: 1269
Reputation: 15167
V 1.0.0: Click on 'Spaces:' on the bottom status bar, select 'indent using spaces' and then select the number of spaces you want.
Upvotes: 4