NOTEPAD ++:
Run notpad ++ and click "Run-" run ". A pop-up box is displayed.
Compile source code:
Cmd/k gcc-o configure (name_partcmd.exe "$ (FULL_CURRENT_PATH)" & PAUSE & EXIT
Run the executable file generated in the previous step:
Cmd/k "$ (NAME_PART)" & PAUSE & EXIT
Note:
The quotation marks must not be omitted if the file name or path contains spaces.
& PAUSE indicates that after the command is run, the PAUSE waits for the keyboard operation
& EXIT indicates that after the operation is complete, EXIT the running window and return to notepad ++.
The gcc bin directory has already been set in the system environment variables. Otherwise, you must complete the absolute path of the gcc command.
The following describes how to configure NppExec (used to Build and Run java files ):
Build Java
--------------
Cd "$ (CURRENT_DIRECTORY )"
D: "Java" jdk1.6.0 _ 03 "bin" Javac.exe "$ (FILE_NAME )"
Or:
Run Java
-------------
Cd "$ (CURRENT_DIRECTORY )"
D: "Java" jdk1.6.0 _ 03 "bin" java.exe "$ (NAME_PART )"
Build & Run Java
------------------------
Cd "$ (CURRENT_DIRECTORY )"
D: "Java" jdk1.6.0 _ 03 "bin" Javac.exe "$ (FILE_NAME )"
D: "Java" jdk1.6.0 _ 03 "bin" java.exe "$ (NAME_PART )"
My compilation + run: F6 --> (Save the following content as RUN_G ++)
NPP_SAVE // save changes before Compilation
G ++ $ (FILE_NAME) // compile the file
Cmd/k a <in.txt & exit // call the terminal to run the generated file and input data from in.txt.
In addition, I feel that the NPP commands of NOTEPAD ++ are getting more and more powerful, especially when running other commands in the console window.