Home > Article > Development Tools > How to edit multiple lines of code at the same time in vscode
VScode has two modes for multi-line editing.
The first mode
Alt+Shift 竖列选择
In this mode, only vertical columns can be selected, and the cursor cannot be inserted at will. So it is only limited to the same column and no separation.
The second mode
Shift+Ctrl 竖列选择 Ctrl+光标点击 选择多个编辑位点
In this mode, you can not only select vertical columns, but also insert the cursor in multiple places.
Switching between two modes
Use the Shift Ctrl p shortcut key to call the query input field, enter "cursor", and "Switch multi-line modifier keys" will appear in the list this option. Select this option to switch between the two modes.
Recommended related articles and tutorials: vscode tutorial
The above is the detailed content of How to edit multiple lines of code at the same time in vscode. For more information, please follow other related articles on the PHP Chinese website!