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

Comment out lines according to indentation #2845

Closed
goanpeca opened this issue Dec 3, 2015 · 2 comments
Closed

Comment out lines according to indentation #2845

goanpeca opened this issue Dec 3, 2015 · 2 comments

Comments

@goanpeca
Copy link
Member

goanpeca commented Dec 3, 2015

Description

Commented lines are commented always on column 0, no matter what the indent. This results in the fold detector "incorrectly" detecting a fold where lines are commented out. Although not really an issue I would suggest to adapt the code to comment lines (Comment/Uncomment Ctl+1) to put the '#' on the indented level. This would allow for much cleaner code (this is my opinion) and would eliminate this 'bug'.

@goanpeca goanpeca self-assigned this Dec 3, 2015
@goanpeca goanpeca added this to the V3.0beta3 milestone Dec 3, 2015
@ccordoba12 ccordoba12 modified the milestones: v3.0beta4, v3.0beta3 Feb 10, 2016
@ccordoba12 ccordoba12 modified the milestones: v3.0beta4, v3.1 Apr 25, 2016
@benjello
Copy link

I strongly support this addition. I enjoy very much spyder but the way it deals with comment is very annoying. May be you should consider also changing the shortcut to Ctrl-/ like in many other editors (atom, vscode, etc)

@ccordoba12
Copy link
Member

This feature is (most probably) going to be addressed in Spyder 4.0


May be you should consider also changing the shortcut to Ctrl-/

I don't think we're going to do that but you could easily change it in Spyder 3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants