-
-
Save shelooks16/8f849adbd9c8617c9170fd5e38f87c3e to your computer and use it in GitHub Desktop.
{ | |
// security trust window, open = not shown | |
"security.workspace.trust.untrustedFiles": "open", | |
// configure git-bash (windows-only for git-bash users) | |
"terminal.integrated.profiles.windows": { | |
"Git Bash": { | |
"path": "C:\\Program Files\\Git\\bin\\bash.exe", | |
"args": ["-l", "-i"] | |
} | |
}, | |
"terminal.integrated.defaultProfile.windows": "Git Bash", | |
// prettier | |
"editor.formatOnSave": true, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"[javascript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
} | |
} |
@sameermehra123 I guess it has nothing to do with vscode settings in particular.
(Windows only). If you are seeing "node command node found", or similar message in the terminal, it mean you either does not have node.js installed or you don't have node in your PATH.
https://stackoverflow.com/questions/27864040/fixing-npm-path-in-windows-8-and-10
@sameermehra123 Alright. Can you post the solution (what you did to resolve it) just in case? Would be pretty much appreciated!
Oh. I see what was the issue. It was enough to restart terminal instance, system restart is not required ;)
@sameermehra123 please contact the Internshala support team with this concern.
Using the mentioned code of this
// configure git-bash (windows-only for git-bash users) is follwed by this error
"Value is not accepted. Valid values: null, "PowerShell", "Windows PowerShell", "Command Prompt", "JavaScript Debug Terminal".
Also I tried setting "GitBash" instead of "Git Bash" and that didnt help either.
Please help me resolve this.
Hi, make sure git-bash is installed in the first place. Restart vscode.
Official docs and examples:
https://code.visualstudio.com/docs/terminal/profiles
Read a random tutorial for using git-bash:
https://dev.to/andrewriveradev/how-to-set-git-bash-as-integrated-terminal-in-vscode-2k31
Valid example:
"terminal.integrated.profiles.windows": {
"GitBash": {
"path": "C:\\Program Files\\Git\\bin\\bash.exe",
"args": ["-l", "-i"]
}
},
"terminal.integrated.defaultProfile.windows": "GitBash
@kisuu987 Hey, try changing Git Bash
on lines 14 and 19 to GitBash
I also tried Git-Bash on 14 and 19 vice versa
@kisuu987 change it on both lines at the same time
Sir I have tried GitBash/Git Bash
Git-Bash/Git-Bash
Git Bash/Git Bash
GitBash/GitBash
Git-Bash/Git Bash
but it is showing value not accepted
@kisuu987 got it.
Try this video, it shows multiple ways to set 'git-bash' as a integrated shell:
https://youtu.be/PzJCwfYfIzY
@kisuu987 be sure the path of your git-bash.exe is right. VS Code accept the terminal instance only if it can actually find the .exe
@TheNemus and @shelooks16 sir I even reinstalled it and again tried but it was not work showing the same error and even it is showing git-bash version and all in cmd positively
@kisuu987
have you tried watching video reference posted above? If nothing helps, to not stop at this point you can proceed further with Powershell/CMD as vscode integrated terminal. It's ok
@TheNemus and @shelooks16 I got it... Thankyou sir
"terminal.integrated.profiles.windows": {
"GitBash": {
"path": "E:\importantfiles\Git\bin\bash.exe",
"icon": "terminal-bash"
}
},
"terminal.integrated.defaultProfile.windows": "GitBash",
"git.enabled": true,
"git.path": "E:\importantfiles\Git\bin\bash.exe"
error in esbenp
be sure the path of your git-bash.exe is right. VS Code accept the terminal instance only if it can actually find the .exe
giving node command but it gives me error node is not a bash command