简体   繁体   English

在android studio / IntelliJ IDEA中使用标记接口

[英]Using marker interfaces in android studio / IntelliJ IDEA

I am trying to manage relatively large projects in Android Studio and IntelliJ IDEA. 我正在尝试在Android Studio和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). 麻烦的是,当我单击“具有实现”图标时,会得到所有类的子类的列表,这些子类包括implements ToDo一词,包括匿名(如我所愿)。 Is it possible to do a search so that I only get a list of classes where the words implements ToDo actually appear? 是否可以进行搜索,以便仅获取单词“ implements ToDo实际出现的类的列表? If not, is there an alternative way to do it? 如果没有,还有其他方法吗?

Alternative way for intellij & Android Studio 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 text to find输入“ Implements ToDo” 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. 对于“文件名过滤器”,选中“文件掩码”复选框,然后在其旁边的文本框中键入“ * .java”。
  5. Click "find". 点击“查找”。

"Find in path" on the project folder will do the work. 项目文件夹上的"Find in path"将完成工作。

寻找路径

搜索文字

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 正则表达式在IntelliJ想法中编译,但不在Android Studio中显示 - regex compiling in intellij idea but not in android studio and showing IntelliJ IDEA 13和Android Studio之间的差异 - Differences between IntelliJ IDEA 13 and Android Studio 在 Android Studio/Intellij idea 中自动生成 Android Log TAG - Auto-generate Android Log TAG in Android Studio/Intellij idea 无法将AOSP代码导入IDEA / Intellij / Android Studio - Failed to import AOSP code to IDEA / Intellij / Android Studio 如何在Intellij IDEA或Android Studio中搜索未解析的库? - How to search unresolved libraries in Intellij IDEA or Android Studio? 在实例 IntelliJ IDEA / Android Studio 快捷方式上创建方法 - Create method on instance IntelliJ IDEA / Android Studio shortcut 是什么决定了IntelliJ IDEA / Android Studio中填充“外部依赖项”的原因? - What determines what populates “External Dependencies” in IntelliJ IDEA/Android Studio? 为什么 Android Studio 会杀死 Intellij Idea java 进程? - Why Android Studio kill Intellij Idea java processes? Android Studio / Intellij Idea:等同于选定方法提案的实时模板 - Android studio/Intellij Idea: live template equivalent for choosen methods proposal 从 Android 工作室导入项目时出现 Intellij Idea 错误 - Intellij Idea error while importing projet from Android studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM