Where Is That Class / Resource Located?

How many times have you been asked where some class or resource is located when you say “this configuration is in the foobar.properties”? It’s not rare. I’ve heard it many times from many people – they want to navigate through the project structure to get to the file. However, that is O(n) (n being the depth of the resource in the tree). And if you don’t know the exact path?

I use an O(1) approach. IDEs have shortcuts. Eclipse, for example, has CTRL+SHIFT+T for classes (Types) and CTRL+SHIFT+R for Resources. This is a small productivity “trick”, but it is advisable to use it, I think.

1 thought on “Where Is That Class / Resource Located?”

Leave a Reply

Your email address will not be published. Required fields are marked *