C++ in VS Code: Building your Code with CMake

  Рет қаралды 16,641

Visual Studio Code

Visual Studio Code

Күн бұрын

Discover the benefits of using a build system for your C++ code. Follow along to learn how to add the CMake build system to your C++ project in VS Code. This includes information on how to navigate the CMake Tools Extension, create a CMakeLists.txt file, and use CMake Presets. If you run into any problems, feel free to reach out to us by leaving a comment below or reporting an issue on GitHub: github.com/microsoft/vscode-c....
Chapters:
00:00 C++ Development
00:10 Check out: C++ in VS Code: A Quick Guide
00:22 What is a Build System
01:03 Examples of Build Systems
01:27 CMake
01:56 Installing the CMake Tools Extension
02:39 Demo - Building C++ code with CMake
03:10 Step 1 - Create a CMakeLists.txt file
03:25 Demo
05:21 Step 2 - CMake Presets file
06:26 Demo
07:45 Step 3 - Select a build target
07:58 Demo
09:29 Happy Building!
Resources:
CMake Tools Extension GitHub repo - github.com/microsoft/vscode-c...
CMake Tools Extension Docs - github.com/microsoft/vscode-c...
CMake Documentation - cmake.org/documentation
C++ in VS Code: A Quick Guide - • C++ in VS Code: A Quic...
Connect and subscribe:
/ code
/ vscode
/ code

Пікірлер: 22
@MikeTwohey
@MikeTwohey 2 ай бұрын
Wow that is complicated! I need a tool for CMake.
@mervindaly371
@mervindaly371 2 ай бұрын
Love your video❤
@josemarcos1519
@josemarcos1519 2 ай бұрын
Hello everyone! I would like to suggest that VSCode have a theme that follows the Windows 11 theme, including the Mica effect on the top menu bar and status bar, as it does in Microsoft Edge.
@alexanderkuznetsov634
@alexanderkuznetsov634 2 ай бұрын
Thank you
@Tony-dp1rl
@Tony-dp1rl 2 ай бұрын
I spent over 20 years developing in C++ daily before escaping. For those still trapped, I wish you well.
@krishna_o15
@krishna_o15 2 ай бұрын
😂
@0xeb-
@0xeb- 15 күн бұрын
any hotkey to run instead of clicking the status bar icon? why is F5 hotkey wanting to do its own things? is there a way to have the regular "Run" menu use the CMake tooling?
@akompsupport
@akompsupport 2 ай бұрын
Nice! 🎂
@williamsf.h.227
@williamsf.h.227 9 күн бұрын
Can you please provide a class for adding more file to CMAKE in just 2 steps?
@maciej1214
@maciej1214 2 ай бұрын
How to compile a single cpp file? Many times there is an error that file cannot be compiled.
@koraironams4656
@koraironams4656 Ай бұрын
😂😂
@tarik_hello
@tarik_hello Ай бұрын
Hey! This could be due to the compiler you are trying to use. If you are trying to compile a C++ file, make sure you are using a g++ compiler or its equivalent.
@razorblade413
@razorblade413 5 күн бұрын
that's why i prefer coding in java...no bs with unnecessary files. Just straight to develop an app.
@razorblade413
@razorblade413 5 күн бұрын
i wanted to learn c++ from scratch, but after seeing that i need to download compilers, cmake, and whatever other tools, instead of just using a IDE and make a simple f project, i prefer to quit this. Never again!
@m____s
@m____s 15 сағат бұрын
@@razorblade413 What do you use instead?
How to Properly Setup C++ Projects
32:46
The Cherno
Рет қаралды 96 М.
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Devression
Рет қаралды 547 М.
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 87 МЛН
1❤️
00:17
Nonomen ノノメン
Рет қаралды 10 МЛН
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 9 МЛН
25 VS Code Productivity Tips and Speed Hacks
11:35
Fireship
Рет қаралды 2,3 МЛН
15 Years Writing C++ - Advice for new programmers
4:04
SyncMain
Рет қаралды 1,1 МЛН
SSH into Remote VM with VS Code | Tunneling into any cloud | GCP Demo
10:26
My Brain after 569 Leetcode Problems
7:50
NeetCode
Рет қаралды 2,4 МЛН
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1 МЛН
How To Use VS CODE for C++ | With CMake & Any Compiler
9:14
Code, Tech, and Tutorials
Рет қаралды 71 М.
BEST WAY to make Desktop Applications in C++
26:00
The Cherno
Рет қаралды 889 М.
Code faster with these VS Code shortcuts
8:44
Coder Coder
Рет қаралды 322 М.
Master the core principles of prompt engineering with GitHub Copilot
6:08
Visual Studio Code
Рет қаралды 42 М.
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 159 М.
ИГРОВОВЫЙ НОУТ ASUS ЗА 57 тысяч
25:33
Ремонтяш
Рет қаралды 319 М.
Best mobile of all time💥🗿 [Troll Face]
0:24
Special SHNTY 2.0
Рет қаралды 2,1 МЛН
Blue Mobile 📲 Best For Long Audio Call 📞 💙
0:41
Tech Official
Рет қаралды 1 МЛН