So in Eclipse, I'm aware that if I have included sources in maven dependencies, as well as the JDK, I can open a type to see it's implementation (Type Ctrl+T):
This is great for .java
classes, but I don't appear to have any quick shortcut to open resources other than java .class
es. For instance, I do some Clojure and JRuby, which both .jar up their sources, which are generally just the sources themselves.
We can access it in two ways: Using the keyboard shortcut, which is Ctrl + Shift + R on a PC or Cmd + Shift + R on a Mac. Opening the menu under Navigate > Open Resource.
4- CTRL-SHIFT-G: used to search for the references of a specific method in the work space. Mostly used when we want to know who calls a specific method. 5- CTRL-SHIFT-O: used to organize the imports of a file.
Open project, file, etc. Ctrl+Shift+R. Open Resource (file, folder or project) Alt+Enter. Show and access file properties.
No. As per my knowledge, there are no keyboard shortcuts in eclipse to open resource file from jar. Only classes can be accessed by Ctrl+T
. I always have to use package explorer to navigate contents in jar file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With