本文翻译自:Multiline editing in Visual Studio Code
Is it possible to enable multiline editing like in Sublime Text ? 是否可以像Sublime Text一样启用多行编辑?
For example, press Ctrl to place additional cursor carets and being able to write/delete on multiple places in the document at one time. 例如,按Ctrl键可以放置其他光标插入符,并且可以一次在文档中的多个位置写入/删除。
#1楼
参考:https://stackoom.com/question/222Cm/Visual-Studio代码中的多行编辑
#2楼
On Windows, you hold Ctrl + Alt while pressing the up ↑ or down ↓ arrow keys to add cursors. 在Windows上,按住Ctrl + Alt,同时按向上↑或向下↓箭头键添加光标。 On Mac and Linux, the equivalents are ⌥ Opt + ⌘ Cmd + ↑ / ↓ and Shift + Alt + ↑ / ↓ , respectively. 在Mac和Linux上,等效项分别为⌥Opt + ⌘Cmd<