Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Mithrilwoodrat/bea25f6e87b1130ac8dd53b06efca090 to your computer and use it in GitHub Desktop.
Save Mithrilwoodrat/bea25f6e87b1130ac8dd53b06efca090 to your computer and use it in GitHub Desktop.
  1. Install Notepad++ (check "set as default HTML editor" to replace Notepad in IE).
  2. Run Notepad++, update its plugins, and install "NppExec" via Plugins, Plugin Manager.
  3. Enter these scripts for Python debugging:

Press F6 to create a NppExec Execute script, save as "Run Python":

cd "$(CURRENT_DIRECTORY)"
py.exe "$(FILE_NAME)"

To mark and link (by double-click) errors, press Shift+F6 to add active Console Output Filters, with Red set to FF:

*File "%FILE%", line %LINE%,*
  1. And context-sensitive help using Shift+F1 (because F1 alone now shows About):
<Command name="Get Python help" Ctrl="no" Alt="no" Shift="yes" Key="112">https://www.google.nl/#q=python+$(CURRENT_WORD)</Command>

in %appdata%\Notepad++\shortcuts.xml (use a different editor for this to work)

  1. Add style checking using PyLint (pip install pylint):

Press F6 to create a NppExec Execute script, save as "Run PyLint":

C:\Python27\Scripts\pylint.exe --reports=n -f parseable "$(FULL_CURRENT_PATH)"

To mark and link (by double-click) errors, press Shift+F6 to add active Console Output Filters, with Red set to FF:

%FILE%:%LINE%:*

Error Only

%FILE%:%LINE%: [E*
  1. Better Python Standard Library Autocompletion for Notepad++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment