More Java posts
January 13, 2003
Editing with IntelliJ

I spent some time over the weekend trying out IntelliJ for editing Java and I'm very impressed, which is surprising as I'm a real Emacs bigot. Once I got used to the keyboard shortcuts I'm found it a productive environment. The remaining thing I have remember is to let the IDE do the typing. With autocompletion, automatic management of imports, and a lot of refactoring support it's faster to type Ctrl+space and select the correct option than to type the text in yourself, provided you remember to do it! As for moving files between packages, it's the only way to go.

Anyway, my point here is a quick shell script I use to set up the external JjavaDoc support so that IntelliJ opens external JavaDoc files in a running Mozilla instance under Linux.

#!/bin/sh

if `mozilla -remote 'ping()' &> /dev/null`
    then
    mozilla -remote "openURL($1)"
else
    mozilla $1
fi

exit

In the IDE Setting - General set the Web Browser path to point to this script. In Project Properties - Paths - JavaDoc Paths add the paths to where the JavaDocs are stored. You need to set the path so that translating the package name into a file name, prepending this path, and appending .html will locate the correct JavaDoc file.

Posted by Alex at January 13, 2003 10:07 PM
Comments
Are you using the Emacs key bindings or the default IntelliJ ones? I use the Emacs bindings which have helped a lot but I think I might be missing out. It sometimes seems as if a Emacs key bind overrides a useful Intellij refactoring or editing keybind. I should keep a list. Posted by: gavin on January 14, 2003 09:27 AM
One additional note: you can define Javadocs per-library as well. In our project we keep all the Javadocs for external libraries on a separate server and use a http url instead of a file path. Sweet. Posted by: Chris Winters on January 15, 2003 10:21 PM
Have you given Eclipse a bash? Posted by: Simon on January 16, 2003 07:39 AM
Post a comment
Name:


Email Address:


URL:


Comments:


Remember info?