Posts Tagged ‘Code Navigation’

Want more from IntelliJ IDEA? Press the same shortcut again!

Wednesday, February 22nd, 2012

Sometimes you invoke an action and you don’t get what you wanted immediately. In such cases it may help to invoke the action again by pressing the same shortcut. In basic code completion (Ctrl+Space) this will list non-imported classes:

It works in similar way for smart-type and class name completions:

In File Structure popup (Ctrl+F12) you will show inherited members with it:

When introducing a variable (Ctrl+Alt+V), you may want to reassign an existing one instead:

I may have missed something, but all this is already available in IntelliJ IDEA 11. And there’s a couple more nice things you can try in IntelliJ IDEA 11.1 EAP. First, all Goto actions (Ctrl+N for classes, Ctrl+Shift+N for files etc.) now expand their search scope after you press their shortcut again. For example, Goto Action (Ctrl+Shift+A) suggests to search in non-menu actions:

Finally, Show Usages action (normally Ctrl+Alt+F7, remapped to Meta+Alt+F7 by me) will expand the search scope as well:

Try it and tell us how you like it.

Renewed File Structure in IntelliJ IDEA 11.1

Tuesday, February 21st, 2012

We know that one of the most popular ways to navigate within a file is File Structure popup. We’ve recently redesigned it to make the navigation more comfortable. New File Structure is tree-based and shows everything in your file when you first invoke it with Control+F12.

The following short screencast should explain better what we did.

Did you notice you can use Show Quick Doc and Show Implementations action from File Structure popup?

You can already try it in the latest IntelliJ IDEA 11.1 EAP. Let us know what you think and we can improve it even further before 11.1 is shipped.

Do you know where ‘Go To…’ can get you?

Thursday, January 19th, 2012

How often do you use ‘Go To Class/File/Symbol’ feature in IntelliJ IDEA? Pretty often I would guess. But do you know everything you can do with it? Let me go through a couple of often overlooked gems.

Do you know that when you search for file or class you can preview an image (Ctrl-Shift-I) or see a quick doc (Ctrl-Q)?

It is also possible to open multiple items in the editor (multiselect with Ctrl or Shift) or run multiple selected tests right from the search (Ctrl-Shift-F10).

And you can open all search results in the ‘Find’ tool-window to process them one by one later.

Did I mention your favorite feature? No? Please, share it with everyone! :)

Favorites tool-window in IntelliJ IDEA 11

Thursday, December 29th, 2011

When working with big projects we always come back to 10-20 items/files where we do the most of our work.

IntelliJ IDEA helps you collecting all these items in one place — ‘Favorites’. It’s easy to add a file, a class or a method to the Favorites by simply pressing Alt+Shift+F. You can also drag and drop items to the Favorites.

And now with ‘Favorites’ being a separate tool-window, just press Alt+2 (or Cmd+2) whenever you need to access one of your precious items again.

NavBar improvements in IntelliJ IDEA 11

Tuesday, November 29th, 2011

We’ve slightly redesigned Navigation Bar and added some new sweet features. Watch this short demo for the details and a general overview of NavBar abilities.

Better Spring with IntelliJ IDEA 10.5

Monday, May 9th, 2011

Yes! The sunny Spring has finally come to St.Petersburg too. However, it’s not that “Spring” we want to talk now…

We realize that many of you use the Spring framework in your every day work. So, many should be interested in the new Spring-related features that can be found in the upcoming IntelliJ IDEA 10.5 release.

1. Better navigation between xml configs and annotated stereotype components

2. Advanced usage search for @Autowired beans

3. More inspections for your configs, for instance, deprecated classes and members highlighting.

4. More powerful placeholder support. All spring model inspections get and analyze placeholder values before highlighting.

5. More clear Bean Dependencies Graph view. For instance, it obtains beans and dependencies from custom namespaces. Check out this spring integration schemas example.

There are also smaller changes here and there…

Download IntelliJ IDEA 10.5 RC to try it and enjoy the improved Spring framework support.

Grails: Quick navigation between actions and views

Tuesday, September 14th, 2010

IntelliJ Idea X adds quick navigation for Grails actions and GSP pages. Whenever an action has a same-named view, IDEA creates a gutter icon opposite to the action name. Click that icon and the corresponding page is opened:

As for going back, the GSP editor has a link to the appropriate action at the top:

Support for GWT ClientBundle and CssResource interfaces

Tuesday, August 10th, 2010

If you use Client Bundle interface in a GWT application, you will enjoy an advanced navigation and coding assistance that IntelliJ IDEA 10 provides.

ClientBundle methods will be marked with icons allowing you to quickly navigate to a corresponding resource:
ClientBundle navigation

For interfaces implementing CssResource IntelliJ IDEA will also check that Java interfaces methods are consistent with CSS classes CssResource inspection

and will suggest to automatically add missing methods:CssResource fix

Download IntelliJ IDEA X EAP builds to try this new feature.

Maven pom.xml editor new features

Thursday, March 4th, 2010

Since the latest IntelliJ IDEA  9.0.2 EAP the IDE contains a bit of new Maven-related pom.xml editor features.

1. Easier Navigation

  • You can navigate to “Dependency usages” from “dependencyManagement” of your parent pom.xml:
    and back:
  • You can navigate through projects tree

2. Smarter Paths
‘Path reference’ notion were added to the editor to enhance the code completion, usages search and rename refactoring of project paths.

3. More intelligent plugins configuration
IntelliJ IDEA analyses plugin parameter types and adds smart value editors for plugin configuration tags.

You feedback is as always highly appreciated.

CDI (JSR-299) Run with me…

Thursday, November 19th, 2009

Contexts and Dependency Injection (JSR-299) support in Maia has been significantly improved.

  • Reworked tool window:

  • New code inspections:
    • Injection points inconsistency. Detects Injection Points with ambiguous and unsatisfied dependencies
    • @Typed annotation errors.

    • Unproxyable bean types inconsistency.

    • And more:
  • Improved Rename refactoring for @Named beans
  • Better navigation to @Typed beans
  • Enhanced dependencies diagram, and more.