Skip to content

Instantly share code, notes, and snippets.

@CTimmerman
Last active July 30, 2021 10:42
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CTimmerman/3fc259d7867c38f6919e to your computer and use it in GitHub Desktop.
Save CTimmerman/3fc259d7867c38f6919e to your computer and use it in GitHub Desktop.
Notepad++ IDE setup
  1. Install Notepad++ (check "set as default HTML editor" to replace Notepad in IE).
  2. Download Plugin Manager zip, open it, and copy the two folders into your Notepad++ program folder, e.g. C:\Program Files\Notepad++ for the 64-bit version.
  3. Run Notepad++, update its plugins, and install "NppExec" via Plugins, Plugin Manager.
  4. Enter these scripts for Python debugging:

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

NPP_SAVE
cd "$(FULL_CURRENT_PATH)"
env_set PYTHONIOENCODING=utf-8
C:\Python34\python.exe -u "$(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 %LINE%
@CTimmerman
Copy link
Author

CTimmerman commented Apr 25, 2016

Add style checking using PyLint (pip install pylint):

Command: pylint.exe "$(FULL_CURRENT_PATH)" --errors-only (switch last in case you want to &rem it.)

Filter: %FILE%:%LINE%:%CHAR%

@CTimmerman
Copy link
Author

CTimmerman commented Oct 27, 2016

And context-sensitive help using Shift+F1 (because F1 alone now shows About) with <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

@CTimmerman
Copy link
Author

CTimmerman commented Apr 6, 2017

Linux and MacOS can run the 32-bit (Plugin manager is missing in 64-bit version) Notepad++ via Wine. Add to MacOS dock via Applications, Automator, Utilities, Run shell script, /usr/local/bin/wine "C:\Program Files (x86)\Notepad++\notepad++.exe" (input via parameters), save in Applications, and drop that file to the dock.

@CTimmerman
Copy link
Author

@CTimmerman
Copy link
Author

CTimmerman commented Feb 24, 2020

Beercow didn't switch to Visual Studio Code. DBGP looks interesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment