I'm trying to use VS Code to compile and run c++ using these instructions. While completing this step
Start typing "C/C++" and then choose Edit Configurations from the list of suggestions. VS Code creates a file called c_cpp_properties.json in the .vscode subfolder and populates it with some default settings.
I can't get the c_cpp_properties.json file to open and I get the error:
Failed to create "c:\Windows\System32\projects\helloworld\.vscode": EPERM: operation not permitted, mkdir 'c:\Windows\System32\projects\helloworld\.vscode' 1 2 Answers
You probably have no permissions. Your options include running VSCode as admin or changing folder permissions. But why do you store projects in system32 in the first place? The best solution would be to move it to some other place, where user has write access without admin rights, like Documents.
1Generally, c_cpp_properties.json should be found by
- Pressing Control+Shift+P
- Searching for
c/c++ edit configuration.