Usually you need to write small programs to practice, but do not want to install a variety of software. Recent studies notepad ++ compiler environment configured in several languages, are summarized as follows.
- Install notepad ++ plugin NppExec
open notepad ++ -> Plugins -> Plugin Manager -> find NppExec click install.
After a successful installation: plug-ins -> NppExec -> Show Console (to display the console) -
Environment Configuration python
widget -> NppExec -> execute -> select <temporary script> -> text box, enter the following command:
NPP_SAVE
python "$ (FULL_CURRENT_PATH)"
where NPP_SAVE denotes a save key. (As)
When finished, click save, I named Python, can be according to their preferences.
Next: widget -> NppExec -> Advanced Options (below) -> select a previously saved the Associated script Python - Item name input the Python> (preferably in the same script name) -> bottom left, click Add / Modify -> (effective after reboot)> ok - the box will appear python
-
Test
new python file, write code, click Macros -> choose Python (as shown below).
Compiler environment has been created.
-
Java environment configuration
steps with Python same, but different command text.
Which echo newline.
Test: write java program -> Macros -> Java
testing successfully.
Text following command
NPP_SAVE
javac "$(FULL_CURRENT_PATH)"
echo
cd "$(CURRENT_DIRECTORY)"
java $(NAME_PART)
- Configuration C ambient
author named GCC
NPP_SAVE
gcc "$(FULL_CURRENT_PATH)" -o "$(CURRENT_DIRECTORY)\$(NAME_PART).exe"
echo
"$(CURRENT_DIRECTORY)\$(NAME_part).exe"
- Configuration C ++ environment
writer named G ++
NPP_SAVE
g++ "$(FULL_CURRENT_PATH)" -o "$(CURRENT_DIRECTORY)\$(NAME_PART).exe"
echo
"$(CURRENT_DIRECTORY)\$(NAME_part).exe"
This configuration is complete.
Report: on shortcut keys to set
the macro -> Manage Shortcuts -> Plug command -> find the need to set the shortcut command plugin -> double click Settings
Reproduced in: https: //www.jianshu.com/p/4e7110503aa0