How to compile and run C files from within Notepad++ using NppExec plugin?

前端 未结 10 1444
北荒
北荒 2020-11-30 00:45

How can I configure the NppExec plugin for Notepad++?

I would like NppExec to compile my C files, run them, and show their output, all within Notepad++.

10条回答
  •  野性不改
    2020-11-30 01:18

    Here is the code for compling and running java source code: - Open Notepadd++ - Hit F6 - Paste this code

    npp_save <-- Saves the current document
    CD $(CURRENT_DIRECTORY) <-- Moves to the current directory
    javac "$(FILE_NAME)" <-- compiles your file named *.java
    java "$(NAME_PART)" <-- executes the program
    

    The Java Classpath variable has to be set for this...

    Another useful site: http://www.scribd.com/doc/52238931/Notepad-Tutorial-Compile-and-Run-Java-Program

提交回复
热议问题