Vscode 常用快捷键

查找

Command + F

查找替换

Command + R

多行编辑

Shit + Option + I

先 Comand+A 批量选中多行,再Shift+Optaion+i 插入多行光标。

多行转一行

Control + Shift + j

先 Comand+A 批量选中多行,再 Control + Shift + j 转为一行。

批量替换

Command + Shift + L

  • 方法一:先选中一个要编辑的内容,再 Command + Shift + L 就批量选中所有相同的内容,再编辑;

  • 方法二:先Control + F 查找要编辑的内容,再 Command + Shift + L 就批量选中所有相同的内容,再Esc关闭查找框,再编辑。

  • 方法三:先Controll + R ,输入查找和替换的内容,再点击替换框后面最后一个图标。

0%