开发者

Eclipse PyDev bug when trying to comment out 300+ lines with """docstring"""

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 i开发者_如何学JAVAs a bug"
...
...
Bug = "This is a bug"
"""


I prefer pyDev plugin with Eclipse.

But if you feel its problem checkout following:

  • NetBeans python ide check features from their wiki page
  • PyCharm from JetBrains


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜