DEV Community

wasifali
wasifali

Posted on

Method of Installing C++ extensions in Visual Studio Code (VS Code)

Installing C++ extensions in Visual Studio Code (VS Code)

Installing C++ extensions in Visual Studio Code (VS Code) is straightforward and typically involves these steps:
Open Visual Studio Code: Launch VS Code on your computer.
Image description
Open Extensions View: Click on the Extensions icon in the Activity Bar on the side of the window, or press Ctrl+Shift+X (Cmd+Shift+X on macOS) to open the Extensions view.
Image description
Search for C++ Extension: In the Extensions view, type "C++" in the search bar. You should see extensions related to C++ programming.
Image description
Select the Extension: Look for "C/C++" by Microsoft (often the first search result). Click on the "Install" button to install this extension.
Image description
Wait for Installation: VS Code will download and install the extension. You'll see a progress bar indicating the installation status.
Restart VS Code (if required): Sometimes, VS Code may prompt you to restart the editor to enable the newly installed extension. If prompted, click "Restart".
Verify Installation: After installation and possibly restarting, the C++ extension should be ready to use. You might notice additional features like IntelliSense for C++ code.

Image description

Optional Steps

Customization: Explore the extension settings (Ctrl+, or Cmd+, to open Settings) to customize the behavior of the C++ extension.
Additional Tools: Depending on your project needs, you might also install other related extensions for C++ development, such as Git integration or debugging tools.

Top comments (2)

Collapse
 
matin_mollapur profile image
Matin Mollapur

hey, nice guide! i've been using visual studio for a while but thinking of switching to vs code. this makes it look pretty easy to set up for c++. might give it a shot this weekend. thanks for sharing!

Collapse
 
heyeasley profile image
heyeasley 🍓🥭

Useful. Was it same process for Microsoft Visual Basic ? Actuellement, I use MVB. I'm about to look into VSB and maybe switch or change..