Shortcut for multiline comments in VS Code:
Shift
+ Alt
+ A
This works for creating a docstring in Python, since a docstring is done in a multiline comment style. The only catch is that the entire line needs to be highlighted in order to wrap it in the triple quotes (in contrast to setting a single line as a comment, where all you need to do is have your cursor on that line then hit Command
+ /
).
To select an entire line, you can triple click at the end of the line (your cursor must be at the end of the line), but that’s kind of annoying. There’s gotta be a better way! I believe Command
+ L
is supposed to work, but it’s not working on mine.
Top comments (0)