FOR VSCODE IN FILE settings.json
"terminal.integrated.profiles.windows": {
"Bash": {
"path": "C:\laragon\bin\git\bin\bash.exe",
},
"MSYS2": {
"path": "C:\msys64\usr\bin\bash.exe",
"label": "MSYS2",
"args": ["--login", "-i"],
FOR VSCODE IN FILE settings.json
"terminal.integrated.profiles.windows": {
"Bash": {
"path": "C:\laragon\bin\git\bin\bash.exe",
},
"MSYS2": {
"path": "C:\msys64\usr\bin\bash.exe",
"label": "MSYS2",
"args": ["--login", "-i"],
Using MSYS2 with Visual Studio Code is extremely easy now thanks to the Shell Launcher extension by Tyriar.
First, install the extension and reload Visual Studio Code.
Then, open the settings.json
to edit your settings.
Add the field shellLauncher.shells.windows
. I recommend using autocompletion here so that all the default shells are added.
You should having something like this now:
# ------------------------------------------------- | |
# Protect your .git directory! | |
# (You don't want anyone to download a copy of your website) | |
# ------------------------------------------------- | |
# Add to .htaccess | |
# For Apache 2.4 | |
<DirectoryMatch "^/.*/\.git/"> |
# Encrypt the repository | |
# Remove/modify this line if the repository is meant to be open-source | |
*.* filter=git-crypt diff=git-crypt | |
.gitattributes !filter !diff | |
# These files are text and should be normalized (Convert crlf => lf) | |
*.php text | |
*.css text | |
*.js text | |
*.htm text |