简体   繁体   中英

Using marker interfaces in android studio / IntelliJ IDEA

I am trying to manage relatively large projects in Android Studio and IntelliJ IDEA. I want to use a marker interface to indicate a class that is unfinished in some way.

public interface ToDo {
}

The trouble is that when I click the "has implementations" icon, I get a list of all subclasses of classes that include the words implements ToDo , including anonymous ones (as I should). Is it possible to do a search so that I only get a list of classes where the words implements ToDo actually appear? If not, is there an alternative way to do it?

Alternative way for intellij & Android Studio

  1. From the app menu, Edit > Find > Find in Path (quick tip the keyboard shortcut will be listed next to the menu option)
  2. type in " implements ToDo" in text to find
  3. For Scope, Select Custom "Project Files" (this will help you avoid some generated classes coming up in your search results)
  4. For File name filter, check the checkbox for "File masks" and type in "*.java" in the textbox next to it.
  5. Click "find".

"Find in path" on the project folder will do the work.

寻找路径

搜索文字

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM