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 14 сағат бұрын
@@razorblade413 What do you use instead?
How to Properly Setup C++ Projects
32:46
The Cherno
Рет қаралды 96 М.
Mastering your data with Data Wrangler in VS Code
8:34
Visual Studio Code
Рет қаралды 17 М.
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 10 МЛН
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 61 МЛН
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 3,7 МЛН
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Devression
Рет қаралды 547 М.
How To Use VS CODE for C++ | With CMake & Any Compiler
9:14
Code, Tech, and Tutorials
Рет қаралды 71 М.
SSH into Remote VM with VS Code | Tunneling into any cloud | GCP Demo
10:26
Code faster with these VS Code shortcuts
8:44
Coder Coder
Рет қаралды 322 М.
Modern CMake for C++
11:38
Smok Code
Рет қаралды 39 М.
25 VS Code Productivity Tips and Speed Hacks
11:35
Fireship
Рет қаралды 2,3 МЛН
BEST WAY to make Desktop Applications in C++
26:00
The Cherno
Рет қаралды 889 М.
You're not stupid: How to learn difficult things with Obsidian
6:16
Python Programmer
Рет қаралды 326 М.
Introduction to CMake Crash Course
14:08
PunchedTape
Рет қаралды 9 М.
Getting Started with Debugging in VS Code (Official Beginner Guide)
13:00
Visual Studio Code
Рет қаралды 4,8 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 8 МЛН
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 159 М.
GamePad İle Bisiklet Yönetmek #shorts
0:26
Osman Kabadayı
Рет қаралды 337 М.
Ультрабюджетная игровая мышь? 💀
1:00
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,5 МЛН