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

前端 未结 10 1432
北荒
北荒 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:12

    Decompile with CMD:

    If those didn't work try this:

    cmd /K g++ "$(FULL_CURRENT_PATH)" -o "$(FULL_CURRENT_PATH).exe
    

    It should save where you got the file (Example: If I got file from Desktop, it will be saved as .exe on the Desktop)

    I don't know if it works on 64 bits though so you can try it!

提交回复
热议问题