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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login