Hidden features

Maybe you already knew these.
But maybe you know other hidden gems?

Some are really useful. Some are a little obscure:
- you can remove an entry from the list of recent files by pressing DEL
- you can hide specific quick fixes by clicking on the light bulb inside the popup window
- the red/yellow/green square at the top-right corner of the editor window has a context menu
- "move statement" is now in Idea core (ctrl-shift-up/down)
- there is a resource bundle editor (F4 on a parent node of related *.properties files in project or package tree)
- when editing debugger watches, "Surround with" (CTRL-ALT-T) has an additional entry "Surround with runtime type"
- the "go to class" popup allows multi-selection

13 comments
Comment actions Permalink

- you can hide specific quick fixes by clicking on the light bulb inside the popup window


Or by using the cursor keys to select the intention and then press Space
to toggle the light bulb.

- the red/yellow/green square at the top-right corner of the editor window has a context menu


Really? Which build? I'm not seeing it in 3296 (3341's incessant
exceptions while editing were too much for me to handle).

- the "go to class" popup allows multi-selection


Cool!

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://www.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: (416) 933-5046 | Fax: (416) 933-5001

0
Comment actions Permalink

Maybe you already knew these.
But maybe you know other hidden gems?

Some are really useful. Some are a little obscure:
- you can remove an entry from the list of recent
files by pressing DEL


Cool, will have to use that.

- you can hide specific quick fixes by clicking on
the light bulb inside the popup window


That's been there for some time. But a nice feature.

- the red/yellow/green square at the top-right corner
of the editor window has a context menu


Interesting, I wonder what the two states equate to? Is this the setting for what F2 does?

- "move statement" is now in Idea core
(ctrl-shift-up/down)
- there is a resource bundle editor (F4 on a parent
node of related *.properties files in project or
package tree)


I didn't seem to get this to work. I had a directory with .properties files in it, and hit F4 and got nothing.

- when editing debugger watches, "Surround with"
(CTRL-ALT-T) has an additional entry "Surround with
runtime type"
- the "go to class" popup allows multi-selection


Wow, Multiselection. That's nice.

On another note, say you accidently called up "go to class" but meant "go to file". Even after you have started entering a name, hit the shortcut for what you really wanted, and IDEA will maintain your name and switch the type.

Patrick

0
Comment actions Permalink

The bestest and most amazing hidden feature is that the Ctrl-N family takes abbreviations. Thus if I want to bring up my FileMoverTest class, it's Ctrl-N followed by "FMT". Shockingly powerful, and undocumented.

--Dave Griffith

0
Comment actions Permalink

The bestest and most amazing hidden feature is that
the Ctrl-N family takes abbreviations. Thus if I
want to bring up my FileMoverTest class, it's Ctrl-N
followed by "FMT". Shockingly powerful, and
undocumented.

--Dave Griffith


Hmm, I think that's been in there since they introduced CamelHumps words. It is a nice feature. I use it quite frequently...I really love it now that IDEA will start searching your libraries if nothing is found in your sources.

Patrick

0
Comment actions Permalink

Excellent thread...keep it coming!

0
Comment actions Permalink

I agree. And it partial words and wildcards, too
"FiMov" will help getting to FileMoverTest, as well as "Fil*T"

It has me completely spoiled and anything that involves a tree or
plain directory navigation becomes really painful.

And if only type completion could understand this too...
FMT<Ctrl-Shift-Space> foo = new <Ctrl-Shift-Space>

Vince.


0
Comment actions Permalink

On Wed, 25 May 2005 23:55:59 +0400, Patrick Burleson wrote:

>> The bestest and most amazing hidden feature is that
>> the Ctrl-N family takes abbreviations. Thus if I
>> want to bring up my FileMoverTest class, it's Ctrl-N
>> followed by "FMT". Shockingly powerful, and
>> undocumented.


Hmm, I think that's been in there since they introduced CamelHumps
words.


Yep - great feature. But there's a Tip of the Day that describes it, and
it's in the Productivity Guide ("Using camel words prefixes in navigation
popups") - both present since at least 4.5.4.

--
Mark Scott
mark@codebrewer.com

0
Comment actions Permalink

This one is not really hidden (button has a tooltip), but somehow it took me quite a while to discover:
- In edit fields where you should select a class or package, the "..." has keyboard shortcut SHIFT-Enter.
E.g. move a static field, Idea prompts for fully qualified class name, hit Shift-Enter to search by unqualified name.

(Used to be ALT-Enter, and I was just about to file a bug that it is no longer working. Now ALT-Enter is used for imports like in editor.)

0
Comment actions Permalink

Hello Stephen,

Maybe you also will use:

  • Speed search Alt+F3, typing, use arrows to scroll editor. Esc to clear.

  • CtrlShiftJ on multiline selection.

  • Breakpoint marks have context menu

  • ShiftClick (ShiftAlt+Click) on left side invoke breakpoints dialog,

Esc clear breakpoint

  • Ctrl+Click on left side == F11

  • Alt+Click on left side == Toglle Field watchpoint

  • Ctrl+Click on Error/Warning mark go into problem class if warning is

nested

  • Double Click on status bar between position placeholder and Inserd

mode placeholder toggle temparary RO mode for opened editor.

  • Hot Swap on freazed JVM show icons on threads where classes can't be

reloaded.

  • Recent files allow multiselection

  • Wheel click, Shift+Click on tab - Close editor


Thanks!
--
Alexey Efimov, Java Developer
Tops BI
http://www.topsbi.ru


0
Comment actions Permalink

- the red/yellow/green square at the top-right corner
of the editor window has a context menu


Interesting, I wonder what the two states equate to?
Is this the setting for what F2 does?


Yes; if set to "Go to errors first" and you have at least one error in your file, it ignores warnings when doing F2.

- there is a resource bundle editor (F4 on a parent
node of related *.properties files in project or
package tree)


I didn't seem to get this to work. I had a directory
with .properties files in it, and hit F4 and got
nothing.


You have to have a "real" resource bundle here (i.e. properties files for different Locales). But then it is really cool; I hadn't been aware of that feature myself. Very nice replacement for the PE plugin! (I just wish it would highlight missing resources in a translated properties file!)

On another note, say you accidently called up "go to
class" but meant "go to file". Even after you have
started entering a name, hit the shortcut for what
you really wanted, and IDEA will maintain your name
and switch the type.


Cool again! Thanks for pointing this out!

Regards,
Jens

0
Comment actions Permalink

I became so used to this feature that I wrote a couple of zsh functions that give me the same functionality in the command line. "vcl ABcd" finds all "([[:lower:]])A([[:lower:]])Bcd(.*)\.java$" files starting from the current dir and allows me to choose one for editing with vim. Very useful when I want too quickly view some class without starting IDEA. I can send it to anyone interested.

0
Comment actions Permalink

- the "go to class" popup allows multi-selection

WTF!!!! .... :-0

0
Comment actions Permalink

Oh, yeah, a couple more "hidden features" that I put in.

1) Some of the more obscure inspections now have quickfixes. For instance, there's a quickfix for the "Tail recursion" inspection that will turn a tail recursive method into an equivalent iterative one.

2)There's now an intention for merging parallel if statments. For instance


can be automatically turned into


3)You can create a switch statement that covers all element of an enumerated type with one quick intention.


becomes


--Dave Griffith

0

Please sign in to leave a comment.