2

I am working with Visual Studio Code, and when I am starting to code in C, an error message shows up:

include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\Users\user\Desktop\c2\main.c)

Any help?

Milo
  • 3,365
  • 9
  • 30
  • 44

1 Answers1

1

Well, in case you tend to tranfer your code from one system to another, some things may get messed up.

VSCODE creates a specific folder when you start a new project called -you guessed it- "vscode" where some useful information about JSON and the compiler are stored. If you move your project to a different pc and try to open it via vscode, it is likely that the info stored in VSCODE-directory will not apply to this system.

In my case, I had a path like: "Users/user1..." in a system that did not have any user named user1 so i had to configure the VSCODE directory or even delete it altogether and let VSCODE create a new one.

Dharman
  • 30,962
  • 25
  • 85
  • 135