IDEA Cool Features

K, I'll start this, let's keep this nice and neat. I would use the
following format:

Feature - What it does

---

Inspector Icon In Tool Bar - Allows you to set the level which you want
the inspector to operate. You can turn off inspections, and ask for
code validation only, and turn everything off completely so you can work
quickly and then check your code to see if everything is OK.

JSP Code completion - This works with dynamic imports too now. You can
get code completion for you CSS, HTML and many custom tags, and IDEA
understands the semantics of those custom tags as well.

JSP Surround with - Highlight some line of text, surround with and you
get a tag mark which allows you to surround your code with the tag of
your choice.

12 comments
Comment actions Permalink

@Nullable /@NotNull annotations - If you annotate your methods, variables, or parameters with @Nullable (if they can be null) or @NotNull (if they can not be null), IDEA will use that information to help find potential NullPointerExceptions. Many more potential NPEs will be found than were previously detectable. If any of the libraries you use contains such annotations, IDEA will use those as well.

Log viewing in the run/debug views - In the run configuration panel, you can list one or more locations where your program will write log files to. Any logs in those locations will be cleared out when you run or debug your program, and their contents will be viewable as tabs in the run window, just like the console.

More later...

0
Comment actions Permalink

Resource Inspections - If the appropriate resource inspection is enabled, IDEA will warn of potential resource leaks. Resources which are not opened in a "try" block and closed in the attached "finally" block will be warned. Resources that can be checked include Streams, Readers, Writers, Channels, Sockets, Locks, JDBC resources, JNDI resources, J2ME resources, and Hibernate sessions. Using these resources makes it easy to both find and prevent resource leaks.

0
Comment actions Permalink

Dependency Viewer - Allows you to analyze the dependencies between different scopes within
your project and modules, as well as dependencies with external libraries. Also allows you
to define dependencies that are not allowed, which will be highlighted in your code.

0
Comment actions Permalink

Full code navigation: go from a method call to it's declaration in an interface, from there to it's (possible multiple) implementations, and back to declaration. Easy access to classes, methods by quickly typing it's name. All of these functions conveniently bound to keyboard shortcuts.

This is the #1 reason I just can't work on Eclipse. Now and then I download the latest version and give it a try, but I miss the code navigation features too much to stand more than a few minutes working on Eclipse (or any other IDE).

0
Comment actions Permalink

Thanks guys, these are really helpful to me, as I work on various
materials about IDEA. Keep em coming!

--
Rob Harwood
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink


that should read "by name or abbreviation". Camel-humps navigation deeply rules (still haven't foled Camel-humps completion into my workflow yet).

0
Comment actions Permalink

smart code complete - don't forget that one, just because it is so old ;)
Last time I looked Eclipse still did not have it:
ctrl-shift-space e.g. inserts variable of fitting type etc.

0
Comment actions Permalink

One of the coolest feature is the ultra-fast "Find in Path": If you
select both "Case sensitive" and "Whole words only" Idea finds
occurences project wide almost instantaneous.
It's so incredible useful, e.g. find out where some log output is written:
Copy from console, paste to Find in path, flash-bang, code stares in your
face.

0
Comment actions Permalink

If I know the exact string, I prefer to search for string constants using
Structural Search. It is incredible fast.

Tom

0
Comment actions Permalink

Find in path (with whole words enabled) searches at the same speed and doesn't
require to create a search template.
-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

If I know the exact string, I prefer to search for string constants
using Structural Search. It is incredible fast.

Tom



0
Comment actions Permalink

Find in path (with whole words enabled) searches at the same speed and
doesn't require to create a search template.


But sometimes my strings are not just words, e.g. "hello world".

Tom

0
Comment actions Permalink

Huh? That will also work with Find in Path. "hello world" are indeed just
whole words?!

Thomas Singer schrieb:
>> Find in path (with whole words enabled) searches at the same speed and
>> doesn't require to create a search template.


But sometimes my strings are not just words, e.g. "hello world".

Tom

0

Please sign in to leave a comment.