In IntelliJ IDEA, you can comment a line, the cursor is moved to the next line automatically. This is a very easy way to comment several lines. However, in VS Code, default behaviour is that the cursor stays on the same line.
To copy the behavior of IntelliJ, go with:
Install
macrosauthor by geddski in VS Code.Edit
settings.jsonand add:
1 | "macros": { |
- Edit
keybindings.jsonand add:
1 | [ |