Notepad++ 's Nppexec plugin can invoke many compilers to compile code.
Like compiling Java:
"$ (Full_current_path)"-cp "$ (current_directory)" "$ (Name_part)"
Save As: Run Java
Compiling python:
Save As: Run Python
Then there is the automatic switch program:
if Goto Java if Goto "Run Java"goto"Run Python"goto endlabel endecho execution Complete
Save As: Run program
Then add the script to the menu item:
In notepad++, click: Plug-in--->nppexec--->advanced Options,
Add these scripts to the menu. Then restart notepad++.
Finally, configure the shortcut keys:
In notepad++, click: Macro---> Manage shortcuts--->plugin commands, configure shortcut keys.
I set the shortcut key for Run program to Alt+enter.
When I press alt+enter, whether I open the Python or Java,
I can automatically identify the build run without having to set different keystrokes or commands.
The same is true if you want to add a compilation to another language.
notepad++ automatically selects the corresponding compiler according to the language type to compile the code