vscode change terminal code example

Example 1: update vscode through terminal

sudo apt-get update
sudo apt-get install code

Example 2: change default external terminal vscode

The source link has the solution to this:

https://offering.solutions/blog/articles/2020/03/24/setting-windows-terminal-as-default-external-terminal-in-visual-studio-code/

Example 3: vscode switch between terminal and editor

// Toggle between terminal and editor focus
{ "key": "ctrl+`", "command": "workbench.action.terminal.focus"},
{ "key": "ctrl+`", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus"}

Example 4: vscode select terminal

# to select new default shell for the terminal in vs code:
- press F1 in VS Code
- typing/selecting Terminal: Select Default Shell