LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


View Poll Results: Do you prefer GUI or text editors?
GUI 4 21.05%
text 10 52.63%
undecided 5 26.32%
Voters: 19. You may not vote on this poll

Reply
  Search this Thread
Old 07-19-2004, 02:08 PM   #1
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 547

Rep: Reputation: 30
GUI vs text editors


I get the impression here that a lot of people use emacs/vim/nano exclusively as their editor of choice. I'm really curious as to why. I definitely see the advantage of using a text editor, especially when working remotely. I've used emacs and pico for quite a bit (I won't touch VI with a 10-foot pole though, I hate its interface).

But still I think programming with a GUI editor is just so much easier. I mean you can use the mouse to easy select a block of text and then (using some editors) comment that entire block with a keystroke, indent it, etc. Right now I'm using KDevelop 3.0 for most of my work and there are only a couple minor things I don't like. I'm especially fond of having multiple tabs of source files open. I just don't see how it gets any better than that. I've used Kate a bit as well, but its lacking some of the things that I think make KDevelop a winner.

So do you prefer a GUI editor or a text editor? Which editor(s) is(are) your favorite and why?
 
Old 07-19-2004, 02:13 PM   #2
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
I use both. Usually when I am programming for Windows I use Visual Studio, but I find myself working remotely most of the time when I program for Linux, so in that case it is vim all the way...
 
Old 07-19-2004, 02:19 PM   #3
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
JOE if I'm at a command-line. Kwrite if I'm not. Notepad+ if I'm at work on Windows.
 
Old 07-19-2004, 03:52 PM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
i prefer GUI editors only because of the mouse, and copy/paste (after a fast highlight with the mouse)

but i can use the text editors to (i prefer dav, i don't like nano (its good for making emails, but its auto format of long lines makes editing config files a real drag))

tho i never tried emacs or vim ... maybe i should install them one day just to take a look
 
Old 07-19-2004, 04:26 PM   #5
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Rep: Reputation: 15
Talking

I like vim ...

It is very flexible. For example I needed to edit a configuration for a program that runs on my system. The configuration file had long list of files in it and many of the files didn't exist on my actual file system. I had to comment out the files that didn't exist. Does any editor you know of have a feature that does what I need? vim does

:32,. perldo s/^/#/ unless -e $_

But I can understand it might be easier for some people to use point and click interfaces. It is like asking, "What is better ... a Cessna or a F-15?" Some people might answer, "The Cessna is clearly the better airplane because I can't fly a F-15."

Last edited by SheldonPlankton; 07-20-2004 at 09:43 AM.
 
Old 07-19-2004, 04:49 PM   #6
dakensta
Member
 
Registered: Jun 2003
Location: SEUK
Distribution: Debian & OS X
Posts: 194

Rep: Reputation: 35
emacs

Having just revisited the gui thing in the last couple of weeks to see how it has come on I used VS .net, Kdevelop, Eclipse and XCode and each have some redeeming features.

XCode has the best implementation of a GUI for gdb by some distance, plus I could setup lots of emacs key-bindings.

MS has intellisense nigh on perfect and has moved from being an annoyance to one of the best implemented features on any platform.

Eclipse (with c++ development stuff) did an excellent job for class browsing and looks very promising but was sooo slow.

KDevelop3 I just didn't get on with - it was constantly crashing so much that I could barely try out many of the features. It seemed nice and customisable but that is little consolation. I also tried Anjuta sometime ago but there again, I don't remember it being particularly feature rich.

I have no qualms about using VS on Windows. It may be a pain to add different libraries but I just love intellisense for getting to know a new library. It makes such a difference and parses the code quickly and accurately. Include a header and there you are, functions, variables, templates, arguments ... the works no fumbling around for books or man pages. On my mac, I split equally between emacs / xterm and using XCode. As mentioned the debugger front end is fantastic the editor not as good as emacs.

But when it comes to Linux ... I just don't find any of the GUI ides match up to emacs (imho the best editor) or offer any worthwhile features as compensation. It works well using g++ and although I use DDD for debugging, I have found the CLI to gdb better when it comes to c++. And most of the key-combos are straightforward if you spend anytime at the terminal. The Emacs Development Environment and Emacs Code Browser projects on sourceforge offer some reasonable extensions but are a little hit and miss and not the easiest thing to set up.


If anyone has any suggestions for a decent GUI IDE on Linux (and I really mean VS quality code completion, for c++, everyone and their dog has it for Java, and a XCode quality gdb front end) then I am always open to suggestions but I just haven't found any of the alternatives up to scratch at the moment, hence I'll stick with emacs.
 
Old 07-19-2004, 05:16 PM   #7
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Re: GUI vs text editors

I prefer Emacs (often on windows too). Sometimes I force myself to use vim for quick edits (not for coding), because I feel I need to be comfortable with it, as it will allways be available (if not vim, at least vi).

Quote:
Originally posted by R00ts
But still I think programming with a GUI editor is just so much easier. I mean you can use the mouse to easy select a block of text and then (using some editors) comment that entire block with a keystroke, indent it, etc.
Emacs can do those thing very well, and more (debugging, make, tags,..). And more important: it can do the same from the keyboard as well. Apart from when there's no moue available, it can also be faster because your don't need to move your hand to the mouse. It also has a feature that serves (to some extend) the same purpose as tabbed windows.

Downside of text-mode editors, and especially emacs an vi(m), is that it takes a lot of getting used to. (Still have to learn emacs' lisp...)

Last edited by Hko; 07-19-2004 at 05:30 PM.
 
Old 07-19-2004, 05:55 PM   #8
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Ubuntu 11.10, Fedora 16
Posts: 547

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by dakensta
KDevelop3 I just didn't get on with - it was constantly crashing so much that I could barely try out many of the features. It seemed nice and customisable but that is little consolation. I also tried Anjuta sometime ago but there again, I don't remember it being particularly feature rich.

I've been using KDevelop on and off for about 3 years and it has never once crashed on me or anything.


Quote:
Originally posted by Hiko
Emacs can do those thing very well, and more (debugging, make, tags,..)..
So can KDevelop. I know it has make, CVS, Subversion, etc. tools built right in. I've used the make and CVS tools with great success. I know you can do anything on emacs that you can do in KDevelop, but it just doesn't feel as easy to select a chunk of code and copy paste, etc. with it. I also recently found out it has a bunch of documentation for libraries and APIs built right in (now how'd I miss that before?)
 
Old 07-19-2004, 08:14 PM   #9
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
Some persons from a Unix background would be very comfortable with vi / emacs. But even for them, I think a GUI editor particularly one with language specific colour highlighting / tags would be useful and avoid careless mistakes. Imagine building a web page with just vi or Notepad.

In DOS, I suggest a few notepad replacements which would create simple platform independent codes (NotetabLight in my case which I use for developing web pages) instead of tools like InterDev which bloat the code and make it platform specific0.

In Unix / Linux, I am on vi - I develop only shell scripts and some light work in a character based RDBMS development platform.

End.
 
Old 07-20-2004, 05:01 AM   #10
pycoucou
Member
 
Registered: Apr 2004
Location: Edinburgh
Posts: 78

Rep: Reputation: 15
Definitely emacs...

I think it's really handy and fast, and I can do all my programming with it, while you have to struggle to find a GUI handling c/php/java/latex... Ok, it's not a good argument because some of these kinds of GUI came out, event if it's not by default.

Nevertheless, I started c with Visual but I've got a slight preference for debugging with printf("toto") instead of breakpoints... (I've never tried gdb).

Moreover, I know I could have a better interface emacs for the development if I work out el scripts...

For instance C-x-e allows me to create a new latex environment in an interactive way with the Mandrake scripts.

So yes, GUI is too much hassle for nothing.

PS: my development is not professional so, maybe it helps... ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
text editors for solaris sunOs 5.9 ranger225 Solaris / OpenSolaris 1 11-30-2004 01:42 AM
what are the 'best' text editors (for C, html, js, etc) name_in_use450 Linux - General 4 08-31-2004 08:01 AM
Text mode php editors?? friendklay Programming 3 04-21-2004 02:49 PM
Different editors -- messing up text formating bretzeltux Programming 4 02-16-2004 02:59 PM
Text editors Penguin Dropout Programming 6 06-16-2003 10:22 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration