notepad++ download ：https://notepad-plus-plus.org/
1.notepad Click on the main interface F6, The following dialog box appears
2. Enter the following command in the dialog box ：
NPP_SAVE echo ========== Start execution python========== python $(FULL_CURRENT_PATH)
Click on Save, Input name （ for example RunPython）
3. Click on OK. If there are python Code , Will perform .
4. Add shortcuts . as follows ：
itemName Write casually , This is the name displayed in the shortcut key .
Associated script Select the one you saved to run python Script for
Click on Add/Modify , Click on OK sign out . Restart once Notepad For the settings to take effect .
Now you can see it in the macro menu RunPython Options. ; The last step ： Configure shortcut keys .
Click on “ Manage shortcuts ” Sub menu （ It's in a couple of options “ Manage shortcuts ”, It's all the same ）.
choice Plugin commands, find RunPython, double-click , Configure the shortcut key as shown in the figure . Be careful not to conflict , Conflict will prompt conflict found.
You can configure it according to your preference .