Is there a keyboard shortcut in Eclipse for "open ad in layout"?

I hate it when I try to open a layout declaration, and Eclipse redirects me to an R file, which is no different. Is there a keyboard shortcut so it can take me to a layout file. I know that if you click on it using CTRL , it will give you this option in a popup, but I hate using a mouse. I can not find this in the keybinding section. There's just an β€œopen ad” that I already changed, because by default it was awful F3 , but usually it leads to an R file

+4
source share
2 answers

Well there is a mouse shortcut - just hold CTRL and hover over the identifier you want to see. You will get two options: one for R.java and the other to open an ad. Choose a second

EDIT:

Sorry, I completely skipped the part where you do not like using the mouse. Well, I don’t think there is any other way, and I see here a bug / function request https://code.google.com/p/android/issues/detail?id=53536 which reports this , so I didn’t want to think that another way exists, except by using the mouse, or using the keyboard to select a specific object of interest, and using CTRL + Shift + R to get the menu and pressing Enter , but as you mentioned, this will not work for something like R.id.foo . Wish someone from Google / Eclipse could comment on the bug / feature request.

+3
source

If you are CTRL + Shift + r : you can open any resource. Using this with any selected text, pre-fill the open resource dialog box with the selected text. After that, you can quickly find the file you want and double-click on it to open (or use down arrow and enter to open without using the mouse).

Hope this helps.

0
source

Source: https://habr.com/ru/post/1495355/


All Articles