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
请先登录再写评论。
Or by using the cursor keys to select the intention and then press Space
to toggle the light bulb.
Really? Which build? I'm not seeing it in 3296 (3341's incessant
exceptions while editing were too much for me to handle).
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
Cool, will have to use that.
That's been there for some time. But a nice feature.
Interesting, I wonder what the two states equate to? Is this the setting for what F2 does?
I didn't seem to get this to work. I had a directory with .properties files in it, and hit F4 and got nothing.
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
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
Excellent thread...keep it coming!
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.
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.
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
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.)
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
Yes; if set to "Go to errors first" and you have at least one error in your file, it ignores warnings when doing F2.
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!)
Cool again! Thanks for pointing this out!
Regards,
Jens
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.
- the "go to class" popup allows multi-selection
WTF!!!! .... :-0
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