分析Notepad ++的Python正确性(即lint) [英] Python correctness (i.e., lint) analyzing for Notepad++
本文介绍了分析Notepad ++的Python正确性(即lint)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有人知道 pylint 或 pychecker 用于记事本++? 。或许如何使用在记事本++ pylint的
Does anyone know of anything like pylint or pychecker for notepad++? Or perhaps how to use pylint in notepad++.
推荐答案
如果您安装的 Python脚本插件,然后您可以添加一个包含以下行的新脚本以获得相当不错的结果:
If you install the Python Script plugin, then you can add a new script with the following lines to get pretty good results:
console.show()
console.clear()
console.run('cmd.exe /c '
+ 'C:\\Python26\\Scripts\\pylint.bat --reports=n -f parseable '
+ '"%s"' % notepad.getCurrentFilename())
输出将包含带错误/警告的行的超链接(如果文件名中没有空格......)
The output will include hyperlinks to the lines with the errors/warnings (if the filenames don't have spaces in them...)
这篇关于分析Notepad ++的Python正确性(即lint)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文