简体   繁体   中英

All lines of Python file are highlighted in Sublime Text 2

Every time I save my code in Sublime Text 2, all of the lines end up highlighted as seen below. It's pretty annoying, and I would love to disable it, but I'm not sure what triggered it in the first place or what to Google. Any ideas?

Sublime截图

The cause is SublimeLinter plug-in and its PEP-8 filter

https://github.com/SublimeLinter/SublimeLinter

Your code does not conform PEP-8 style guide:

http://www.python.org/dev/peps/pep-0008/

Writing code that matches the PEP-8 style guide is generally a good idea as it has been well-vetted by the community as being a generally productive and efficient coding style. You may find that following it allows others to comprehend your code better. Of course, any code that parses and runs correctly might be 'good enough' for your purposes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM