I want to know what is the shortcut for this comment tag like this (VS Code on macOS):
<!-- //////////////////////////////////////////////////////////////////////////////////////////////
START SECTION 3 - THE CAMPANIES SECTION
//////////////////////////////////////////////////////////////////////////////////////////////////// -->
CodePudding user response:
You can use "control /" it will comment out any selected line. Also you have to write the design of your comment yourself like if you want something like this "///////////////// START /////////////" then you hav to press ctrl / on this line after selecting it.
CodePudding user response:
Select the part of the code you want to comment and follow the methods:
Toggling comment blocks as shown below:
Windows: SHIFT ALT A
Mac: Shift Option A
/* a line of code
another line of code */
Another way of commenting is shown below:
Commenting:
Windows: Ctrl K C
Mac: Command K CUncommenting:
Windows: Ctrl K U
Mac: Command K U
// a line of code
// another line of code