How To Use VS CODE for C++ | With CMake & Any Compiler

How To Use VS CODE for C++ | With CMake & Any Compiler

Code, Tech, and Tutorials

3 года назад

87,839 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@siddharth617
@siddharth617 - 08.03.2025 16:01

This has been the most helpful video for me so far, to get up and running with C++ and CMake in VSCode! The only video i'll ever need. Also, F7 should build your cmake project, and F5 will run it.

Ответить
@peterbelanger4094
@peterbelanger4094 - 08.01.2025 03:56

This was terrible. Lose the webcam overlay, it serves NO purpose at all, we are here to to technical things, not socialize.
Why do so many insist on putting their face where it isn't needed? The focus is on what's happening in the application.
That's the problem with those who grew up online.
The "human touch" is a distraction, and so is the music. Life does not need a sound track.

Ответить
@esloxford4022
@esloxford4022 - 04.12.2024 17:34

Thanks you

Ответить
@WolfyRed
@WolfyRed - 05.11.2024 02:58

"msbuild.exe" does not exist

Ответить
@1ykin522
@1ykin522 - 27.10.2024 18:55

Why does your vs code show 4 available kit to choose! Please help me

Ответить
@KcodesGh
@KcodesGh - 11.09.2024 14:11

awesome video, simple and short

Ответить
@alperenalbayrak3380
@alperenalbayrak3380 - 28.08.2024 18:54

This video helped me to obtain a general understanding of how build systems work and after two days of struggle, I'm able to compile, build and execute my multi file programs on shell with ease. Thanks.

Ответить
@ajays1647
@ajays1647 - 30.07.2024 14:07

after doind ctrl+ shit +p -> Cmake : quickstart, i can not see any option with VS Community 2019 release... options. what can be wrong here in VScode? (i have already install CMAKE, C/C++ extension in VS code)

Ответить
@JimmyCerra
@JimmyCerra - 20.07.2024 23:46

His desktop wallpaper is the Canadian Rockies by Cath Simard for anyone wondering. I found a large version on Reddit with a reverse image search using Google.

Ответить
@MrNichosik
@MrNichosik - 16.06.2024 17:54

Hi, I have the following problem: I need to use the Clang compiler, but the CMake generator must be Visual Studio 2022. The CMakePresets.json file states that the compiler must be Clang. The CmakeLists.txt file contains the command "set(CMAKE_CXX_COMPILER clang CACHE STRING "D:/programs/LLVM/bin/clang++.exe" FORCE)".
The problem is this: when I build the project, the Visual Studio generator changes the Clang compiler to the MSVC++ compiler. How can I force CMake to use the Clang compiler?

Ответить
@dominikz5776
@dominikz5776 - 04.04.2024 22:22

why cant we compile the Cmake List from Visual Studio Code?

Ответить
@timothyhoytbsme
@timothyhoytbsme - 20.03.2024 22:28

Also, WTF are you opening Visual Studio for a VSCode tutorial???

Ответить
@timothyhoytbsme
@timothyhoytbsme - 20.03.2024 22:26

Also, you say to make the CMakeLists.txt, then you say to use the quick start (which I did not have the same options as you), and then you say if that does not work, then do things manually... What if it DID work? Do I still need the txt file??? Why are there no good tutorials for C++ and vscode?

Ответить
@timothyhoytbsme
@timothyhoytbsme - 20.03.2024 22:18

While I appreciate your content. PLEASE SLOW DOWN! Every time you typed or did something, you left no time for viewers to pause and follow.

Ответить
@elusivepotato7922
@elusivepotato7922 - 25.02.2024 09:39

man, you just saved my ass, you have no idea. thank you so much

Ответить
@moxx_4712
@moxx_4712 - 05.02.2024 21:21

That was very helpful, thanks for explaining the launch.json file. By the way, I like your vibe

Ответить
@neeladke9557
@neeladke9557 - 19.01.2024 04:36

I didn't get the sln file

Ответить
@bennguyen1313
@bennguyen1313 - 24.12.2023 06:50

Can you do a video on using Visual Studio IDE Community with CMake & Any Compiler?

Ответить
@ArseniiMets
@ArseniiMets - 16.10.2023 01:56

Hey buddies, i need ur help.I'm building the project on kali linux.Everything seems to be ok and the build is working BUT, i'm missing the Debug directory and the sln executable file.Moreover, i'm always getting an error after the build in CMakeLists.txt that minimum allowed version can't be 3.0.0 so i have to change it manually to 3.10, 3.15 etc.

Ответить
@smittywerbenjj1
@smittywerbenjj1 - 21.09.2023 14:49

what about all those buttons in the blue bar at the bottom of the screen

Ответить
@SIBUK
@SIBUK - 25.08.2023 15:52

I came for the CMake tutorial, but I stayed for the trippy music.

Ответить
@xrenynthemusicmage6422
@xrenynthemusicmage6422 - 11.07.2023 15:09

Whoa, that first background music is so relaxing ^^ does anyone know where to find it?

Ответить
@punchline1729
@punchline1729 - 26.06.2023 22:08

I don't see the .sln project file, what do I do?

Ответить
@guilherme5094
@guilherme5094 - 21.05.2023 15:42

👍

Ответить
@usualguy7583
@usualguy7583 - 12.04.2023 21:59

I get an error as
Bad CMake executable: "". Check to make sure it is installed or the value of the "cmake.cmakePath" setting contains the correct path
Any idea on how to solve this? Thanks in advance

Ответить
@robertjonka1238
@robertjonka1238 - 08.04.2023 13:14

what a. strange workflow…

Ответить
@winuxworx
@winuxworx - 14.03.2023 07:51

this method is tightly coupled to windows platform. There should be another way that doesn't use MS Visual Studio.

Ответить
@kornskull
@kornskull - 07.02.2023 02:23

Really helpful! thanks man

Ответить
@Xenthera
@Xenthera - 08.01.2023 05:18

Thank you Gilfoyle.

Ответить
@siamakmirifar7422
@siamakmirifar7422 - 11.12.2022 17:12

Could you please make video for using C++ and VsCode in linux and how to configure tasks, launch, c_cpp_properties json fils and how to debugging application ? ☺

Ответить
@theicekingkobe
@theicekingkobe - 04.12.2022 18:29

Bad cmake executable please help

Ответить
@markbaidoo7325
@markbaidoo7325 - 07.11.2022 11:22

does it works on mac

Ответить
@bohdant.7818
@bohdant.7818 - 01.10.2022 17:31

How did you get build folder out of nowhere

Ответить
@Dev_Everything
@Dev_Everything - 15.09.2022 00:13

Can you do one on how to get this working in linux?

Ответить
@joshuamcdonald8730
@joshuamcdonald8730 - 09.09.2022 08:12

My build folder did not get created after running the >cmake: quickstart in the command pallette. Anyone know why?

Ответить
@williamsokol0
@williamsokol0 - 16.07.2022 11:47

So the MSBuild.exe was not recognized in my terminal what am I supposed to do from there, where did the command come from?

EDIT:
ok so I just had to add that the user's PATH environment variable:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin"

It might Enterprise/ instead of Community/ directory or something entirely different for other people.

Ответить
@omarbgm5898
@omarbgm5898 - 30.06.2022 18:22

with that sound in the back and your voice i feel like getting enlightened thank you for the great video

Ответить
@ljoikmhykh
@ljoikmhykh - 22.06.2022 14:14

Haha Bob Ross the programmer.

Ответить
@a2yls
@a2yls - 21.05.2022 18:03

you have the most relaxing voice omf

great video !!

Ответить
@JulianAndresGuarinReyes
@JulianAndresGuarinReyes - 05.05.2022 01:54

thanks Gilfoyle

Ответить
@ai.aspirations
@ai.aspirations - 29.04.2022 13:11

thanks much!

Ответить
@samrodriguez5894
@samrodriguez5894 - 20.04.2022 02:01

Awesome video man! This helped a lot!

Ответить
@abhi20
@abhi20 - 25.03.2022 16:01

Wow.. you look like Jesus talking

Ответить
@lordrevan901
@lordrevan901 - 13.03.2022 23:29

Thank you for this. In just 10 minutes I was able to get to the meat of writing and running C++ in VSCode.

Ответить
@huseyinseberr
@huseyinseberr - 07.03.2022 02:00

Thank you... You King

Ответить
@MrFearlesskiller
@MrFearlesskiller - 17.02.2022 22:34

Nvm if you see my old comments, i wasnt using the right build, i had to click "search generators" for vscode to find my vs 2022 then let me use it

Ответить