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
Open the Command Palette via (⇧⌘P) and type
shell command to find the Shell Command:
> Install 'code' command in PATH** command
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.