Integrates all the features that a modern editor should have, including syntax high lighting, customizable keyboard bindings ), bracket matching (bracket matching) and code snippet collection (snippets).
VScode has two modes for multi-line editing.
First mode
Alt Shift Vertical column selection
In this mode, only vertical columns can be selected and cannot be inserted at will. cursor. So it is only limited to the same column and no separation.
The second mode
Shift Ctrl vertical column selection
Ctrl cursor click to select multiple editing sites
This kind In mode, you can not only select vertical columns, but also insert cursors 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 at once in vscode. For more information, please follow other related articles on the PHP Chinese website!