Changes

Jump to navigation Jump to search
Line 21: Line 21:  
** Windows 10 (pre-Anniversary Update): Start -> All Apps -> devkitPro -> MSYS
 
** Windows 10 (pre-Anniversary Update): Start -> All Apps -> devkitPro -> MSYS
 
** Windows 10 (post-Anniversary Update): Start -> devkitPro -> MSYS
 
** Windows 10 (post-Anniversary Update): Start -> devkitPro -> MSYS
 +
 +
=== Setting up VSCode ===
 +
 +
==== Shell ====
 +
 +
* For VSCode to use the MSYS2 shell from devkitPro you'll have to set the "terminal.integrated.shell.windows" and "terminal.integrated.shellArgs.windows" properties.
 +
 +
{
 +
    "terminal.integrated.shell.windows": "C:\\devkitPro\\msys2\\msys2_shell.cmd",
 +
    "terminal.integrated.shellArgs.windows": ["-defterm", "-mingw64", "-no-start", "-here"]
 +
}
 +
 +
==== Build task ====
 +
 +
* The shell VSCode uses to run build tasks is different from the other shell. You have to manually override the default shell by passing an argument in the options part of the configuration.
 +
* Please note the '-shell bash -c'. It prevents bash from idling after the command and exits immediately.
 +
 +
"options": {
 +
  "shell": {
 +
    "executable": "C:\\devkitPro\\msys2\\msys2_shell.cmd",
 +
    "args": ["-defterm", "-mingw64", "-no-start", "-here", "-shell bash -c"]
 +
  }
 +
},
    
==Unix-like platforms==
 
==Unix-like platforms==
3

edits

Navigation menu