Skip to content

Instantly share code, notes, and snippets.

@shelooks16
Created September 7, 2021 20:56
Show Gist options
  • Save shelooks16/8f849adbd9c8617c9170fd5e38f87c3e to your computer and use it in GitHub Desktop.
Save shelooks16/8f849adbd9c8617c9170fd5e38f87c3e to your computer and use it in GitHub Desktop.
Vscode configuration
{
// 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"
}
}
@shelooks16
Copy link
Author

@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

@kisuu987
Copy link

@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"

@DIKSHA52
Copy link

DIKSHA52 commented Jun 2, 2023

● settings json - testproject - Visual Studio Code 02-06-2023 18_39_47

@DIKSHA52
Copy link

DIKSHA52 commented Jun 2, 2023

error in esbenp

@shelooks16
Copy link
Author

@DIKSHA52

the command does not contain any dashes:

git init

@AjayNikam13
Copy link

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

@AjayNikam13
Copy link

Screenshot (518)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment