Using C/C++ and WSL in VS Code

and a remote-wsl code runner Reference: https://www.zhihu.com/question/333233461/answer/769838167

Setting Reference: https://code.visualstudio.com/docs/editor/variables-reference , the focus launch.json 

pipeProgram": "bash.exe"
"/usr": "C:\\Users\\<my windows user name>\\AppData\\Local\\Packages\\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\\LocalState\\rootfs\\usr\\"

 

vs code reference variables: https://code.visualstudio.com/docs/editor/variables-reference , focus and $ {fileDirname} $ {fileBasenameNoExtension}

 

Guess you like

Origin www.cnblogs.com/felord/p/11354870.html