From https://code.visualstudio.com/docs/editor/integrated-terminal, I have been able to put the shell inside the shell choices but when I select it, it pops up a new window separate from the VSCode's terminal. How do I solve this problem?
This is what I have done in settings.json:
"terminal.integrated.profiles.windows": {
...
"MINGW64": {
"path": "C:\\msys64\\mingw64.exe"
}
}
I also have a problem git. I installed git as a package from msys2. I have set up all the basic git config
parameters.
But when I try git config --global -e
, it give an error:
hint: Waiting for your editor to close the file... code --wait: line 1: code: command not found error: There was a problem with the editor 'code --wait'.
So I tried in cmd, and it worked. where code
also only worked in cmd.
So I was wondering what would be the problem. Could it be something to do with PATH
? Or something to do with the above question?
CodePudding user response:
So I tried in cmd, and it worked. where code also only worked in cmd.
Except it is the code.cmd
which is actually executed.
In a bash session, check if the $PATH
references the same folder as in CMD.
Consider also using Git For Windows directly: you can add its git bash
to VSCode
In the .bashrc:
export PATH=$PATH:"/C/Users/User1/AppData/Local/Programs/Microsoft VS Code/bin"