Try using VSCode's integrated terminal

Hello,
I'm Mandai, the Wild Team member of the development team.
Visual Studio Code (VSCode) is well-known for becoming more familiar the more you use it.
In this article, we will introduce some tips to make the terminal more convenient, focusing on the Windows environment.
Command Line Tool Defaults
This applies to command line or PowerShell.
If you have a shell environment you want to use other than the default, add the following setting to settings.json.
{ // Standard Windows command line // "terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\cmd.exe" // PowerShell // "terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe" // Git Bash // "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe" // Bash on Ubuntu //"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\bash.exe" }
To edit settings.json, press Ctrl + P and enter settings
It seems that you cannot use multiple shells, so you will have to choose one of the four shells that you are familiar with
If you want a Linux-like shell, you have to use Git Bash or Bash on Ubuntu (Insider Preview required), so it's a bit of a pain that you can't use it in its original state, but it's probably more efficient to use an environment you're familiar with, so a little bit of effort is unavoidable
Useful keyboard shortcuts for the VSCode terminal
VSCode is designed to allow you to do almost anything without using a mouse.
There are also some great shortcuts around the terminal, which I've compiled in a table.
| Ctrl + @ | Show/hide terminal |
|---|---|
| Ctrl + Shift + @ | Open a new terminal (open one if it's not already open) |
| Ctrl + K | Clearing the Terminal |
| Ctrl + Up | Scroll up one line at a time |
| Ctrl + Down | Scroll down one line at a time |
| Ctrl + Page Up | Scroll up one screen |
| Ctrl + Page Down | Scroll down one screen |
| Ctrl + Home | Scroll to the top of the terminal |
| Ctrl + End | Scroll to the end of the terminal |
| In the command palette, type ">trs" |
Copy the selected string and run it in the terminal In this regard, the Command Palette allows you to narrow down your search using spaces, so the combinations are endless. Try to come up with your own combinations As new features are added, it may become difficult to narrow down your search to one item |
| Ctrl + c | On Windows, you don't need to press the Shift key to copy |
| Ctrl + v | On Windows, you don't need to press the Shift key to paste |
Note that there are no shortcut keys assigned for shifting focus to a terminal, moving to the previous or next terminal if multiple terminals are running, or killing a terminal, so you will need to set these yourself
By the way, if you want a command prompt in a separate window, press "Ctrl + Shift + c."
To change the terminal that opens in this case, change the value of the "terminal.external.windowsExec" key in settings.json.
The value entered here should be the same as the JSON string shown here
That's all
0