How does Android Studio view the classes in which resources or functions are referenced?

Source: Internet
Author: User

After Keymap matches the Eclispe shortcut key, many people find that the shortcut key "Ctrl + Shift + G" is not working to check where resources or functions are referenced.

After you select a function, you can use this shortcut key to find that the cursor will only jump to the place where the function is referenced in the class. Why?


First, let's analyze the work done by the IDE after Keymap is selected and the reason why the shortcut key fails after the selection. Android Studio sets KeyMap

Eclipse maps shortcuts, but the number of shortcuts in Android Studio is different from that in Eclipse, such as Android

There are 100 shortcut keys in Studio, 95 in Eclipse, and 95 in the same shortcut operation point of Android Studio and Eclipse. Of course, the actual

This is definitely not the case. The ing can only map public parts. Therefore, after the ing is completed, many people will find that the shortcut keys used in Eclipse are in Android

Studio cannot be enabled.

There are two causes of unavailability:

1. Android Studio cannot find the same shortcut key function as Eclipse, And the ing fails.

2. Another reason is that the functional Shortcut Keys mapped in Android Studio conflict with those not mapped.

3. the shortcut key must be triggered under certain conditions to be effective.

The reason is found, so how can we solve it? At this time, we can only find the shortcut key setting options, find the corresponding functional points, and set the shortcut key you want.

Of course, for cause 3, this is not a solution.


To put it bluntly, if you don't want to manually modify the shortcut key after the ing is completed, you can check the classes in which resources or functions are referenced. Currently, I know three methods:

1. Shortcut Key: Ctrl + G. This method is the simplest. In fact, this shortcut key corresponds to Ctrl + Shift + G in Eclipse.

2. Shortcut: Ctrl + Alt + Shift + F7. This method is the complex version of the first method. You can make some choices in the pop-up dialog box.

3. Shortcut: Ctrl + H. This is the search function. Find in path.


Later, I will organize all invalid shortcut keys into an article and write an article dedicated to explaining the shortcut keys.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.