


Here is a list of compilers and architectures per platform officially supported by the extension. You will need to install these tools or use those already installed on your computer. The C/C++ extension does not include a C++ compiler or debugger.

VS Code is first and foremost an editor, and relies on command-line tools to do much of the development workflow. Pre-requisitesĬ++ is a compiled language meaning your program's source code must be translated (compiled) before it can be run on your computer.

The C/C++ extension adds language support for C/C++ to Visual Studio Code, including editing (IntelliSense) and debugging features. c file, ready to be modified.C/C++ for Visual Studio Code Repository | Issues | Documentation | Code Samples Select the location you want to keep it in, I would recommend always keeping it within the project folder itself (in this case C:\Users\Simon\Desktop\Learn\My First C Code) Next under Solutions Explorer right click Source Files, select Add then New Item. Start a new project, go under C++ and select Empty Project, enter the Name of your project and the Location you want it to install to, then click Ok. Without doubt one of the best features of Visual Studio is the convenient IDE.Īlthough it takes more configuring, you get bonuses such as basic debugging before compiling (for example if you forget a ) Ĭ:\Program Files (x86)\Microsoft Visual Studio\2017\Community> Microsoft (R) C/C++ Optimizing Compiler Version 0.1 for x86Ĭopyright (C) Microsoft Corporation. Or to check all the accepted commands: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community>cl As mentioned in the other answer you can use cl to compile your c file (make sure it is named. Much like you can use gcc on Linux (or if you have MinGW installed) Visual Studio has a command to be used from command prompt (it must be the Visual Studio Developer Command Prompt though). You do have to be careful not to create a C++ project and rename it to C though, that does not work. The main difference between using C and C++ is the naming system (i.e. Yes it is, none of the Visual Stdio editions have C mentioned, but it is included with the C++ compiler (you therefore need to look under C++).
