Ted’s Rants and Raves by Ted M. Young

February 23, 2008

IntelliJ IDEA Tip: Goto Class Coolness

Filed under: IntelliJ IDEA

IntelliJ IDEA continues to surprise me…the other day I was looking for a class in a package, but I wasn’t sure if the package was task, tasks, or something else, but I knew it started with the letter t. Lo and behold, IDEA’s Goto Class (typically the Ctrl+N shortcut) will help you with this problem:

Goto Class dialog

Here you can see that I’ve typed a letter, t, that I know is the start of the package name (which could be the first name, or the fifth dotted name) and then an asterisk (the wildcard) and then Task, because I know the class ends with Task. And IDEA will show you all of the classes that match. You don’t need the wildcard for the package name, the dot makes the wildcard implicit, i.e., if you use t.SomeClass, it knows that you want to find a class named SomeClass that’s in a package where the last part of the package name starts with the letter t.

Get free blog up and running in minutes with Blogsome
Theme designed by Jay of onefinejay.com