Menu

Saving file before Run External

2007-11-28
2012-11-13
  • Nobody/Anonymous

    I'm using the run external command to launch a compiler, but everytime i make changes to the code I have to hit ctrl-s to save and only then can run the command.

    I was wondering if there's a command i can program into the run external window to also save the file(s) before firing off the compiler.
    e.g. save $(CURRENT_FILE(S))

    or is there another easier way to do this?

     
    • Nobody/Anonymous

      You could use npp_exec plugin:
      npp_save  -  save current file in Notepad++
      npp_save <file>  -  save specified file opened in Notepad++

      then with npp_run you can launch your external compiler
      All this command can be part of a script that you can run from the plugin

      Regards

      Mauro