Installing the C/C++ Extension for Visual Studio Code
The "C/C++" extension by Microsoft is the go-to tool for C and C++ programming in VSCode. It adds features like IntelliSense (code completion), debugging, and code browsing to make coding easier.
Installation Steps
-
Open VSCode:
- Launch Visual Studio Code on your computer.
-
Access the Extensions View:
- Click the Extensions icon in the left sidebar (it looks like a square with two arrows).
- Or use the shortcut:
- Windows/Linux:
Ctrl + Shift + X - macOS:
Cmd + Shift + X
- Windows/Linux:
-
Search for the Extension:
- In the Extensions view, type
C++in the search bar at the top.
- In the Extensions view, type
-
Install the Extension:
- Find the "C/C++" extension by Microsoft (make sure it’s published by Microsoft).
- Click the "Install" button.
- Installation takes a few seconds, and a checkmark will appear in the Extensions view when done.
-
Verify Installation:
- Create a new file with a
.cextension (e.g.,test.c). - Type
prinand check if IntelliSense suggestsprintf. This confirms the extension is working.
- Create a new file with a
Extension Details
- Extension Name: C/C++
- Publisher: Microsoft
- Features: IntelliSense (code completion), debugging, code browsing
- Marketplace URL: https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools