how to change terminal in vscode 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: 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

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

Tags: