You can comment or uncomment lines and blocks of code using Ctrl+斜杠 and Ctrl+Shift+斜杠.
Ctrl+斜杠 comments or uncomments the current line or selected block with single line comments (//...).
Ctrl+Shift+斜杠 encloses the selected block in a block comment (/*...*/).
To uncomment a commented block press Ctrl+Shift+斜杠 anywhere inside it.
网友评论