Are there any spellcheck-style linting plugins?
-
Is there any support for graphical Python linting in Notepad++? I mean either the typical squiggly underline that I became accustomed to when I used VS Code, or maybe a step-through one-at-a-time wizard like npp’s own ctrl-F feature or the spellchecker show on the side of this article.
-
See https://notepad-plus-plus.org/community/topic/17989/nppexec-cppcheck-not-working-but-nppexec-pylint-is-working for instructions on getting an external linter interfaced to NPP via NppExec. It may meet your needs
-
Well, I just discovered the Linter plugin… but how do I make it work with pylint? What needs to go in the XML file?
-
-
In NppExec, execute the following (path may vary with your Python installation):
C:\Python37\Scripts\pylint.exe “$(FULL_CURRENT_PATH)”
You can add this as a Macro with: NppExec -> Advanced Options
You can jump from the error reported in NppExec console to the line with the error in the editor with: NppExec -> Console Output Filters
Depending on the linter that you run, you will have to tweak the filters and the order of the filters. I run both pylint and flake8.
I find this process to be very efficient. I tried VS Code for a while and I did not like it. I would rather use Vim…
Steve