Find the command setting and change it to g .VS Code creates a default tasks.json file in the editor. Next, Press Ctrl Shift P again and start typing “task” and choose Tasks: Configure Default Build Task from the list of suggestions, then choose Create tasks.json file from template.Your c_cpp_properties.json file should look like this:. ( C:\\Mingw-w64\\mingw32\\bin\\g .exe, notice how you have to do double “ \” due to json convention) Find the compilerPath setting and paste in the full path name of g .exe in the Mingw-w64 bin folder you have just appended to the Path variable. VS Code creates a file called c_cpp_properties.json and populates it with default settings.
0 Comments
Leave a Reply. |