cft

How to Write And Run C and C++ Code in Visual Studio Code

The full procedure of running C/C++ codes using the Visual Studio Code


user

Md. Fahim Bin Amin

a year ago | 1 min read

For a pretty long time, I was hearing many complaints from a lot of people that they are failing to run their C/C++ codes directly from the Visual Studio Code.

So, I thought about writing a full-fledged article on this on freeCodeCamp.

You need to check something sequentially. I am providing those step by step here:

1. You have to ensure that you have correctly installed the compiler for the C/C++ program whether you are using a Windows, Linux or Mac based operating system.

2. You have to check whether your compiler is working correctly or not. If you are a Windows user, then you also need to ensure that you have added the compiler's directory to the environment path variables. For this, make sure to check this article from freeCodeCamp.

3. I can pretty much assume that you have already ensured that your machine has the compiler installed and configured successfully if that passes the previous point. Now, it is time to install and configure the [VS Code](https://code.visualstudio.com/) properly. For this, simply head over to this article.

That's it! 😀

You may follow me on:

âž¡ Twitter: [Fahim_FBA](https://twitter.com/Fahim_FBA)

âž¡ LinkedIn: [fahimfba](https://www.linkedin.com/in/fahimfba/)

âž¡ GitHub: [FahimFBA](https://github.com/FahimFBA)

âž¡ English YouTube Channel: [Fahim Bin Amin - English](https://www.youtube.com/@FahimBinAminEnglish)

âž¡ Bengali YouTube Channel: [Fahim Bin Amin - Bengali](https://www.youtube.com/@FahimBinAminBengali)

âž¡ Blog (Powered by Hashnode): [Articles and Contents by Fahim](https://blog.fahimbinamin.com/)

âž¡ Website: [fahimbinamin.com](https://fahimbinamin.com/)

Upvote


user
Created by

Md. Fahim Bin Amin

Microsoft Research Investigation Contributor to OSS || Open Source Contributor || Competitive Programmer || Tech-enthusiasts || Student of Computer Science and Engineering at United International University


people
Post

Upvote

Downvote

Comment

Bookmark

Share


Related Articles