ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Although I start use linux about two years, I almost has not written a useable program under linux. I have to code using Visual Studio under windows if needed, that's not what i want. I want to be a pure linuxer.
Im not sure if I need a IDE for linux? I only want to write code as fast as possiable, and extensiable. Words auto-completing is not important, but I want a convenient reference search, like functions definition, etc.
I know basic edit vi and emacs, but how to make it as a coding tool?
Im puzzled.
Try using a graphical IDE first like Code::Blocks.
Qt Creator might be a good one too.
There's Eclipse and Netbeans too but I'm not sure if it's ok for you to install multiple modules and dependencies.
Try using a graphical IDE first like Code::Blocks.
Qt Creator might be a good one too.
There's Eclipse and Netbeans too but I'm not sure if it's ok for you to install multiple modules and dependencies.
Code:Blocks? Yes, I know it, and its perfect, and it use wxWidgets. I also like wxWidgets.
However, I want to make coding as simple, like writing a makefile to build projects.
I think I should not depend on any special IDE, like Visual Studio now, i want to leave the circle it draw for me.
If you want to leave the IDE bubble, then I would start with emacs. It will give you auto-indent, syntax completion, and syntax highlighting. For function definitions you can use the internet. After a few different google searches you should be able to find a site that gives you the kind of information you're looking for quickly and easily, then just bookmark it.
If it was Win*, you could have had Notepad++, but if you like you could have wine to run it like I do. (No editor has beaten Notepad++ yet for being the best free general editor around - at least since 2004.)
Last edited by konsolebox; 09-26-2012 at 08:13 PM.
@kcynice: I hope you don't mind but knowing VI is essential to every Linux user, but sooner or later you'll find that you have to go faster and cleaner (less risk with un-uniform code style and extra trailing spaces / tabs being replaced with spaces, etc.) with doing your stuff - especially when it comes to handling multiple files at once. *And I mean multiple, that our memory (human) can't handle it and it's already annoying to switch from window to window many times to reach the window we wanted - using a keyboard.
Anyway if you're still not familiar with VI learning it now won't be a bad idea. It's not a waste of investment.
Last edited by konsolebox; 09-26-2012 at 08:42 PM.
Maybe I should start to learn coding with VI or EMACS?
From my point of view: vi exists on every linux/unix system - also on windows available - therefore knowing vi is enough. Vi was almost the first IDE-like enviroment, together with ctags and other tools - and it was really powerful. It was planned to work without mouse. Of course Eclipse or Netbeans offer much more, but also requires much more (X, java ...). Emacs is more or less similar to vi, but works differently. So yes, I would recommend you vi, if you do not like it you can also try emacs.
to konsolebox: scite exists on linux too (that is the engine behind notepad++).
Although I start use linux about two years, I almost has not written a useable program under linux. I have to code using Visual Studio under windows if needed, that's not what i want. I want to be a pure linuxer.
Im not sure if I need a IDE for linux? I only want to write code as fast as possiable, and extensiable. Words auto-completing is not important, but I want a convenient reference search, like functions definition, etc.
I know basic edit vi and emacs, but how to make it as a coding tool?
Im puzzled.
EMACS / VI FLAMEWAR BEGINS!!!
Just kidding... However, personally I have found that Emacs works great as an IDE. Emacs has a "mode" for most languages, where if you open a source code file in that language it will control display, indentation, and so forth in ways that make programming more convenient. Each mode typically comes with several very useful related commands... for example, shortcuts to compile everything, or load the file into the interpreter. Make sure, though, that you are using XEmacs instead of just the console version, because it is more convenient to use in several respects, and allows code display improvements in some modes.
Haskell mode in Emacs is awesome. Here is a screen shot of some of my Haskell coding, after I picked a color theme I like:
Another great thing is that Emacs itself can be programmed with Emacs lisp, so down the line if there is some new IDE functionality you want, you can write your own macro or function to do it.
Make sure, though, that you are using XEmacs instead of just the console version, because it is more convenient to use in several respects, and allows code display improvements in some modes.
XEmacs is a fork of GNU Emacs, both versions can run in console or graphical modes (simultaneously). I was going to tell you not to recommend XEmacs because it hasn't seen any releases for years, but I just checked the website and it looks like there there has been at least some activity recently.
XEmacs is a fork of GNU Emacs, both versions can run in console or graphical modes (simultaneously). I was going to tell you not to recommend XEmacs because it hasn't seen any releases for years, but I just checked the website and it looks like there there has been at least some activity recently.
Sorry for the confusion. What I actually meant was regular Emacs with X11 support compiled in. I'm running GNU Emacs 24.1.1 from gnu.org.
Vim and it's graphical version (gvim) have always worked for me. Yes, it can be very strenuous to learn at first, but if you learn how to do one or two new things a day, you will catch on fast. Not to mention it comes with vimtutor, which will easily get you started. If you want help writing/learning code, there's snip-mate (textmate style snippets for vim). Definitely worth it in the long run.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.