Тёмный

Set Up C++ Development With Visual Studio Code on Ubuntu 22.04 | VSCode C++ Development Basics 

ProgrammingKnowledge
Подписаться 1,8 млн
Просмотров 40 тыс.
50% 1

Learn how to set up C++ development with Visual Studio Code on Ubuntu 22.04. #C++ #VSCode #Ubuntu
Visual Studio Code (VSCode) is a popular code editor that supports C++ development and offers a range of powerful features. Follow these steps to set up C++ development with Visual Studio Code on your Ubuntu 22.04 system:
1. Install build essentials: Before getting started, ensure that you have the build essentials package installed on your Ubuntu system. Open a terminal and run the following command to install it:
```
sudo apt-get install build-essential
```
This package includes the necessary tools and libraries for building software.
2. Install Visual Studio Code: Visit the official Visual Studio Code website (code.visualstudio.com) and download the Linux version suitable for your Ubuntu 22.04 system. Once downloaded, open the terminal and navigate to the directory where the downloaded file is located. Run the following command to install VSCode:
```
sudo dpkg -i file_name .deb
```
Replace ` file_name ` with the name of the downloaded file.
3. Install the C++ extension: Launch Visual Studio Code. In the sidebar, click on the Extensions icon (represented by four squares). Search for the "C++" extension and click on "Install" to add it to your VSCode setup.
4. Set up a C++ project: Open a new terminal within Visual Studio Code by clicking on "View" in the top menu, selecting "Terminal," and then "New Terminal." In the terminal, navigate to the directory where you want to create your C++ project.
5. Create a C++ source file: Use the following command to create a new C++ source file:
```
touch main.cpp
```
This will create a new file named "main.cpp" in your current directory.
6. Start coding: Open the "main.cpp" file in the Visual Studio Code editor and start writing your C++ code. You can use the integrated features of VSCode, such as IntelliSense, to assist you in coding.
7. Build and run your code: To compile and run your C++ code, use the terminal within Visual Studio Code. Use the following commands:
```
g++ main.cpp -o main
./main
```
The first command will compile your C++ code, and the second command will execute the compiled program.
Congratulations! You have now set up C++ development with Visual Studio Code on your Ubuntu 22.04 system. You can continue coding and exploring the various features and capabilities offered by Visual Studio Code to enhance your C++ development experience.
#C++Development #VSCodeSetup #UbuntuDevelopment #CodeEditor #Programming

Опубликовано:

 

28 июн 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@GoshaGaina
@GoshaGaina 4 месяца назад
Огромное спасибо, правда. Я недавно установил линукс для учебы, ничего в этом не понимаю, даже читал документацию на официальном сайте, все равно были какие то launch файлы. Автор, ты просто нереальный и очень очень крутой. Спасибо 🤗🤗🫶
@Lucky-zc2sp
@Lucky-zc2sp Месяц назад
Thank you i saw many videos but this one really helped me.
@user-pe2ic1lv1v
@user-pe2ic1lv1v 9 месяцев назад
Asante sana(Thank you)
@jonathanr4242
@jonathanr4242 5 месяцев назад
Thanks. Hello world is the half way mark to coding.
@user-he6yi2my1c
@user-he6yi2my1c 9 месяцев назад
Thank you very much
@jagatkrishna1543
@jagatkrishna1543 11 месяцев назад
Thanks 🙏❤🎉
@Arajka_Raj
@Arajka_Raj 3 месяца назад
Thank you very much , Sir❤❤
@anupamghoshh
@anupamghoshh 11 месяцев назад
very nice
@kmlyzr
@kmlyzr 3 месяца назад
My gcc version is 6.5.0. How can ı upgrade the version to latest version. I applied codes which yours, but ı could not.
@noweare1
@noweare1 9 месяцев назад
code-blocks is better, it has a memory view so you can see how everything is stored in memory. I use that a lot. Too bad vsc doesn't support that with g++/gcc.
@user-kz2bx7tj9b
@user-kz2bx7tj9b 4 месяца назад
Right bro👍
@chash_games
@chash_games 8 месяцев назад
thank you
@Aditya-es3zk
@Aditya-es3zk 6 месяцев назад
Thank youuu sooo muccchhhhhh
@studbanda9426
@studbanda9426 18 дней назад
in mine it shows permission denied in case of bash terminal
@sireeshyadav2560
@sireeshyadav2560 11 месяцев назад
Bro do for java programming also pleaseeeee❤
@rajeshloknath898
@rajeshloknath898 Месяц назад
how to add environmental variable for a project in VS code ?
@gcs3495
@gcs3495 Месяц назад
thanks a lot brother
@kashyapsaurabh5989
@kashyapsaurabh5989 4 месяца назад
Thnks bro❤
@youOnlyLive1ce
@youOnlyLive1ce 9 месяцев назад
thank yo bro
@user-ip7mr5cs2g
@user-ip7mr5cs2g Месяц назад
very helful
@me-me-nee
@me-me-nee 4 дня назад
gud stuff ty
@VeritasEtAequitas
@VeritasEtAequitas 5 месяцев назад
"explain you"? lol, what?
@Krbydav328
@Krbydav328 23 дня назад
you making fun of someone/acting dumbfounded for english not being their first language: 😂 you trying to provide meaningful constructive criticism for the video: 😢
@snehildwivedi6141
@snehildwivedi6141 5 месяцев назад
Bhai tmne setup ki jagh sab bta Diya not a video that I'll recommend 👎🏻👎🏻👎🏻
@whyDude123
@whyDude123 Месяц назад
what the hell bro
Далее
Visual Studio Code for C/C++ on Linux (2021)
13:04
Просмотров 110 тыс.
C++ in VS Code: Building your Code with CMake
9:37
Просмотров 12 тыс.
СЫВОРОТКА С ВБ
00:39
Просмотров 542 тыс.
Tipuan Jenius dalam Mengasuh Anak & Gadget Cerdas
00:21
How to Run C++ in VS Code on MacOS
4:02
Просмотров 51 тыс.
Create a Go Gin API
8:19
Просмотров 116
Master Pointers in C:  10X Your C Coding!
14:12
Просмотров 280 тыс.
Top 10 Linux Job Interview Questions
16:04
Просмотров 2,3 млн
Intro to GitHub Copilot in Visual Studio
15:34
Просмотров 54 тыс.