如何在vscode中一次左移多行代码?

How to shift multiple lines of code to the left at once in vscode?

我尝试使用 ALT+CLICK 移动行,但它从单词 Height 中删除了 t 并且还打破了 loop.[=17 内的缩进=]

一次移动多行(包括折叠括号内的行)的正确方法是什么?

  1. Select 代码块并按 shift + tab
  2. Select 代码块 Ctrl + [(左移一个缩进),Ctrl + ] (右移一个缩进)
  3. 改为column selection,select所有行(光标移动代码的位置)+退格