Home > Development Tools > VSCode > body text

How to edit multiple lines of code at the same time in vscode

王林
Release: 2019-12-31 11:36:33
Original
12097 people have browsed it

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   竖列选择
Copy after login

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+光标点击 选择多个编辑位点
Copy after login

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!

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