change vs code 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: code in terminal

cat << EOF >> ~/.bash_profile
# Add Visual Studio Code (code)
export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
EOF

Tags:

Misc Example