title | seoTitle | seoDescription | datePublished | cuid | slug | cover |
---|---|---|---|---|---|---|
Full Notepad++ Setup for Python |
Full Notepad++ setup for Python compiling |
How to fully setup Notepad++ to be used as Python compiler |
Sat Dec 31 2022 12:51:48 GMT+0000 (Coordinated Universal Time) |
cllqr2b6v00wyfxnvcyav1ksi |
full-notepad-setup-for-python |
If the Quick Notepad++ Setup for Python isn't your cup of tea, here's a full-blown setup you can try to make it world whole again as a Python dev.
Verify Python installation on the system. Open cmd and type:
python --version
If you haven't installed Python yet, get it here.
Install the "NppExec" plugin inside Notepad++. (Skip this if you have already done it)
Go to "plugins" --> "NppExec" --> click on "Execute"
When the command window pops up, add the following script and save it with a new name.
NPP_SAVE
cd $(CURRENT_DIRECTORY)
python $(FILE_NAME)
Create a menu item and hotkey to run the Python program:
Go to "plugins" --> "NppExec" --> click on "Advanced options"
Then, go to "settings" --> "shortcutmapper" and follow the instructions to create a shortcut.
Test run any Python program and voila!