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

前端 未结 7 711
再見小時候
再見小時候 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:11

    UPDATE

    While these methods work, newer versions of VS Code uses the Ctrl+] shortcut to indent a block of code once, and Ctrl+[ to remove indentation.

    This method detects the indentation in a file and indents accordingly.You can change the size of indentation by clicking on the Select Indentation setting in the bottom right of VS Code (looks something like "Spaces: 2"), selecting "Indent using Spaces" from the drop-down menu and then selecting by how many spaces you would like to indent.

    0 讨论(0)
提交回复
热议问题