Tuesday, October 31, 2006

Tired of the 80-character margin?
  • File -> Settings -> Project Code Style -> General Tab
  • At bottom left there's a Right Margin (columns) box: just type in a bigger number.
Maintain multiple search results!

When you do Ctrl-F, or Alt-F7, or any search, look on the right for a small checkbox "Open in new tab." It will be grayed out on the first search, but not on subsequent searches.

If you check it, each new search will appear in its own tab instead of overwriting the previous search results!

Thursday, October 12, 2006

Project tree always expanded? That's irritating. Click the right-most icon atop the Project panel to collapse all the trees.

Monday, October 02, 2006

Ctrl+Q. Do it often, do it everywhere:

It brings up the Javadoc, nicely formatted -- and with clickable links.

Javadoc not available? So just download the jar with the relevant Javadoc, and add it to one of your libraries.

Here's an example. Assume you have struts.jar in a library (a library is just a named collection of jars, which can contain source code, binary code, or javadocs).
  • File->Settings->Modules
  • Click on your module in the left pane.
  • Click Libraries (Classpath).
  • Click on the library in the left pane which contains struts.jar.
  • Click Edit.
  • Click either Attach Javadoc... (if you've downloaded it (you need to unzip it)), or Specify Javadoc URL.. if you just have an url of it on the Web.
Voila: after doing this, Ctrl-Q will bring up the javadoc of any method, class, var, what-have-you.