Home > Development Tools > VSCode > body text

How to edit multiple lines at once in vscode

Release: 2020-01-10 13:45:01
Original
13251 people have browsed it

How to edit multiple lines at once in vscode

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template