How to shift a block of code left/right by one space in VSCode?

前端 未结 7 709
再見小時候
再見小時候 2021-01-30 08:46

In VSCode, I can use alt-up and alt-down to move a line or block up or down, but I can\'t find a command to increase or decrease indent by one space.

I can inde

7条回答
  •  礼貌的吻别
    2021-01-30 09:09

    Recent versions of VSCode (e.g., Version 1.29 at the time of posting this answer) allow you to change the Tab/Space size to 1 (or any number between 1 and 8). You may change the Tab/Space size from the bottom-right corner as shown in the below image:

    Click on Spaces:4. Then, select Indent Using Spaces or Indent Using Tabs and choose the size 1.

    Hope it helps.

提交回复
热议问题