How to fix: Please update includePath. Cannot open source file on VSCode

preview_player
Показать описание
How to fix "Please update includePath.#include errors detected. Cannot open source file" error on VSCode? In this video, it also shows how to setup C/C++ development projects on visual studio code.

Steps to fix it:
***********************************************
With visual studio code C++ extension version 0.17.0 and higher:

We continue to support Windows-style paths for these properties as outlined in the archived instructions if you prefer to use those.

{
"name": "WSL",
"intelliSenseMode": "gcc-x64",
"compilerPath": "/usr/bin/gcc",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"cStandard": "c11",
"cppStandard": "c++17"
}
***********************************************************

Earlier versions of the extension:
If you are on a build of Windows prior to 17110 and you have an older version of the C/C++ extension installed, use these instructions instead.
**************************************************

If you haven't installed visual studio code on Ubuntu or on windows, checkout the below videos. Following videos shall show you how to download, install vscode, its recommended extensions and quick walkthough:

Thanks for watching

#VSCode #VSCodeErrors #KludgeBot
Рекомендации по теме
Комментарии
Автор

Checkout this video to Setup c++ on latest VSCode.

KludgeBot
Автор

doesn't work. "commandnotfound"

jonnathan
Автор

you are a lifesaver my dudu, wasted an entire day to solve this issue untill i found your video

rubairakib
Автор

Bruh, You're a life saver literally no other person has been able to give me the correction solution

jonsanmigel
Автор

sudo : The term 'sudo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ sudo apt-get install gcc
+ ~~~~
+ CategoryInfo : ObjectNotFound: (sudo:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

This is my error please help
it comes on typing
sudo apt-get install gcc

ashmitmalik
Автор

you literally saved my ass.. huge project and i kept getting this error. This video saved me.

centripetal
Автор

Thank you i never thought it will be so easy in linux with command lines. in MS you have to click it throw ordners over and over again

rainbowdashie
Автор

I got this
"sudo : The term 'sudo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again."

threalbatman
Автор

Thanks a lot.
This worked for me after wasting 2 hours 🥺

Pratyush-xfry
Автор

thanks was stuck since soo long. this worked magic.

thechhavibansal
Автор

Bro thanks, this really works, i followed the steps only for C and the problem was solved thanks.

josevasquez
Автор

my vscode doesnt recognize sudo command, i cant do anything!

neith
Автор

Thanks a lot! This has saved my future videos about C. I will recommend this video for my viewrs.

gnomodati
Автор

Perfect. This is exact my problem. Thank you man.

henriquerobertosilva
Автор

thank you a lot bro you made exact video i was searching for

Vivek_Pawar
Автор

Finally!! After 2 hours, this video helped so much, thank you.

hannahbollou
Автор

exactly the problem I had and perfect solution, thanks!

anthonycui
Автор

I think i might be missing a step.. When copying the compiler path, what are you copying? don't see you copy anything in the video. I changed the compiler path to g++ and now it's giving me

main.cpp:1:10: fatal error: iostream: no such file or directory

not sure where to go from here, brand new to ubuntu, anyone got any tips?

NoobUCantBeat
Автор

Thanks, man!! After a day I found this video and it solved my problem

feliperaulino
Автор

Hi KludgeBot, I typed what you typed in the terminal, but the terminal responsed that it can't define anything and called me to try again, I tried again for thousands of times but I can't still do like what your video had done. Could you please help me to deal with it? Thanks! :) (sorry for wrong grammar)

andylai