Which IDE to use for (freestanding) C?

Programming, for all ages and all languages.
User avatar
Nutterts
Member
Member
Posts: 159
Joined: Wed Aug 05, 2015 5:33 pm
Libera.chat IRC: Nutterts
Location: Drenthe, Netherlands

Which IDE to use for (freestanding) C?

Post by Nutterts »

I've been using C again after a long long time (and loving it). But I'm getting to the point where it would be nice to at least have auto-completion for code I've written. Other nice features would be templates when creating new files and (some) integration with auto-tools and/or cmake.

Using sublimetext 3 at the moment and looking at the Netbeans IDE but it got me wondering what everyone using C for osdev is using a they're IDE. Maybe you all have some other options I might look at.

For me it must run on Ubuntu (Mate) so Windows/Mac options aren't very helpful. But feel free to trow them in there.
"Always code as if the guy who ends up maintaining it will be a violent psychopath who knows where you live." - John F. Woods

Failed project: GoOS - https://github.com/nutterts/GoOS
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Which IDE to use for (freestanding) C?

Post by iansjack »

Eclipse. CodeBlocks is pretty good too.
kzinti
Member
Member
Posts: 898
Joined: Mon Feb 02, 2015 7:11 pm

Re: Which IDE to use for (freestanding) C?

Post by kzinti »

Sublime Text 3 =)
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Which IDE to use for (freestanding) C?

Post by Combuster »

I like KDevelop. Mostly for reasons beyond C.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: Which IDE to use for (freestanding) C?

Post by onlyonemac »

iansjack wrote:Eclipse.
That would be like using Visual Studio to develop Java applications.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
User avatar
Nutterts
Member
Member
Posts: 159
Joined: Wed Aug 05, 2015 5:33 pm
Libera.chat IRC: Nutterts
Location: Drenthe, Netherlands

Re: Which IDE to use for (freestanding) C?

Post by Nutterts »

onlyonemac wrote:
iansjack wrote:Eclipse.
That would be like using Visual Studio to develop Java applications.
What would you suggest?
"Always code as if the guy who ends up maintaining it will be a violent psychopath who knows where you live." - John F. Woods

Failed project: GoOS - https://github.com/nutterts/GoOS
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Which IDE to use for (freestanding) C?

Post by iansjack »

onlyonemac wrote:
iansjack wrote:Eclipse.
That would be like using Visual Studio to develop Java applications.
What a strange comment.

I can only assume that you have never used Eclipse and have some sort of idea that it is a Java programming environment. That is an error.
User avatar
Nutterts
Member
Member
Posts: 159
Joined: Wed Aug 05, 2015 5:33 pm
Libera.chat IRC: Nutterts
Location: Drenthe, Netherlands

Re: Which IDE to use for (freestanding) C?

Post by Nutterts »

iansjack wrote:
onlyonemac wrote:
iansjack wrote:Eclipse.
That would be like using Visual Studio to develop Java applications.
What a strange comment.

I can only assume that you have never used Eclipse and have some sort of idea that it is a Java programming environment. That is an error.
I agree it's weird because there are no alternatives given.

But please let's not get that deep into this or turn it into a "what's better" discussion. That's in the eye of the beholder.

For me, eclipse-cdt sounds good. But there might be more lightweight options to try.
"Always code as if the guy who ends up maintaining it will be a violent psychopath who knows where you live." - John F. Woods

Failed project: GoOS - https://github.com/nutterts/GoOS
User avatar
Nutterts
Member
Member
Posts: 159
Joined: Wed Aug 05, 2015 5:33 pm
Libera.chat IRC: Nutterts
Location: Drenthe, Netherlands

Re: Which IDE to use for (freestanding) C?

Post by Nutterts »

kiznit wrote:Sublime Text 3 =)
Srry I missed this. How you get autocompletion working? Am I that blind?
"Always code as if the guy who ends up maintaining it will be a violent psychopath who knows where you live." - John F. Woods

Failed project: GoOS - https://github.com/nutterts/GoOS
kzinti
Member
Member
Posts: 898
Joined: Mon Feb 02, 2015 7:11 pm

Re: Which IDE to use for (freestanding) C?

Post by kzinti »

Nutterts wrote:Srry I missed this. How you get autocompletion working? Am I that blind?
My bad, I missed you needed auto-completion.

Well it does work, but only within a file... It won't auto complete stuff from other files. Which is too bad.
User avatar
Nutterts
Member
Member
Posts: 159
Joined: Wed Aug 05, 2015 5:33 pm
Libera.chat IRC: Nutterts
Location: Drenthe, Netherlands

Re: Which IDE to use for (freestanding) C?

Post by Nutterts »

kiznit wrote:It won't auto complete stuff from other files. Which is too bad.
Exactly... use it for everything, replaced np++ for me and some plugins do provide auto completion for other languages. Just can't seem to find something for C to at-least do that. I could work around the other things but code completion would free me from quite allot of stupid typo-errors when compiling.
"Always code as if the guy who ends up maintaining it will be a violent psychopath who knows where you live." - John F. Woods

Failed project: GoOS - https://github.com/nutterts/GoOS
User avatar
Nessphoro
Member
Member
Posts: 308
Joined: Sat Apr 30, 2011 12:50 am

Re: Which IDE to use for (freestanding) C?

Post by Nessphoro »

Nothing beats Visual Studio 2013/2015 for C/C++ code writing, you get completion and many other things.
Of course, it is Windows only, but you could get it on Wine maybe?
If you're a student you could also get the enterprise version.
Nable
Member
Member
Posts: 453
Joined: Tue Nov 08, 2011 11:35 am

Re: Which IDE to use for (freestanding) C?

Post by Nable »

I use Vim for almost everything. It just suits me well (even without plugins it has a lot of useful functions).

But if you have enough resources, QtCreator seems to be a nice IDE: it's possible to enable vim-like key bindings + I sometimes find it good at code-search and navigation (find all places where function is used, switch header/source, go to type/function definition, etc).
kzinti
Member
Member
Posts: 898
Joined: Mon Feb 02, 2015 7:11 pm

Re: Which IDE to use for (freestanding) C?

Post by kzinti »

Mmm QtCreator looks pretty interesting.
User avatar
Roman
Member
Member
Posts: 568
Joined: Thu Mar 27, 2014 3:57 am
Location: Moscow, Russia
Contact:

Re: Which IDE to use for (freestanding) C?

Post by Roman »

I personally use Xcode, it can be easily set up for a freestanding C project, it has got all essential features like autocompletion, go to definition, etc. Hovewer, it's only for OS X.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
Post Reply