views:

90

answers:

2

I don't know if you guys are having the same problem, but when I'm trying to use """ and """ for multi-lines comments in eclipse pydev, it sometimes does not work. Anybody can suggest me some better IDE?

Sorry. I will try to make this clearer. It happens every time when I try to comment off looong multi lines like 300 or so. Just type whatever expression such as Bug = "This is a bug", and copy paste this single line to make the whole script 300 lines, now if you want to comment off these 300 lines, normally you would add """ before all these lines, and then add """ in the end. You will find that these lines do not get comment-off aka coloring problem.

"""
Bug = "This is a bug"
Bug = "This is a bug"
...
...
Bug = "This is a bug"
"""
A: 

I prefer pyDev plugin with Eclipse.

But if you feel its problem checkout following:

YoK
Thanks I think I will stick with Eclipse, it's the best free tool I ever used.
Shane
A: 

I have this problem as well. It has been around for so long, I have become used to it. It tends to happen to me most when I am writing epydoc for functions. I do not think it is an actual bug that affects the code, but it makes typing comments more annoying. A quick fix that I have found is to:

Put the cursor before the initial ''', press enter, press ctrl+z.

That tends to fix it for me.

Hope that helps.

River
@River: I also found that when you are trying to comment off long multi lines, if the content between the two """ does not get comment off you can put the cursor at the end of the beginning """ and press enter, then all the content between should now become comments.
Shane
@Shane: I will keep that in mind. I have been doing some Python coding in vim and it occasionally has a similar problem as well.
River