xxxxxxxxxx
Open the Command Palette via (⇧⌘P) and type
shell command to find the Shell Command:
> Install 'code' command in PATH** command
xxxxxxxxxx
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
xxxxxxxxxx
this solution is for flatpak version of VS Code (for linux users)
1. Open VS Code
2. Copy below code :
// From here
{
"terminal.integrated.profiles.linux": {
"host-bash": {
"path": "/usr/bin/flatpak-spawn",
"args": ["--host", "--env=TERM=xterm-256color", "bash"]
}
},
"terminal.integrated.defaultProfile.linux": "host-bash"
}
// to here
3. and paste it into the "setting.json" then save it
4. kill your current terminal and reopen it
xxxxxxxxxx
Shell command for code must be installed. Open command Pallete in VScode
Mac: ShiftCmdP
Windows/Linux: ShiftCtrlP
And search "install command" and click it to install the shell command.
xxxxxxxxxx
--download vsc from browser as .deb etc
--go to the directory where .deb file is
sudo apt install ./<file>.deb