How Android studio can see which classes the resource or function is referenced in

Source: Internet
Author: User

Many people have finished keymap match to Eclispe shortcut key, find the shortcut key "Ctrl+shift+g" to see where the resource or function is referenced

out, After you select a function, use this shortcut to find that only the cursor jumps to the place where the function is referenced in the class. What is the reason?


First of all, here is a simple analysis, the selection of Keymap after the IDE's work and selection after the cause of the shortcut key failure, Android studio set Keymap to

Eclipse, is a map operation that has a shortcut key, but the shortcut keys for Android studio itself The number is not the same as eclipse, such as Android

There are 100 shortcut keys in Studio, 95 in Eclipse, and just as Android studio and Eclipse the same shortcut point is just 95, of course, the actual

This is certainly not the case, maps can only map the public parts, so after the mapping is done, many people will find shortcuts available in Eclipse on Android

Studio can't make it.

There are a total of two reasons why you cannot make it:

1, Android Studio to find less than eclipse-like shortcut key function points, mapping failed

2. Another reason is that the function point shortcut keys and unmapped function point shortcuts that are mapped in Android studio Sudden

3, shortcut keys need to trigger in certain conditions to be effective, this is very wonderful

Reason to find out, that how to solve, this time can only find the shortcut key set options, find the corresponding function point, set the shortcut you want.

Of course for reason 3, this is not the solution.


Anyway, after the mapping is done, I don't want to manually modify the shortcut, how to see the resources or functions in which classes are referenced, and now I know there are 3 ways:

1, shortcut keys: Ctrl+g, this method is the simplest, in fact, this shortcut is the corresponding ctrl+shift+g in eclipse

2. Shortcut key: Ctrl+alt+shift+f7, this method is the complex version of the first method, you can make some choices in the popup dialog box.

3, shortcut key: Ctrl+h, this is the search function, find in path.


Later I will organize all the invalid shortcut keys into an article, and will write a special for the shortcut key to explain the 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.