Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[folding] collapse multi single line comment shortcut #45003

Closed
LanceLovereading opened this issue Mar 4, 2018 · 2 comments
Closed

[folding] collapse multi single line comment shortcut #45003

LanceLovereading opened this issue Mar 4, 2018 · 2 comments
Labels
editor-contrib Editor collection of extras

Comments

@LanceLovereading
Copy link

LanceLovereading commented Mar 4, 2018

#Hi there, I'm using vscode to write python code. I want to fold comments in editor, but it seems that vscode does not support folding comments of python, neither single line comments(using Ctrl+/) nor block comments(using ALT+SHIT+A).

I searched on the Internet and find this: #11524.
Therefore, I tried it on a JavaScript file. It works perfectly for block comments in JavaScript(/* */ style), but it does support single line comments(// style).

So, is it possible to support multi line single line comment folding for python(hopefully for all language) in future?
@aeschli

@vscodebot vscodebot bot added editor editor-contrib Editor collection of extras labels Mar 4, 2018
@LanceLovereading
Copy link
Author

LanceLovereading commented Mar 4, 2018

I think I find a way to work out this question.
I found this:#31966.
Where @aeschli said:

The main reason is that our folding strategy is based on indentation only

So I can just add indentation to comments that I want to fold.

@microsoft microsoft deleted a comment from vscodebot bot Mar 6, 2018
@aeschli
Copy link
Contributor

aeschli commented Mar 6, 2018

Yes, the fold comment feature currently only works if the comment is a folding region based on the indentation.

@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-contrib Editor collection of extras
Projects
None yet
Development

No branches or pull requests

3 participants