I want to compile the opened file with an external tool in Command Prompt. How do I keep the Command Prompt window from closing after the compilation is finished?
- Go to Tools | External Tools | Customize Tools…. Click New.
- In the External Tool Properties dialog, Add
C:\Windows\System32\cmd.exeto the Command field.
/k ""program path" "$(Path)""to the Arguments field and replace
program pathwith the program’s executable file path.
/kargument keeps the Command Prompt window open as written here.
- Optionally, find a suitable icon for Icon Path.
- Click OK. The command is available in the Tools toolbar.
The below screenshot shows an example for Node.