IntelliJ : Java Glossary
home I words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish 2008-02-07 by Roedy Green ©1996-2008 Canadian Mind Products
Go to : punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
CurrCon neededThe CurrCon Java Applet displays prices on this web page converted with today's exchange rates into your local international currency, e.g. Euros, US dollars, Canadian dollars, British Pounds, Indian Rupees… CurrCon requires Java 1.1 or later, preferably 1.6.0_06 . If you can’t see the prices, of you if just want to learn more about CurrCon, click here for help.
Jetbrains Intellij Idea IntelliJ Idea

JetBrains makes a high end IDE called IntelliJ Idea, usually called simply Intellij.

Jetbrains gave me a copy of Personal Intellij on 2006-02-20. I have been using it as my only IDE ever since. I still use Visual SlickEdit for quick edits since Idea takes so long to start. IntelliJ is reknowned for its advanced editing and clever algorithms for factoring code. It is written in Java Swing itself. It is also known for being faster than the competition. It has to be quicker and better since its competitors like Eclipse, NetBeans and Oracle are free. Has no GUI wizards though they are in beta. This is Chris Lamb’s favourite IDE. It runs under Windows, Max OS X, and Linux.

Pricing Downsides
Getting Started Tips
Nice Stuff Backup
Plug-Ins Yet to Learn
The Rearranger Links

Pricing

It comes in four versions:
  1. $0.00 USD for Open Source developers.
  2. $100.00 USD for Academic use.
  3. $250.00 USD for Personal use.
  4. $600.00 USD for Commercial use.
I believe the products themselves are identical. All but the free version come bundled with unlimited email support. The support is fast, courteous and generous. This is the advantage of using a commercial package.

Getting Started

To get started on your first project, you must manually navigate on hard disk to find a JDK for it. At first, it looks as if it is broken, showing an empty list of installed JDKs.

Like Eclipse, IntelliJ has its own vocabulary. Classes are grouped into packages. Packages are grouped into directories. Directories are grouped into modules. A module roughly corresponds to one distributable executable. Each module can have its own classpaths and libraries. Modules are grouped into projects. All classes in a project must use a common code style, and common source level 1.3, 1.4, or 1.5 (oddly specified on the module configuration screen) and common target level (specified as additional compiler options -target 1.4.) It is possible, however, for each module to use a different JVM.

To simplify things, you can have only one module per project. Then a project becomes a group of related packages all compiled at the same source and target level.

It is easy to muddle up projects, directories, modules, packages. I discovered two tricks to help sort it out.

  1. Use a naming convention. E.g. end projects in p, and modules in m.
  2. If you don’t know if some node Intellij is showing you is a project or a module or a directory, refactor and “threaten” to rename it. IntelliJ will tell you what sort of beast you are about to rename.
Unfortunately IntelliJ will ask you to create packages and modules without properly defining them. You will likely have to start from scratch once the meanings come clear. The key place to define these terms should be the screens displayed the first you are asked to name your project and module. Hint hint…

To allow one project to use the class files of another, you import not the project, or the module, but the name of the classes directory into your module settings.

I suggest experimenting with some small projects for a while to get the hang of things before you commit to your overall structure.

Nice Stuff

Plug-Ins

IntelliJ Plug-ins come with no installation instructions. It turns out that installing any plug-in, including the Rearranger, is a snap. You don’t have to download or build anything. In IntelliJ, Click File ⇒ Settings ⇒ IDE Setting ⇒ Plug-ins.. You can then view the plug-ins installed already and also what is available. Right click “the Rearranger” (or whatever plug-in you want to install, then left click Install. (Selecting the plug-in and hitting OK does nothing, ditto reload.). You have to shut-down and restart IntelliJ before you can start using the plug-in.

Rearranger logo The Rearranger

The ability to order your methods is not built-in as it is in Eclipse. Instead you install a plug-in called the Rearranger that does even more: You must configure The Rearranger before use to tell it your preferred ordering. To configure, go to File ⇒ Settings ⇒ IDE Settings ⇒ Rearranger. It gives you very fine control. It is wise to save your Rearranger configuration to a file in case you have to later reinstall.

It is clever in the way it arranges methods, and inserts comments to label the groupings. It can put getters and setters next to the corresponding property. It knows that the main method is the primary one and should come before the other static public methods.

Here is the rearranger configuration I use.

Downsides

Tips

Backup

Other than your source files make sure you back up the project description files, the *.ipr and *.iws files. Also back up your rearranger configuration and your codestyle configurations in C:\Users\ user\.IntelliJIdea70\config\codestyles. These files can take hours to recreate from scratch.

Restoring the codestyle is a bit round about. You must create a new dummy configuration, and save it, without the .xml extenstion. Then, shut down IntelliJ and overwrite that file with the one from backup. There is no menu command to restore.

Yet To Learn

I need to find way to trigger the light bulb suggestions for improvement. If I don’t look at them right away, they disappear.

How to keep the Alt-F7 Usages Window from disappearing before I have finished with it. You can get in back again with the tab. It might be nice to have them in another window always visible, especially if you have a big screen.

IntelliJ has a CSS and HTML editor as well, complete with refactorings. I have not yet used it. Perhaps it will do the various cleanups I thought I would have to write custom code to do.


CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.17] The information on this page is for non-military use only.
You are visitor number 6,847. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/intellij.html J:\mindprod\jgloss\intellij.html