Comment indent
Brought to you by:
fabioz
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 : )