KDevelop
From DGC Wiki
KDevelop is an IDE (Integrated Development Environment) application that comes with KDE. I looked around for a good IDE and ended up with KDevelop because of it's low learning requirements. I also evaluated Eclipse (http://www.eclipse.org/) but I think it's not suited for C/C++ development yet (it's great for Java though).
Installation
You can use the version that comes with your KDE. But if you want to use the latest stable version with more features, follow these instructions:
Install GraphViz first (KDevelop recommends you having it for documentation generation):
- Go to Graphviz and download tarball
- Unpack the tarball
- $ ./configure --prefix=$HOME/local
- $ make install
Then it's time for KDevelop:
- Go to http://www.kdevelop.org/ and download
- Unpack the tarball
- $ ./configure --prefix=$HOME/local
- $ make install (this will take approx 1 hour)
- On the first startup I had to set some path in my .bashrc (and source it with . ~/.bashrc of course) and then run a configuration application. Just follow those instructions and it will be fine.
- As it doesn't add icons itself, do that by rightclicking at the KDE menu icon in your lower left and select "Menu Editor". There you can add a shortcut.
Good to know
I realized that KDevelop 3 has a bug: it doesn't highlight *.hh files and it isn't possible to change that from the Kdevelop program (it doesn't remember you adding that setting). A fix is:
- edit ~/.kde/share/config/katesyntaxhighlightingrc
- add *.hh at the C++ Highlight section (line 86).
If you, like me, screw up the Menu bar, edit ~/.kde/share/config/kdeveloprc and go to [Mainwindow] section and set MenuBar=Enabled. Then restart Kdevelop.
Very nice features to know about:
- autocompletion of partially typed words: Ctrl+Space
- Edit menu -> Reformat source. Formats the whole file according to the settings in Settings -> Configure KDevelop. I suppose we use the User defined that comes by default with 2 spaces per indent.
- Subversion support, rightclick in the source and check it in! Unfortunately "svn diff" and "svn status" aren't built in so that one you have to do manually in a console window.
- Switch header/implementation file: Shift + F12
- The colorcoded compilation error messages and the ability to click in the error text and be taken to the specific error in the source code!
- The usage of abbreviations (code templates). Just type one and then press Ctrl+L to expand the abbreviation (view and add abbreviations in Settings -> Configure KDevelop : Abbreviations)
--Henrik 21:53, 20 Jul 2004 (PDT)
![[Main Page]](../../../../upload/alice.jpg)