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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top