Geany 0.20 上的语法检查/纠正
几天以来,我正在尝试很多编辑器/IDE。我正在为我的 Ubuntu 11.04 机器寻找适合 Python 的优秀 IDE。在尝试了几乎所有的IDE之后,我最终选择了Geany 0.20。
除了语法检查/更正之外,一切都按照我的要求进行。我还使用了 Eclipse,并且非常喜欢在其中检查语法错误。 Geany 上是否有任何插件可以检查/纠正语法错误?
Since few days, I am experimenting with lots of Editors/IDEs. I am looking for good IDE for Python on my Ubuntu 11.04 machine. After trying almost all the IDEs, I finally ended with Geany 0.20.
Everything is working as my requirements except syntax checking/correcting. I also used Eclipse and I really liked syntax errors checking in it. Is there any plugin to check/correct syntax errors on Geany?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用编译按钮/菜单来构建它,因此它会显示语法错误。
我在 Geany 上使用 php,效果很好。
You can use the compile buton/menu to build it, so it displays the Syntax errors.
I am using php on Geany, Works Great.
不幸的是,不,这样的插件不存在。但是,您可以将您的想法发送到他们的邮件列表或自己开发然后发送给他们,因为我认为很多人会从这样的插件中受益(我就是其中之一:)。
Unfortunately, no, a plug-in like that does not exist. But, you can send your idea to their mailing list or develop it yourself then send it to them because I think many people would benefit from a plug-in like that(me being one of those people :).
扩展 Vinoth.3v 的答案,我通过以下构建命令实现了它(不适用于 python,但概念是相同的)
使用上述设置将“Make all”设置为 ctrl+g,我可以按 ctrl+g 在当前文件上运行 jshint,并将输出显示在消息窗口的编译器选项卡中。它不是完全红色的波浪线,但无论如何我从来不相信它们。
Expanding upon Vinoth.3v's answer, I implemented it via the following build command (not for python, but the concept is the same)
with the above settings, I can hit ctrl+g to run jshint on the current file and have the output show up in the Compiler tab of the Messages Window. It's not quite red squiggly lines, but I never trusted those anyway.