Tips on how to efficiently use your Visual studio terminal while coding.
The terminal is used to execute commands during development. Nowadays, developers prefer running direct operations/tasks using the terminal over a Graphic user interface(GUI). Visit this 👉🏻 article to find out more.
In summary, the regular programming paradigm suggests running commands as a faster and better route while coding.
Some operations that require the use of terminal/commands while coding include:
- Installing and deleting dependencies
2. Running scripts or programs
3. Deploying to a version control system like github
4. Navigating, searching and manipulating files and folders etc
It is undeniable that a developer is capable of using the terminal several times while coding. As such, it is expected that any repetitive action should be handled in a single task to save time and avoid reoccurrence.
This article aims to remove the complexities involving the use of terminals during development.
Here are the tips to boast your productivity while working with the terminal.
- Launch your terminal with
code .
For mac users that have not activated this procedure, open the Command Palette (Cmd+Shift+P) and type ‘shell command’ to find the Shell Command: Install ‘code’ command in the PATH command
Restart the terminal for the new $PATH
value to take effect. Type 'code .' in any folder using your terminal to launch a vs code editor.
2. Always create a new terminal for every task
Use the + symbol
to add new terminals and always name the terminal based on the task they execute. This will reduce the headache of always creating a new terminal anytime one wants to run a command.
And, always add names to the created terminals based on the task they perform. Adding a name(s) to your terminals helps remind the purpose for which it was created.
3. Add colours in cases of naming uniformity
Colours can be added to differentiate terminals, especially those that have similar names or are used to perform similar or related tasks.
More tips will be added on discovery.
Recommend any in the comment section.
Thanks for reading.