r/C_Programming • • 1d 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!!

10 Upvotes

96 comments sorted by

4

u/AdreKiseque 1d ago

Just use VS Code

1

u/Puzzled-Extent7817 21h ago

Zed

2

u/TetoSever31 9h ago

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

-1

u/Mountain_Hippo7575 1d ago

Il ne compile pas

4

u/Specific_Nobody892 1d 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 1d 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 21h 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 15h 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

51

u/Narrow-Low-3137 1d 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.

14

u/SubhanBihan 1d ago

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

1

u/Narrow-Low-3137 16h 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.

-10

u/dqduong 1d 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.

3

u/Narrow-Low-3137 16h ago

I can't tell if this is sarcasm. 

12

u/mikeblas 1d ago

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

7

u/TheLimeyCanuck 1d 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.

13

u/kansetsupanikku 1d ago

For learning? Kate

For big projects? vscodium

11

u/heh_meh___ 1d ago

Upvote for vscodium and not vscode

12

u/Obliviousnut_ 1d 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!

1

u/steQuill 1d ago

I still copy paste those json files from the internet as I have no idea how to generate them correctly

4

u/Hoshiqua 1d 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.

4

u/Fujinn981 1d ago

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

1

u/saksham__sharma_ 1d 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 1d 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

9

u/theNbomr 1d 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.

24

u/Limp-Confidence5612 1d ago

Vim

7

u/_evilpenguin 1d ago

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

5

u/veeloth 1d ago

pffft you use vim? I use nano

5

u/veeloth 1d ago

pffft you use nano? I use micro

3

u/veeloth 1d ago

pfff you use micro? I use kakoune

8

u/veeloth 1d ago

pfffft you use kakoune? I use ed

14

u/veeloth 1d ago

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

13

u/chrnz00 1d 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 1d ago

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

6

u/alih42 1d ago

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

6

u/kat-tricks 18h ago

Pffft, there's an emacs mode for that

→ More replies

3

u/drivingagermanwhip 1d ago

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

5

u/bombay-boyz 1d ago

Code blocks , code lite , Xcode

6

u/Ill_Programmer_1444 1d ago

shell and vim

6

u/dddurd 1d ago

GNU Emacs

2

u/UnmappedStack 1d 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/Old_Katsum5654 1d ago

Geany or CodeBlocks

3

u/Positive_Ad6908 1d ago

Eclipse CDT

2

u/1mmortalNPC 1d ago

nvim/vim

1

u/Wertbon1789 1d 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 1d ago

notepad++

1

u/RealisticDuck1957 1d ago

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

1

u/bird_feeder_bird 1d ago

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

1

u/Prestigious-Bet-6534 1d ago

VS Code, Z editor

1

u/Sad-Ad-9794 1d 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 1d 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 1d 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 1d 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 1d ago

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

1

u/LeateWonceslace 1d ago

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

1

u/podule-games 23h 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 22h ago

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

1

u/ee_control_z 20h 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 19h 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 17h 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 16h 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 15h ago

Codeblocks... comes with gcc compiler

1

u/Goralth_Survives 13h 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 11h ago

The road is:

  1. VS Code
  2. VS Code with vim motion extension
  3. Neovim

1

u/CounterSilly3999 11h 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/paralepsy 10h 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

1

u/TetoSever31 9h ago

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

1

u/mwiseca 8h ago

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

I use vim but it takes time to learn.

1

u/thurizas123 8h 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 6h 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 4h ago

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

1

u/Past_Appointment_859 4h ago

Vi/Vim/Neovim, no need for an IDE

1

u/bearpaw- 2h ago

Highly recommand Helix

1

u/manuelhe 2h ago

I like Zed. It’s just enough ide

1

u/grdix555 26m 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/laggySteel 1d ago

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

1

u/princepii 1d ago

neovim and or sublime

1

u/ReallyEvilRob 1d ago

Use vim.

1

u/khudri_it 1d ago

si tu débutes en C tu peux essayer codeblocks

1

u/TuxWrangler 1d 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 1d 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 1d ago

VsCode and Vim

1

u/Puzzled-Extent7817 21h ago

Zed and Helix

-3

u/walrus127 1d ago

VS Code is simply the best for most anything.

1

u/Mountain_Hippo7575 1d ago

Alors oui mais il ne compile pas

1

u/Puzzled-Extent7817 21h ago

Zed is simply the best for most everything.

1

u/walrus127 9h ago

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