Follow these steps:
- Navigate to the file [ Consider the path to be "Desktop/practicals/prac1/pr1.c" ]
- Open the File [ pr1.c ]
- Go to Edit->Preferences
- Select the "Plugins" Tab
- Select "External Tools" and "Enable" it.
- "Close" the Window
- Go to "Tools->Manage External Tools"
- Select "Open terminal here" option from the left sidebar
- Change the "Shortcut Key" option to "Ctrl+Shift+T"
- Change the "Save" option to "Current Document"
- Change the "Output" option to "Nothing"
- "Close" the Window
- [ Edit the Current Document "pr1.c" ]
- [ Now, the document is NOT SAVED yet ]
- Press "CTRL+SHIFT+T"
- [ Terminal will Open at Current Working Directory ]
- [ File will be Automatically Saved ]
- Now you can execute the program directly ... :-)
Video: