Kill a running Python script by pressing Ctrl+ C within the console window Use Ctrl+ W within the console to activate word wrap and not miss any useful output data The console window that docks to the main editor window does not have word wrap turned on by default. This makes sure that Python looks for the script in the current path, not the Notepad++ path. Make sure that you check the option Plugins -> NppExec -> Follow $(CURRENT_DIRECTORY). Use the shortcut Ctrl+ R to save and run the Python file Navigate to the script name and choose any shortcut keys like Ctrl+ R This allows us to assign shortcut keys through Settings -> Shortcut Mapper -> Plugin commands Under 'Menu item', choose the script we just created above, and 'Add/Modify' it to the Menu items with a suitable name. Go to the menubar, Plugins -> NppExec -> Advanced Options. The above lines basically tell NppExec to "save the current Python file and run it using the version of python that first appears in the path environment variables"Ĭlick on "Save" and type in a recognizable name such as 'run_python' Type the following lines in the window that pops up: NPP_SAVE ![]() Open a Python file in Notepad++, press F6 to execute I use the following steps:ĭownload (if it does not already exist) the NppExec plugin and place the. Notepad++ works great with the NppExec plugin. ![]() I honestly don't recommend installing an IDE for Python unless you use it for large-scale projects or work on large, complex scripts on a daily basis.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |