Find usage of id not working in Android Studio on Windows

前端 未结 4 1280
悲&欢浪女
悲&欢浪女 2020-12-30 23:15

I selected an id in XML, mouse right click, find Usage shows no occurrence of id even Id exist in java file. And if i do the same in Mac its finding it.

So is there

相关标签:
4条回答
  • 2020-12-30 23:35

    To fix the autocomplete go to:

    File -> Invalidate Caches -> Restart -> Click at Invalidate and Restart

    0 讨论(0)
  • 2020-12-30 23:36

    In my case I was not finding anything since I had "File name Filter" checked and I was just looking in build.gradle.

    There are two options to resolve the problem:

    1. Uncheck option "File name Filter" or,
    2. Just filter to *.java or whatever type of file you want
    
    0 讨论(0)
  • 2020-12-30 23:45

    I was having the same problem and unfortunately @josedlujan's answer does not solve the problem.

    Alternatively, you my try the Ctrl+Shift+F to certainly find what you want, also double clicking Shift will open a quick dialog to find certain keyword in the whole project.

    0 讨论(0)
  • 2020-12-30 23:49

    Another reason why that shortcut is not working is that, probably you GEFORCE EXPERIENCE is using that shortcut, which happened to my system: Remove that shortcut in your GEFORCE EXPERIENCE

    I learned that from the following link:

    https://intellij-support.jetbrains.com/hc/en-us/community/posts/206845105/comments/115000444830

    0 讨论(0)
提交回复
热议问题