Get your C++ environment ready on Ubuntu 24.04 using the terminal! In this tutorial, I'll show you the fastest way to install Visual Studio Code and the g++ compiler entirely via the command line. We will also set up the essential C/C++ Extension by Microsoft and run our first program together.
🚀 What you will learn:
• How to check if VS Code and g++ compiler are already installed.
• Install VS Code using terminal (command line)
• Install g++ compiler using terminal (command line)
• Install C/C++ extension in VS Code
• Write first C++ program
• Compile and run C++ code inside VS Code
Perfect for beginners starting their C++ journey on Linux.
💻 Commands used in this video:
1. Check VS Code version: code --version
2. Install VS Code: sudo snap install code --classic
3. Check g++ version: g++ --version
4. Install g++: sudo apt install g++
5. Compile C++ program: g++ hello.cpp -o hello
6. Execute the program: ./hello
⏱️ Chapters:
00:00 Highlights
00:12 Introduction
00:44 Check VS Code Installation
01:00 Check g++ Compiler
01:20 Install VS Code (Command Line)
02:04 Install g++
02:26 Launch VS Code
02:58 Add C/C++ Extension in VS Code
03:35 Write First C++ Program
05:00 Compile C++ Program
06:00 Execute C++ Program
06:10 Conclusion
🔗 Connect with me:
• Instagram: / thecppjourneywithsonu
• LinkedIn: / sonu-gola-1176ba103
• Twitter/X: https://x.com/TheCPPCode_Sonu
• Facebook: https://www.facebook.com/profile.php?...
🔔 Subscribe to The CPP Journey (with Sonu) for more C++ tutorials!
#vscode #g++ #codingsetup #firstprogram #ubuntu #linux #beginners #learncoding #cpp #cplusplus #cpptutorial #programming #coding #TheCPPJourneywithSonu #sonu #sonugola