How to comment multiple lines in vscode

(*-*)浩
Release: 2019-11-08 13:40:56
Original
16260 people have browsed it

How to comment multiple lines in vscode

Multi-line comments, also called block comments.

How to view and modify the multi-line comment shortcut keys in VS Code?(Recommended learning:vscode introductory tutorial)

1). Click Preferences - Keyboard Shortcuts

2). Enter comment## in the search box

#3). At this time, you can see the "Switch Block Comment" message, which is the shortcut key for the default multi-line comment.

Schematic diagram:

How to comment multiple lines in vscode

#If you want to change the multi-line shortcut key method you are used to, you can right-click the line - click Change Key binding - press the key combination - press Enter. At this time, the multi-line comment shortcut key is the shortcut key you set.

The above is the detailed content of How to comment multiple lines 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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!