DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,274 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for Multiline Comments and Docstrings with VS Code
Jackson Reeves
Jackson Reeves

Posted on

Multiline Comments and Docstrings with VS Code

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)

Take a look at this:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›