r/C_Programming • u/Begg-billplayer • Feb 01 '26
Best ide to start coding C?
I tried following some youtube tutorials on downloading and setting it up through visual studio code and i always end up with a launch json error.
I gave up and i just want to start coding.
77
Upvotes
•
u/mikeblas Feb 01 '26
What's the specific error you're getting?
Meanwhile, here are two recent threads with the same question as yours:
202
u/zubergu Feb 01 '26
Find the most basic text editor you can find for your OS and then find instructions for how to compile everything from command line.
If you want to learn how to code in C and your first question is about json launch configuration, you're set up for failure.
50
u/wolfie-thompson Feb 01 '26
Just use a text editor and compiler. None of that IDE whistles and bells crap. Gcc and Kate/nano/vim/notepadqq.
14
u/Badhunter31415 Feb 01 '26
I use codeblocks
10
u/Wertbon1789 Feb 01 '26
Any text editor will do the job. The only step from that would be some kind of setup with an LSP, but there's no big IDE that you would greatly benefit from that much.
18
u/DreamingElectrons Feb 01 '26
There also is C-lion. But you can use any code editor you like (preferable with syntax highlighting and LSP support) if you are comfortable with using other tools in the console.
Personally I use Geany with LSP.
22
u/[deleted] Feb 01 '26
Punchcards and a PDP-9.
21
u/Prevent_Scurvy Feb 01 '26
I started with notepad++ and nano. I use vim now.
17
u/KneeReaper420 Feb 01 '26
sublime text + terminal
6
u/tux2603 Feb 01 '26
A lot of the time I just use visual studio code as a fancy text editor and compile things myself in a separate terminal instead of using the launch.json files. Doing your own builds instead of relying on an IDE is also a good way to learn more about the build process and common tools like make files
21
u/thegreatunclean Feb 01 '26
Assuming you are on Windows: Visual Studio. Not Code, the actual Visual Studio. VSCode is notorious for giving new users grief because of subtle setup issues like having to install a compiler separately and then debugging configuration issues before ever getting to writing their first program. Visual Studio installs a full compiler/toolchain and is ready to go out of the box.
Once you are more experienced you can branch out and try different tools until you find one you really like.
27
u/akaTrickster Feb 01 '26
Vim + clang
14
u/LeiterHaus Feb 01 '26 edited Feb 01 '26
Notepad? It doesn't really matter
Edit: I started writing C with Vim, and now usually use Neovim. (not a recommendation, just what works for me)
4
u/orbiteapot Feb 01 '26
Neovim + GNU/Linux tooling (including GCC) + Clang.
29
u/J_Bahstan Feb 01 '26
MS Word + GCC
11
u/Fun_Cow2317 Feb 01 '26
Emacs
3
u/Thwy__ Feb 01 '26
If you're a beginner and don't care about proprietary software, use Visual Studio on Windows, or CLion on Linux.
If you're a beginer and you like open source, use VSCode or Zed on Linux, or use NOTHING ON WINDOWS. The open source C experience on Windows is totally garbage, don't even try it.
If you're not a beginner, you should use whatever you like. C is a very simple language that can work well with any text editor given that you have enough free time to configure it properly.
3
u/Limp-Confidence5612 Feb 01 '26
Just use vim or emacs.
3
u/Sea_Addendum4529 Feb 01 '26
VIM on on a LInux distro
3
u/akachan1228 Feb 01 '26
You can start with the cs50 tutorial. Good way to learn C for beginners. Btw you didn't need a json to compolile c code.
2
u/Dakh3 Feb 01 '26
Emacs to code and a Terminal to compile? 😁
2
u/jwzumwalt Feb 02 '26
I understand that a persons Desktop and choice of development software can be a highly individualized matter. And, opinions will vary. But here is my two cents.
I recommend you NEVER use IDE's. For my development I use the KDE "Kate" editor due to it's snippet support. I use a simple make file to compile programs. It assumes the source file is "main.c" and outputs a Linux executable named "test". If the compile is successful, it runs the program.
I am a retired programmer. After 55 years of programming, my experience has taught me to NEVER use a IDE. A good editor YES, an IDE NO! On Windows machines I have always used Notepad++. Sadly, Linux does not have a feature rich editor like Notepad++.
"Bluefish's" main fault is the lack of an intuitive snippet manager. Other than this, it is also quite good.
By regularly programming with a good editor you will be able to walk up to any persons computer and solve problems. If you rely on an IDE, you may find it difficult to trouble shoot or assist other people when you are away from your computer.
Of course we are all different and others may have different experiences. For example, a programmer that remains at their desk and is paid to develop for 5+ years at their own work station will probably offer a different opinion - but that was never how I got paid.
Perhaps this is not the direction you want to go... That is fine, but at least now you will see more options and may adjust things in the future :-)
If you want to loose copyright protection then by all means use VS Code. A better choice is Vscodium if you want to go that route. Vscodium is VS Code stripped of most of the MS telemetry and micro-slop stuff.
5
u/greg-spears Feb 01 '26
Visual Studio 2026 Insiders
Community version is free and powerful and works right out of the box. I've heard from others that share your experience with VS Code being sometimes difficult to get set up, depending on compiler choice and such. So apparently there are some actual hurdles and you're not alone.
VS 2026 will have you coding in the same hour you install, as everything is fully integrated, which is literally in the name IDE.
You can always re-approach VS Code at a later date, for freedom of using different compilers or whatever is your motivation. Learning the language is enough challenge in the 1st year or so.
It's a completely natural progression to seek better compilers and platforms after we get a little mastery of the language. Cheers!
EDIT: corrected URL
3
u/ArkoSammy12 Feb 01 '26
C-Lion
4
u/real_taylodl Feb 01 '26
No IDE. Text editor. If you need more then C probably isn't for you.
2
u/konacurrents Feb 01 '26
Other than ‘vi’ - I’ve been using Xcode which is best IDE Ive used. Very impressive, supporting C C++ and objective C, (50 year programmer)
2
u/MiddleSky5296 Feb 01 '26 edited Feb 01 '26
VS Code. Don’t listen to stupid comments that say you can code on any text editor. They are not wrong but stupid. For beginners and even professionals, we rely a lot on IDEs and the features that they provide. For example, syntax highlighting, block folding, jumping to definitions, auto completion (and nowadays, AI code suggestions), GUI, hot keys. You likely to give up coding if you use note pad or vim. You may need to install a compiler before going to any JSON configuration. Try to compile with command line first. I suggest gcc compiler. You can also study how to use a basic makefile.
1
u/Coolcat_702 Feb 01 '26
I currently use Neovim but that's a bit much to configure so I would recommend something like Notepad++.
1
u/sgaragagghu2 Feb 01 '26
vim
1
u/pithecantrope Feb 01 '26
Zed
1
u/ReedTieGuy Feb 01 '26
Notepad
1
u/namotous Feb 01 '26
I use vim and clangd lsp
1
u/Cloudup365 Feb 01 '26
I personally use neovim and vim (I wouldn't call them beginner friendly, but I also would called them the hardest things in the world), sometimes I use vscode for connecting to a database every one and a while. If your just starting out than and want to try one in the terminal, give gnu nano a try, if you want something with a bit more power then give clion a go its free if you not making any money of what your doing and there is also sublime, I haven't used it personally but i have heard good thing about it
1
u/Sad_Leather_6691 Feb 01 '26
Every uni’s fav turbo C.
1
u/iBabTv Feb 01 '26
A text editor + compiling from command line
1
u/MattouBatou Feb 01 '26
For C your should be using Visual Studio to start. Not VSCode. VS has an awesome debugger and that is something you definitely need for C. You need to be able to watch variables and poke around memory addresses. I know use CLion on Mac because there's no VS on mac anymore. You can pick up a more simple IDE and seperate debugger when you feel comfortable with C.
Just try Visual Studio. You won't regret it.
1
u/TrickySite0 Feb 01 '26
ex if you have the patience and courage. When ex is for sissies, take your masochism to a new level by exclusively writing in ed.
1
u/Dangerous_Region1682 Feb 01 '26
I started coding C with ed, then ded/author, then vi all with makefiles. Debugging was with sdb and gdb. Kernel code with kdb and its derivatives. I suppose vi is vim nowadays but is the same odds. I preferred back when it didn’t try to layout stuff for you. I tried EMACS for a bit but got irritated by writing macros to do extra things in Lisp.
If anyone tries to encourage you to use a port of a DEC System 10 or 20 editor called TECO they are not your friend.
On the Mac you can install the XCode IDE and its command line toolset too, which I tend to use. If I’m just messing about with something small I’ll use the IDE, but for most stuff the command line tools are better in the long run for people like me who were invented before IDEs.
ChatGTP with “ C on XCode on macOS” will get you started.
This is all for writing code in user space I suspect trying to write kernel space code is better done with the command line.
The thing I hate about IDEs is that they usually have thousands of flags you can set, half of which you have no idea what they mean and some of them interact. Using the command line reduces these flags to more likely every day changes required in selecting actually desirable behavioral changes.
If you really must use Windows then I’d install a full Visual Studio environment not the VS Code product. I’m sure VS Code really does work though. I’d find another YouTube video and start by doing a full VS Code delete and a fresh install.
Once again ChatGTP asked “C on VSCode on Windows” gets lots of different ways of setting environments up for differing target purposes. If you are cross building to run on Linux too there is an install mechanism that uses the Windows Linux environment.
1
u/ferriematthew Feb 01 '26
I like VSCodium (the FOSS reimplementation of VSCode)
1
u/[deleted] Feb 01 '26
I started C in MS-DOS and Turbo C++ in my college days. Now, vs code is the only editor I use daily. I have different profiles for different languages. Once you set it up one time, you can use that profile for respecting language projects.
1
u/AdAlone3387 Feb 01 '26
DevC++ if you’re on Windows and not comfortable on the terminal. TextMate if you’re on Mac. I won’t comment on Linux lol
1
u/Independent-Gear-711 Feb 01 '26
Neovim+gcc
1
u/Specific-Housing905 Feb 01 '26
You can use Code::Blocks. It comes with a compiler so you just an installer and then you can start coding. As a beginner you don't want to mess around with editors and make files.
1
u/Blitzbasher Feb 01 '26
notepad++ is pretty lit if you know how to compile
1
u/Ignited_ember Feb 01 '26
Yes! Launch JSON errors are irritating for starters. The simplest way is to use Notepad++ with any dark theme so it doesn’t strain eyes. Then install MinGW GCC compiler for windows. Write program and compile it in terminal with “gcc filename.c -o filename.exe and to run ./filename.exe
1
u/FrostZTech Feb 01 '26
I use Vim, but I'd recommend just start with anything simple, personally speaking start with any editor where you can code and find and learn how to compile. That's all you need.
1
u/Ok_Suggestion6083 Feb 01 '26
Neovim
1
u/stef_eda Feb 01 '26
vim for the win.
1
u/anduygulama Feb 01 '26
codeblocks for start, then give up IDEs. then any editor(I prefer notepad++ for windows) and custom linking and compling toolchains.
1
u/Banishlight Feb 01 '26
Vim -> Make -> Gcc
Those are the 3 tools needed by every C developer.
1
u/chris_insertcoin Feb 01 '26
Neovim
1
u/stvpidcvnt111111 Feb 01 '26
nvim with nvchad 100% if u want something to just work, altho u can make vim a fully featured IDE with plugins.
1
u/Soft-Cauliflower-670 Feb 01 '26
Setup a code space on GitHub. And you can easily connect it to your vscode locally.
1
u/Comprehensive-Can563 Feb 01 '26
Vim
1
u/UnfairDictionary Feb 01 '26
Setting up a C programming environment on Windows is a pain. I do not know why Microsoft makes it so, but it does.
You need to install the compiler and development tools for C. Also you need to set up the VS Code to use them and point it to correct library directory. Microsoft has a pretty comprehensive guide to set all up though.
1
u/ProstheticAttitude Feb 01 '26
I think that an IDE is bad for you at a learning stage. You don't really need much tooling other than a simple editor and a commandline compiler for most textbook exercises or leetcode problems.
My usual IDE is Visual Studio Community, mostly for its debugger.
1
u/tony_saufcok Feb 01 '26
the compiler will read any .c file and make an executable out of it. you can use your favorite text editor to write this .c file. i could recommend notepad++ since it has syntax highlighting and autocomplete for keywords but no other hand holding.
1
u/flyingron Feb 01 '26
The easiest thing for windoze is just to use the Visual Studio (community edition).
It takes a while to download and install, but it is complete out of the box and fairly decent.
1
u/[deleted] Feb 01 '26
Vim or neovim and as they already suggested, compile your programs your self, Visual studio trying to make things easy won’t help you learning
1
u/ml01 Feb 01 '26
ed.1
u/yuvraj___72637 Feb 01 '26
Turbo c then switch to notepad ...
1
u/jmp_rsp Feb 01 '26
Vim is all you will ever need
1
u/Todegal Feb 01 '26
To be honest setting visual studio should not be that challenging, maybe give it another go?
But as others have said just using GCC from the terminal is a great way to really learn C, use notepad or literally anything while youre learning and only upgrade when you move on to bigger/multifile projects.
1
u/BubbaMc Feb 01 '26
I’m just starting C using Borland C 2.0 in Dosbox-x. The simplicity compared to modern environments is very refreshing. I was fighting with modern tools like you before.
1
u/kenkitt Feb 01 '26
VIsualy Studio, but I reccomend you install VIsual Studio then Visual Studio Code + Cmake and Cmake extension lists, everything is much better this way. But if you want to really debug properly VIsual Studio is your go to. Normal coding just use Visual Studio Code
1
u/LardPi Feb 01 '26
just vim+gcc for me now, but as a beginner I appreciated the all in one aspect of code::blocks. I think geany+gcc would also offer a similar noob friendly experience.
1
u/rasmalaayi Feb 01 '26
Code blocks and codelite both are integrated and very good for beginners
1
u/Due-Low2684 Feb 01 '26
Actually there is none. It all depends how customized you want it to be. If you want everything should work out of the box with some extension enabled go with clion by jetbrains. I personally prefer doing it on terminal+tmux+nvim+gdb. My suggestion if you are really interested in systems and embedded programming is to start with a terminal and vim cause a lot of tools for c development are cli based so you will be spending a lot of time looking at the terminal window.
1
u/rassawyer Feb 02 '26
Vim. Obviously
1
u/Snoo28720 Feb 02 '26
Sublime text 3
1
u/Anxious_Gur2535 Feb 02 '26
any text editor, if this text editor support LSP
1
u/OppieT Feb 02 '26
There is the web version of visual studio code.
1
u/Pale_Part_5172 Feb 02 '26
Vim, Zed editor, VS Code, Visual Studio. I use Zed.
1
u/Automatic-Anything34 Feb 02 '26
if you have finished MinGW , download Geany.
1
u/No-Bag3034 Feb 02 '26
Neovim
1
u/4eyedMan Feb 02 '26
VSCode and the terminal are your best friend!
1
u/[deleted] Feb 02 '26
nano
1
u/rahul_msft Feb 03 '26
Pencil and paper
1
u/Trenek Feb 03 '26
neovim
1
u/Radiant-Structure764 Feb 03 '26
Vim
1
u/Dangerous_Elk_3030 Feb 03 '26
You can try Vim, but it's for "gourmets"
1
u/NickiV Feb 03 '26
Emacs 🙂. You can use it like notepad, but it is very powerful, and you can configure a language server which will be a great quality of life improved.
For compiling, gcc or clang via command line is something that I believe is a valuable skill.
1
u/Iko86 Feb 04 '26
Dev-C++
1
u/batman-not Feb 05 '26
first know how to compile a C program locally using a compiler. then use whatever the text editor for coding. Thats the best thing.
It is not hard to compile your program.
step 1: install a compiler (my suggestion is GCC)
step 2: write a simple helloworld program in any text editor
step 3: compile using the basic gcc command: gcc <your c program file> -o <output>
step 4: run the output: ./<output>
you can DM me, if you want any help
1
u/Zealousideal-Phone-8 Feb 05 '26
Any editor with code completion. Do not use visual studio. Use vscode. Learn the compilation steps. VS hides so much that İ think it should not be used until the intermediate level. Try to use cmake after a while.
1
u/Kenny-95 Feb 06 '26
Not IDE, but vi/vim/nvim & gcc is best for start
1
u/photo-nerd-3141 Feb 01 '26
vile or vim.
1
u/procrastinatewhynot Feb 01 '26
what’s the code you’re getting? vscode is pretty good
1
u/Pale_Height_1251 Feb 01 '26
I like CLion, but Visual Studio is good too. Or Visual Studio Code is fine.
1
u/UltimaN3rd Feb 01 '26
If you want an IDE and not just a text editor, vscode really is the best choice for beginners. Here's another youtube guide on setting it up - maybe this time's the charm? https://www.youtube.com/watch?v=4mvf73HvcVI
1
u/AlarmDozer Feb 01 '26
Why do people do this? You can learn C in any platform. Hell, you could write C on a Dreamcast. So when you say “IDE” is that for Windows, Linux, or macOS? If it’s Windows, I’d say CLion or VisualStudio or Code::Block. If it’s Linux, well, you do distro hopping so explore Vi/Vim vs emacs and using Makefiles and cmake. If it’s macOS, you may want to start with Xcode or CLion. JetBeans makes a good IDE, and CLion is their baby for C development. But you could use Eclipse or Netbeans.
When I think IDE, I think Debug/Step Through/Breakpoints within the application, but Linux is the C IDE. You can use whatever text editor and use gdb for stepping through code for debugging.
1
u/WaterDapper4368 Feb 01 '26
Notepad
/s
1
u/paulys_sore_cock Feb 01 '26
I've been an embedded C coder for about 87 million years old (we rarely die, we get patched). Do not emulate my workflow.
If you are getting json errors, guess what? Time to fail back and punt.
Do not listen to anybody here.
This is what you do. Let's hope you are on Windows (if not return (-1)),
You will download VISUAL STUDIO. Not VS Code. Microsoft visual studio. You are cheating. It is fine. Our goal is to get you to edit, compile, and run code.
Accept the defaults.
Ok. See that C++. Ignore the "++". Make a proejct.
include <stdio> void main(vois) { printf("hello world, & I'm awesome\r\n"); }
Click build and run (assuming no errors). You have a running program.
Now get to work building stuff and forget about fighting build systems and tool chains.
When you are ready to move on, take a look around on what others use for that type of C coding and try that.
But, if you are having json errors in getting a C toolchain to go, let's take the nuclear option.
0
u/Alarming-Function120 Feb 01 '26
Honestly? Nano or notepad.
Start with basics
0
u/ExtraSloppyyy Feb 01 '26
Emacs
0
u/[deleted] Feb 01 '26
[deleted] — view deleted comment