Last active
August 13, 2024 16:16
-
-
Save rachids/062dfc8200d19a04131fea5c0d4e93fa to your computer and use it in GitHub Desktop.
Integrate Laragon's terminal (CMDer) to Visual Studio Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
}, | |
"laragon": { | |
"path": "C:\\laragon\\bin\\cmder\\cmder.bat", | |
"args": [ | |
"." | |
] | |
} | |
}, | |
"terminal.integrated.defaultProfile.windows": "laragon" | |
} |
VS Code will complain about the snippet above, instead of the above snippet, add the following to settings.json
.
"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"
},
"laragon": {
"path": "C:\\laragon\\bin\\cmder\\cmder.bat",
"args": [
"."
],
},
},
"terminal.integrated.defaultProfile.windows": "laragon",
Source: https://code.visualstudio.com/docs/editor/integrated-terminal#_terminal-profiles
Thanks for sharing @aasutossh, I updated the gist with yours ! 👍
My pleasure.
Nice! Thx for the assistance.
Thank you so much!
If you don't have a cmder.bat
you can replace the "laragon"
part with this instead:
"laragon": {
"path": "${env:windir}\\System32\\cmd.exe",
"args": ["/k", "C:\\laragon\\bin\\cmder\\vendor\\bin\\vscode_init.cmd"]
}
You are an Angel! thanks!
Thank a lot
Thanks!
If you don't have a
cmder.bat
you can replace the"laragon"
part with this instead:"laragon": { "path": "${env:windir}\\System32\\cmd.exe", "args": ["/k", "C:\\laragon\\bin\\cmder\\vendor\\bin\\vscode_init.cmd"] }
Genial
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you so much!