Ask questionsImprovements for block comment

There should be no spaces by default inside the """.
Example: """Comments on a single line."""

If there's a text selection on multiple lines, the """ should be placed on separated lines above and below the selected lines.

Comments on
multiple lines.

I think that should be the default but it would be even better if you provide a setting to choose whether the starting quotes must be on a line by itself or not.

"""Comments on
multiple lines.

And the "toggle block comment" should be improved to uncomment the whole block when we executed the command with the cursor anywhere inside the comment or having a selection inside the comment.

See PEP-257.
Practical examples (Django): single line and multiline.


Answer questions luabud

Thanks for the suggestion! We talked about it with the team and we have unfortunately decided we will not be moving forward with this idea. We think there isn't an enough widespread need for this to warrant the maintenance cost for the feature.


Related questions

Auto Scroll in the Jupyter output hot 3
Workspace contains pipfile but pipenv --venv failed hot 2
Can you turn off the Microsoft Python Language Server? hot 2
Unable to debug Python tests (duplicate entries in "env") hot 2
Jupyter server crashed. Unable to connect. Cannot assign requested address hot 2
Auto Scroll in the Jupyter output hot 2
Unable to run launch targets with newest VS Code Python extension hot 2
Unable to start jupyter python interactive window hot 1
HBox output is not shown correctly in the interactive window hot 1
Debug -> Add Debug Configuration 'Cannot read property openConfigFile' hot 1
VSCode cannot connect to jupyter server; with browser this works fine hot 1
Linux arm64/aarch64 support hot 1
Add setting to disable icon for "Run Python File In Terminal" hot 1
Extension Host keeps crashing hot 1
Activate environment before debugging tests hot 1
Github User Rank List