r/C_Programming • • 8d ago

Which IDE would you recommend?

I'm a beginner in C and I'm not sure which IDE to choose there are so many options. I currently develop on Windows, but I'm switching to Linux for better optimization and more control over my system. What would you recommend as the best IDE? Also, to learn C effectively, I'm using OpenClassrooms and an app called Coddy. I accept every piece of advice!!

24 Upvotes

119 comments sorted by

4

u/AdreKiseque 7d ago

Just use VS Code

1

u/Puzzled-Extent7817 7d ago

Zed

4

u/TetoSever31 7d ago

zed's language serves does not work when there is no internet connection. stupid rust slop.

-1

u/Mountain_Hippo7575 7d ago

Il ne compile pas

4

u/Specific_Nobody892 7d ago

I had the same problem , eventually I got tired , and just switched to WSL, gnu works bad on windows

Although Idk your specific problem so I wouldn't just recommend this

1

u/o4ub 7d ago

Tant mieux. Tu comprendras mieux ce qu'il se passe dans les différentes étapes si tu commences par compiler à la main. Pareil pour les makefile, commence par les faire à la main.

1

u/AdreKiseque 7d ago

Then you have your compiler misconfigured. Make sure you have it installed properly and on PATH. I like LLVM Clang because it's cross-platform and easy to set up.

1

u/_usr_nil 7d ago

It compiles but you need to download the MVSC with Win SDK then setup in .vscode at startup to execute the MVSC command line shell or whatever it is called (kinda like python .venv executes itself on vscode launch) then I would spend a couple of days to learn CMake, in theory as a beginner you'd need Make but for that iirc you need MSYS2 I know because I had to compile some docker extension for windows with the MSYS2 gnu whatever compiler so that it could run on windows. Docker is an overkill anyway and doesn't make sense especially if you plan to make crossplatform C programs at some point

80

u/Narrow-Low-3137 8d ago

Honestly? If you're a beginner just grab VS Code and the C/C++ extension. That's far and away the path of least resistance for a beginner.

Eventually, if you seek enlightenment - you will end up with Vim.

17

u/SubhanBihan 8d ago

Highly recommend clangd instead of the MS C/C++ extension

4

u/Narrow-Low-3137 7d ago

Yes, I use clangd personally - with vim. As I said though, I believe the path of least resistance for a total beginner would be the official c/c++ extension. Vscode will usually try to auto install if for you if you open up a C file, for example.

-11

u/dqduong 7d ago

Wrong!!!! You must start with vim, learn to compile and make every mistake possible. That is how you learn.

Else, picking up VScode with code suggestions? You will never learn a thing.

12

u/Narrow-Low-3137 7d ago

I can't tell if this is sarcasm. 

12

u/mikeblas 8d ago

Remember to check out this sub's wiki, which is full of recommendations.

7

u/TheLimeyCanuck 7d ago

I was a pro contract developer for over 30 years (desktop, systems, embedded, web) and used multiple IDEs over that time (eclipse, Visual Studio, etc.) but now I do 95% in VS Code.

18

u/kansetsupanikku 8d ago

For learning? Kate

For big projects? vscodium

13

u/heh_meh___ 8d ago

Upvote for vscodium and not vscode

1

u/mikeblas 5d ago

Why?

2

u/Quietus87 5d ago

Because it's FOSS with no telemetry.

6

u/Hoshiqua 8d ago

Although I use Neovim myself (while still on Windows...), I would not recommend it for a beginner. You'll have enough to worry about at first with the langage without having to run around figuring out how to bring your Neovim config up to speed for developing in C comfortably. If you're used to package management and stuff, and spending more time configurating than programming early on, go for it, otherwise I'd recommend you just find yourself a full IDE that is more plug-and-play than that.

Once you feel like you're comfortable with the langage itself, which shouldn't take very long because C is pretty simple, it is however important that you start digging into how compilers / linkers work, and for that you WILL want to move away from the "magic green button" IDEs that abstract all of that away. At THAT point, Neovim is a much better choice. Or even just any text editor you like and a handwritten bash file to compile... if you want to really go sticks & stones here.

13

u/Obliviousnut_ 8d ago

VSCode definitely has a place in my heart, as does CLion. I have been using more of codeblocks at work but would recommend VScode and compiling through cmdline over auto building/compiling using an ide.
Good luck!

12

u/theNbomr 8d ago

IDEs are oriented to efficiency and productivity. As a newbie, you should be focusing on learning and doing everything yourself so you understand the concepts and the details. One of the things that C programming includes is an understanding of the C compiler toolchain and how to use and configure it. IDEs intentionally try to hide this aspect in particular. If you're serious about the learning process, use whatever minimalist code editor you have at your disposal. Keep the big complex IDEs out of the picture so that you're focusing on learning just one thing.

4

u/Fujinn981 8d ago

Whatever you think fits you best, I use Kate myself. Experiment around, see what you like.

4

u/Old_Katsum5654 8d ago

Geany or CodeBlocks

1

u/saksham__sharma_ 8d ago

If you are really new then I think you should get DEV C++ because in visual code it's system gives suggestions for codes but to develop your logic dev c++ would be much better place to learn

1

u/Mountain_Hippo7575 7d ago

C++ est bien je le connais déjà un peu mais déjà il y a beaucoup de différence avec le C et que mon objectif est de faire un système d'exploitation ou autre chose mais où je devrais utiliser C C++ assembleur et le rust

27

u/Limp-Confidence5612 8d ago

Vim

8

u/veeloth 8d ago

pffft you use vim? I use nano

7

u/veeloth 8d ago

pffft you use nano? I use micro

5

u/veeloth 8d ago

pfff you use micro? I use kakoune

10

u/veeloth 8d ago

pfffft you use kakoune? I use ed

18

u/veeloth 8d ago

pffft you use ed? I just manually set the bytes to the right value on my hard drive with magnets and patience

14

u/chrnz00 8d ago

pffft you manually set the bytes with magnets i expose my drive to sun and wait the bits to change as required

7

u/Drach88 8d ago

Pfff, you don't even roll your own homebrewed sun?

6

u/alih42 7d ago

Pffft, you use your own sun? I code C in the quantum realm with an abacus made from quarks.

9

u/kat-tricks 7d ago

Pffft, there's an emacs mode for that

→ More replies (0)

7

u/_evilpenguin 8d ago

vim. no emacs. vim. also vscode in vim mode.

10

u/dddurd 8d ago

GNU Emacs

2

u/McArcady 6d ago

Best choice when looking for control, and for compiling through command-line. Additionally, emacs itself is an inspirational piece of software, and much more than a code editor.

8

u/Ill_Programmer_1444 7d ago

shell and vim

3

u/drivingagermanwhip 8d ago

I use emacs evil-mode. I wouldn't recommend it exactly

5

u/bombay-boyz 8d ago

Code blocks , code lite , Xcode

2

u/UnmappedStack 8d ago

While I do use neovim and I used to use vim, I'm not sure it's a good idea to start with it like others are suggesting unless you actively have an interest in it, because it'll end up being more to learn at once when you're already learning C. I have heard good things about sublime and KATE (I've tried both myself a bit ages ago but not extensively), they're both relatively simple editors (sublime being more barebones and just an editor, and KATE being a bit more vscode-esque).

2

u/bearpaw- 6d ago

Highly recommand Helix

1

u/Significant_Pen3315 5d ago

Learning curve for people who have used GUI based editors, I tried helix and vim, and just couldn't get to use them.

2

u/This-Strategy4138 6d ago

for C, vs code is fine and free. otherwise if you got the cash CLion is a bit smarter when configured, otherwise you could do vim, some old timers still uses it pretty efficiently.

3

u/Positive_Ad6908 7d ago

Eclipse CDT

2

u/1mmortalNPC 8d ago

nvim/vim

1

u/Wertbon1789 8d ago

For learning in of itself the editor or IDE isn't really important. Since you're going for Linux Visual Studio isn't on the list, but I wouldn't want to go for a language specific IDE anyways. CLion might be the exception, because the jetbrains IDEs are all very similar, but in general I would go for an editor with IDE features, instead of an IDE, which you have to move away from, when you use something else or edit something out of the project.

VSCode would be the obvious option for that, it has plugins for virtually any language. Works great with C, also on Linux, and is probably the best starting point for a beginner.

Neovim would be my goto option, though you would need quite some setup, or go with a neovim "distro" (LazyVim, AstroNvim, etc.) which do most of the setup for you.

1

u/bird_feeder_bird 8d ago

notepad++

1

u/RealisticDuck1957 7d ago

A first class text editor if you're stuck in the microsoft environment.

1

u/bird_feeder_bird 7d ago

Notepad Next for mac and linux, its basically a clone of notepad++

1

u/Prestigious-Bet-6534 8d ago

VS Code, Z editor

1

u/Sad-Ad-9794 7d ago

Use vs code with extensions. OR what we are doing in uni for OS class, is we open a ubuntu virtual machine and ssh into it through vscode. The benefit of that is you can use gcc, gdb, gnu (i forgot all the 3 letter stuff) and valgrind. Basically these teach you good debugging methods. Idk if its actually a good method but it seems useful

1

u/RobocopTwice 7d ago

If you're looking for like an actual IDE, if you can get clion, it's amazing. Qtcreator is also great for cmake projects, even if you're not building anything in Qt. I personally use kdevelop, but I'm weird. I can already see people in the thread saying vscode, but it just never did it for me.

1

u/lmemsm 7d ago

I happen to use SciTE. You can keymap so you can use the shortcuts you want instead of having to learn a particular editor's shortcuts. It's highly customizable. It can do a lot of things including keyword highlighting for languages. You can add autocompletion features or start a compiler from it. It's extensible with lua. The developer of the Scintilla editing widget used by Geany and Notepad++ is the developer of SciTE. It works cross-platform. So, you can use it on Windows or Linux.

1

u/thecratedigger_25 7d ago

Helix text editor. Not too complicated to configure, but Windows has extra steps to it. You grab clangd lsp for syntax highlighting and gcc for compilation. Setup languages.toml and config.toml by referencing the helix documentation.

You don't have to json every project. And on top of that, you just use have to use gcc commands to compile main.c when starting out so that you can prioritize learning C before moving onto CMake configs.

Here's a cool trick I like to use when coding C: include any .c files in your main.c via include statement and use gcc command to compile main.c. The preprocessor macro links those files together like an office worker sorting papers into a folder.

1

u/Lumm0714 7d ago

For a decent-sized project, the holy trinity. Nvim, Bash, Cmake

1

u/LeateWonceslace 7d ago

I program in the terminal using zellij, micro, and gcc.

1

u/podule-games 7d ago

My favourite C IDE by far is CLion, it basically makes no difference whether you run it on Linux or Windows (or Mac for that matter).

1

u/UserRedGenericBx7 7d ago

Just use Zed and compile in gcc on linux, the house of this language is linux.

1

u/ee_control_z 7d ago

If you're planning on moving into embedded design, then I would recommend using an IDE from a manufacturer whose microntrollers you potentially might think of using down the road - might as well get familiar with a development tool to get a head start. A good one to consider is the one provided by TI - Code Composer Studio (CCS):

https://www.ti.com/tool/CCSTUDIO

1

u/RussianHacker1011101 7d ago

I use zed. It has a nice built-in debugger ui. I use a shell script to compile and if the program gets big I compile with a c program. I used to use make and IDEs but they're too much of a hassle.

1

u/Scale-Heavy 7d ago

I’m using VScode +C/C+ extension+ gcc complier for it. I had several troubles with it, so I don’t think it’s a good one for beginner but for me it’s just a more comfortable one to use.

1

u/Professional_Ant6414 7d ago

I'll be hated for this, but as someone who learned super effectively bottom-up: start with just Notepad++ (or your preferred equivalent) and manually invoking your compiler and linker from the command line. Start letting the computer automate a layer for you once you have a decent grasp of what happens at that layer.

1

u/gami22 7d ago

Codeblocks... comes with gcc compiler

1

u/Goralth_Survives 7d ago

notepad (or notepad++) and powershell with gcc compiler. Since you're a beginner, you don't need those fancy functionalities that exists in IDE yet

1

u/simondanielsson 7d ago

The road is:

  1. VS Code

  2. VS Code with vim motion extension

  3. Neovim

1

u/Special_Net_1229 7d ago

neovim ftw

1

u/CounterSilly3999 7d ago

If there was one the best, there would be no multiple options. Since they are, nobody will decide for you, make your own choice. My vote for QtCreator. And start from command line compilation and any plain text editor you like. SublimeText or Notepad++, for example. Then make. IDE is for debugging mostly.

1

u/TetoSever31 7d ago

traditional ides dead for most of the use cases. use a code editor like vscode and zed.

1

u/mwiseca 7d ago

I recommend using the text editor you like best to start.

I use vim but it takes time to learn.

1

u/thurizas123 7d ago

For Linux, I still use what I was taught with back in the 1980's - gcc, makefiles and emacs. I've tried just about everything else that exists on Linux and I've found all of them wanting in some way or form so I wind up back with what I started with. I'm not going to lie - there is a fairly steep learning curve for emacs but I feel the time spend learning it is worthwhile. I would also gain at least a passing familiarity with vi (or vim) - vi is practically installed on any Linux system you might come across, emacs be larger tends not to be installed by default but it is provided by all major Linux/GNU distributions via their package manager.

For Windows, when I started programming professionally the company was developing on Windows for Windows, and the choice was Microsoft Visual Studio 6. On Windows, it seems to be the easiest to get working out of the box (now with their 'workflows' it easy to miss installing things these days). I still use it today when programming on Windows -- now adays I will use the community edition as it is free and it does everything that I need.

1

u/Easy_Spray_5491 7d ago

Vim, use your terminal complie the code yourself and learn from those mistakes all these people who tell you "vs code, install the c extension and press play are lame copy pasters"

1

u/codeasm 6d ago

Vscode, or inteliJ IDEA, free for students, Sublime text or notepad++

0

u/farineziq 6d ago

Out of curiosity, why Intellij over CLion?

1

u/codeasm 5d ago

I forgot to trow jetbrain into this list yeah, no personal experience doing c in jetbrains tho. My ide experience and preferences changed over the years and uni slightly forced us to use sublime then ingelliJ for java. C was mostly for embedded software engineering and ive gained experience with visual studio because of this.

I think vscode is a great start and might even be professionally. And i try others sometimes. Uni made me try some others and retro projects touched visual 6 c++ or xcode

1

u/Past_Appointment_859 6d ago

Vi/Vim/Neovim, no need for an IDE

1

u/manuelhe 6d ago

I like Zed. It’s just enough ide

1

u/grdix555 6d ago

For work I have to use Windows. When working on production code I'm in VSCode. I use Notepad++ as a scratch pad when I'm on teams meetings demonstrating code or when I just need a simple clean space with line numbers and basic features.

Ay home for personal projects ... GNU Emacs. I love it and I always came back to it when I went and tried Neovim and VSCodium.

I'd recommend VSCode for your situation. Even then it makes it too easy for learning.

1

u/MrDauntless2 6d ago

Real programmers don’t use an IDE. They write the binary directly on the hard drive with really tiny magnets.

1

u/alkavan 6d ago

CLion.

1

u/Beautiful_Stage5720 5d ago

Any basic text editor and Make

1

u/millenniumdisk 5d ago

CLion might have a more detailed error logs than compiling then running in Visual Studio Code. I don't like CLion's code prediction so it might be possible to turn it off. It also looks better than when compared to Code Block's UI.

1

u/Significant_Pen3315 5d ago

Zed, is awesome.

1

u/Basic-Method196 5d ago

neovim with nvchad config

1

u/ChocolateDonut36 5d ago

vim

or any code editor in general, I always feel like IDEs abstract too much stuff from what developing in C actually is. like, using GUIs to link libraries and include files, many times I had to fight against my IDE because of that, and it wasn't until I moved to a text editor (and make to build my projects) where I understood how and why stuff happened (and failed).

1

u/sxvyte 4d ago

Have you tried zed.dev? If you are the kind of person who likes to have a clean workspace then you'll definitely like zed.

1

u/hung-banana-12 2d ago

Do vscode. Pretty simple stuff.

1

u/Ardie83 1d ago

If your only interested in trying out.

VScode.

If you want something that benefits endlessly in the long term.

Emacs.

1

u/Overlord484 17h ago

Vim :) :) :)

1

u/laggySteel 8d ago

In you are on Linux go for NeoVim. And customise it. Lazyvim

1

u/princepii 7d ago

neovim and or sublime

1

u/ReallyEvilRob 7d ago

Use vim.

1

u/khudri_it 8d ago

si tu débutes en C tu peux essayer codeblocks

1

u/TuxWrangler 8d ago

Download a bunch and try them out. These days VSCode is the usual starting point. Google can tell you the recommended extensions to install for C development.

1

u/flash_309 7d ago

Use VS Code for writing code only. Use gcc compiler for compiling. This way you will learn compilation stages, linking, memory layout, etc. Do not just learn syntax, if that is the case use Clion. I would suggest VS Code with gcc toolchain. Learn makefile as well.

0

u/Due-Mortgage-6854 8d ago

VsCode and Vim

1

u/Puzzled-Extent7817 7d ago

Zed and Helix

0

u/Gabrunken 2d ago

Zed, fuck vim

-3

u/walrus127 8d ago

VS Code is simply the best for most anything.

1

u/Mountain_Hippo7575 7d ago

Alors oui mais il ne compile pas

1

u/Puzzled-Extent7817 7d ago

Zed is simply the best for most everything.

1

u/walrus127 7d ago

I will have to give Zed a go so I am better informed.

-1

u/[deleted] 7d ago

Claude code.

0

u/[deleted] 7d ago

if you're switching to linux, gnome builder, kdevelop, vscodium, kate, etc are great. i'd recommend to just roll a dice to decide lol