Select the lines you want to comment
Windows/Linux: press Ctrl + /
Mac: press Cmd + /
Use the editor’s toggle line comment command
For block comments, use the language-specific block comment shortcut if supported
Windows/Linux: press Shift + Alt + A
Mac: press Shift + Option + A
