DEV Community

Cover image for How to Setup and Run C on macOS
Jovan M.
Jovan M.

Posted on

How to Setup and Run C on macOS

This article is part of my YouTube video series : Link

Understanding what is needed to write C

  • You will need a compiler to convert your source code into executable code. (for windows I recommend using WinGW, if you are using macOS you have a default compiler installed)

  • You will also need a text editor or an IDE these are used for writing and saving your C code. If you are on Windows the Notepad can be used as a text editor (which I don't personally recommend because you can get an IDE free and simply). An IDE is an Integrated Development Enviroment that helps you write code. There are many features and plugins that make an IDE the best way to code.

*Popular IDE's: Atom, Sublime Text, Gedit and Visual Studio Code.

How to set up Visual Studio Code

First head over to Visual Studio Code, find and download the version and operating system you need.

After that open up Visual Studio Code and head over to the Extensions on the left panel. There you will need to install two extensions. The first one is for the intellisence and called C/C++ made by Microsoft. The second one is a code runner and I use the one made by Jun Huan.

You are ready to go with C

If you still have problems check out my video explaining the step by step here.

Thanks for reading,
Take care
Jovan

Top comments (0)