Why can't I view and edit c_cpp_properties.json in vscode?

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.

1

Generally, c_cpp_properties.json should be found by

  1. Pressing Control+Shift+P
  2. Searching for c/c++ edit configuration.
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like