#8578
MattG
Participant

Hi!

Used your delivered default, sure “colapse comments” is on.
If it is turned off, what is not an option for me,
The handling is correct

Simply try it by yourself :)

As an example:
– – – – – –


def HelloWorld():
print "Hello World!"

def dummy2():
print "fubar1"
if foo == oof:
""" That some Test
"""
print "fubar2"
print "fold1"
# Just another comment
# and another

if __name__=="__main__":
HelloWorld()

– – – – – – –

If you turn “Make comments collapsible” off
you can fold the indented stuff correctly
– – – – – –


[+] def HelloWorld():[...]

[-] def dummy2():
| print "fubar1"
[+] if foo == oof:[...]

[+] if __name__=="__main__":[...]

– – – – – – —
If you turn “Make comments collapsible” on you get the following


[+] def HelloWorld():[...]

[-] def dummy2():
| print "fubar1"
| if foo == oof:
[-] """ That some Test
| """
| print "fubar2"
| print "fold1"
[-] # Just another comment
| # and another

[+] if __name__=="__main__":[...]

– – – – – –
Worse!

By the way it doesnt matter if you use the allowed “””-Comment or # after the if, to be correct after the first indentation.

In case you have a long procedure with comments you cant fold in an intelligent way anymore

Well… in the meantime till there is an solution I’ll have to use my Eclipse.

cheers
Matthias