Home >Development Tools >VSCode >How to comment multiple lines in vscode

How to comment multiple lines in vscode

(*-*)浩
(*-*)浩Original
2019-11-08 13:40:5616479browse

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!

Statement:
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