You Can Use Ctrl+Alt+Shift and click on res
or on Preferences -> General -> Editors -> Text Editors -> Hyperlinking you can change shortcut key
题
For a couple of months my Eclipse began auto linking resource ids from Java code to the appropriate resource files in res/
instead of R.java
by command-clicking the generated Java variable. Now the default has been switched back - does anyone know how I can make the "Open Declaration in layout/___" the default again?
解决方案
You Can Use Ctrl+Alt+Shift and click on res
or on Preferences -> General -> Editors -> Text Editors -> Hyperlinking you can change shortcut key
其他提示
For me to hide the option leading to R.java it was enough to change shortcut of "Preferences -> General -> Editors -> Text Editors -> Hyperlinking -> Open Declaration" to whatever key else that CTRL.