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:
#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!