r/C_Programming • u/Mountain_Hippo7575 • 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
4
u/AdreKiseque 1d ago
Just use VS Code
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.
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
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!
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
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.
12
u/realhumanuser16234 1d ago
neovim
24
u/Limp-Confidence5612 1d ago
Vim
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/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/Puzzled-Extent7817 21h ago
Zed
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/Defiant_Squirrel8751 15h ago
Claude code.
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/Proof_Cold_9268 13h ago
Vim
1
u/simondanielsson 11h ago
The road is:
1
u/Special_Net_1229 11h ago
neovim ftw
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/pithecantrope 3h ago
Zed
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
-3
u/walrus127 1d ago
VS Code is simply the best for most anything.