silenttkillerr's blog

By silenttkillerr, history, 10 months ago, In English

In my vs code sometimes indentation automatically get shifted , like after while loop brackets when i click enter it should give 4 spaces but it give only 1 , and this error itself go in few hours. what is reason for this so i can fix it?

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
10 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by silenttkillerr (previous revision, new revision, compare).

»
10 months ago, # |
  Vote: I like it 0 Vote: I do not like it

There will be a tab-size:4 option in the bottom right. I think this tab-size:4 option is, by mistake, converted into spaces:2. Tap on it and convert it to tab-size:4.

»
10 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Open the settings screen by pressing Ctrl + , on Windows and Linux or Cmd + on macOS. Search for tab size and set your preferred number of spaces in the Editor: Tab Size field.