Skip to content

Instantly share code, notes, and snippets.

@soda92
Last active October 10, 2024 13:48
Show Gist options
  • Save soda92/b7c394b0db0dadf33a433858d2881728 to your computer and use it in GitHub Desktop.
Save soda92/b7c394b0db0dadf33a433858d2881728 to your computer and use it in GitHub Desktop.
How to set rust-analyzer extension to use MSYS2 environment in VSCode
{
"rust-analyzer.server.extraEnv": {
"PATH": "C:/msys64/ucrt64/bin"
},
"terminal.integrated.profiles.windows": {
// ...
"MSYS2": {
"path": "C:\\msys64\\usr\\bin\\fish.exe",
"args": [
"--login",
"-i"
],
"env": {
"MSYSTEM": "UCRT64",
"CHERE_INVOKING": "1"
}
}
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment