Conteúdo do item:
Como adicionar o GIT BASH no VsCode
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [],
"icon": "terminal-cmd"
},
"Git Bash": {
"source": "Git Bash"
},
"Bash": {
"path": "C:\\Windows\\System32\\cmd.exe",
"args": []
}
}
- Alterei o atributo PATH do profile BASH para arquivo bash.exe -> "path": "L:\\lucas\\apps\\git\\bin\\bash.exe"
- Adicionei o comando no final do JSON para deixar Default esse novo terminal -> "terminal.integrated.defaultProfile.windows": "Bash",
- Meu settings.json completo ficou assim :
{
"javascript.updateImportsOnFileMove.enabled": "always",
"explorer.confirmDragAndDrop": false,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"files.encoding": "utf8",
"workbench.colorCustomizations": {
"debugConsole.infoForeground": "#ffffff",
"debugConsole.warningForeground": "#ff8800",
"debugConsole.errorForeground": "#ff0000",
"debugConsole.sourceForeground": "#ffffff",
},
"redhat.telemetry.enabled": true,
"workbench.colorTheme": "Visual Studio Dark",
"java.configuration.runtimes": [
{
"name": "JavaSE-1.8",
"path": "L:\\lucas\\apps\\java\\openjdk-8u41-b04-windows-i586-14_jan_2020\\java-se-8u41-ri",
},
{
"name": "JavaSE-17",
"path": "L:\\lucas\\apps\\java\\openjdk-17+35_windows-x64_bin\\jdk-17",
"default": true
}
],
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -javaagent:\"c:\\Users\\bloody\\.vscode\\extensions\\gabrielbb.vscode-lombok-1.0.1\\server\\lombok.jar\"",
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [],
"icon": "terminal-cmd"
},
"Git Bash": {
"source": "Git Bash"
},
"Bash": {
"path": "L:\\lucas\\apps\\git\\bin\\bash.exe",
"args": []
}
},
"terminal.integrated.defaultProfile.windows": "Bash",
}
- Resultado final, ao abrir o terminal apareceu um novo chamado "BASH"
vscode, visual studio code, bash, git-bash, criar, configurar, padrão, adicionar