Notes on IntelliJ IDEA - The Risberg Family

tastefallInternet and Web Development

Feb 2, 2013 (4 years and 6 months ago)

96 views

Page
1

of
5

Notes on
IntelliJ

IDEA

Created 12/12/09

Updated 03/11/10,

Updated 02/08/11,
Updated 11/29/11, Updated 01/09
/12
, Updated 01/21/12
, Updated 02/20/12

Updated 04/02/12
, Updated 06/30/12
, Updated 07/30
/12
, Updated 10/11/12

Introduction

IntelliJ IDEA is a commer
cial Java IDE by JetBrains.

It is often simply referred to as "IDEA" or "IntelliJ."

Like
the
Eclipse

IDE, and supporting a wide range of
extensions. Java
-
focused, but can be used for other languages.


The first version of IntelliJ IDEA was released in J
anuary 2001, and at the time was the only available Java IDE
with advanced code navigation and
code refactoring

capabilities integrated.


There

are two editions:
Community

and Ultimate
.

The Community version is free, but the Ultimate version adds
more languages, tools, and support.


The current version is 11.1.3 (late July
, 2012). The revisions are tracked by build number and the current build
(of
Ultimate)
is IU
-
117.798
.

The first release of the 11.1.x series was early 2012. The first release of the 11.0.x series
was fall 2011. The prior versions were 10.5 (May 2011) and 10.0 (early 2011).

Features

Community Edition:



Java, Groovy, Scala



Code
Syntax
Color
-
coding



Refacto
ring



Code Generation



Code Inspection



Version Control Integration



Customization



TeamCity integration


Ultimate Edition adds:



More languages (
JavaScript,
PHP, FreeMarker/Velocity, Cold F
usion)



JSP, JSF, and other web tools and toolkits



UML Class Diagram



Appl
ication servers (Tomcat, etc.)



Configuration sharing

Resources

“IntelliJ in Action” by
Duane Fields
,
Stephen Saunders
,
and
Eugene Belyaev
. Manning Press,
March
2006
, 450
pages
.
Amazon price from $17.55, used from $4.00.
Rated 4 stars on Amazon.com.

Rat
her little out of date, so
we have ignored it.


Other sources are on
-
line.

Pricing

For the Ultimate edition:

Page
2

of
5


Personal licenses are

by
-
user, not by computer.

Commercial

licenses are for the company, and can be moved from
one developer to another.


JetBra
ins

provides a fully function
al 30
-
day trial version of the C
ommercial
License

for various platforms.

Recent Updates

Improvements in Version 11:



Performance improvements



New UI



Grails 2 support



Improved GitHub support


Improvements in Version 10:



Having a

current IDE for technologies

and frameworks



Improvements with source code repositories



"100% faster code indexing, and an overall performance increase"



"New code completion behavior with automatic invocation while typing"

Concepts

Manages projects, where
projects have multiple files, and supports editing in Ruby source with color
-
syntax
-
highlighting and code
-
completion.


A project has a number of Context Roots, such as Development and Test.


A project can be linked to a source control system, such as Git o
r SubVersion.


The IDE supports plug
-
ins, and JetBrains maintains a repository of plugins, most of which are at the framework
level and hence work in
IntelliJ, RubyMine,

and their Python developer’s product.

Sample Session

Here is the primary work area sc
reen
on Mac OS X:

Page
3

of
5



The most unique feature
is

the window tabs all around the edges.

Project W
indow


Page
4

of
5

Code Window




Debugger Window


Advantages over Eclipse

See
http://
www.grobmeier.de/from
-
eclipse
-
to
-
intellij
-
idea
-
13102011.html


Better performance, better memory management, better support for Groovy and Grails.

Weaknesses compared to Eclipse

Less community support.


CMD
-
O shows me the outline of my class in Eclipse.

U
sually I have the Outline
-
Widget closed and just need a
floating window from time to time.

Something like that I do not have in IntelliJ.

But I can work around it.

There
is a structure view I can open with a shortcut (of course). It is not so nice as th
e Eclipse one, but hey it works.


If you are used to the Eclipse look, IntelliJ looks very old and ugly to you. Well, meanwhile I can live with it.

Just
a matter of getting used. You can switch themes to whatever is possible with Swing.


I have not found
a “autobuild” setting.

In Eclipse my code is compiled whenever I hit save and I see immediately
all my syntax errors in the output.


No clue how IntelliJ does it, but I found it pretty difficult to see the small
reddish lines which mark problems (I am not

good with this red/green stuff).


I would prefer some kind of console
Page
5

of
5

output which is easy to read. Well, I meanwhile get used to this, but I really would wish I could see it better.

There are several minor things which are not visible enough, some stuff

looks really overloaded.

Using the Grails P
lugin

This allows you to run the various Grails command scripts (such as generate
-
all) from within the application.
Hence it knows what files have been changed (no need to refresh).

Using the Scala Plugin

To be
filled in

Open Issues/Questions

None at present.