#593 Comment indent

open
nobody
None
5
2013-05-09
2013-05-09
M Z
No

In PyDev (multiline) comments (Ctrl+/) always prepend the comment character # on the beginning of the line. This behaviour might not be preferred for the user (at least for me it is not). The comment character # should, instead be added with the right (smart?) indent, corresponding to the line above.
Let me clarify, say I want to comment the body line(s) of the function definition of dummy:

def dummy(a):
    b = a     # Comment those  
    c = b+1   # two lines

What happens:

def dummy(a):
#    b = a     # Comment those  
#    c = b+1   # two lines

What is preferred:

def dummy(a):
    # b = a     # Comment those  
    # c = b+1   # two lines

Hope that made things clearer : )

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks