idea find usage 功能

intellij idea 的 find usage 功能可以查找:

  • Fields, variables and parameters
  • Classes, tags, attributes, and references in the HTML, XML, and CSS files
  • Symbols at caret
  • Elements of *.gsp files in the Grails views

查找配置对话框

这里写图片描述
1. “skip result tab with one usage”选项的作用是如果查到到的结果只有一个,那么就跳过结果 tab 显示,直接在编辑器中跳转到 usage 位置
2. Scope 是选择搜索范围,可以直接从下拉列表中选择欲定义的范围,也可以通过 … 按钮自定义范围
3. Open in new tab 如果选中会把搜索结果以新的 tab 显示,如果没有选中会把搜索结果显示到当前 tab 中

查找工具窗口

这里写图片描述

查找工具窗口常用按钮

对查找结果进行分组的按钮:
1. 按照使用类型分组
这里写图片描述
2. 按照测试/产品分组
这里写图片描述
3. 按照 module 分组
这里写图片描述
4. 按照 package 分组
这里写图片描述
5. 按照文件结构分组
这里写图片描述
6. show 读
这里写图片描述
7. show 写
这里写图片描述
8. 按照a-z排序
这里写图片描述
9. 源码自动跟随滚动
这里写图片描述
10. 在文本文件中打开查找结果
这里写图片描述

查找结果使用类型分类

使用类型包含:

  • instanceof 类型判断
  • import 导包
  • cast target type 强制类型转换
  • extends/implements clause 基础类或者实现接口
  • .class
  • field declaration 字段声明
  • local variable declaration 局部变量声明
  • method parameter declaration 方法参数声明
  • catch clause parameter declaration catch 类型参数声明
  • method return type 方法返回值类型
  • delegates to another object instance 代理
  • delegates to another object instance with different parameters
  • delegates to super
  • delegates to super with different parameters
  • recursive method calls 递归的方法调用
  • string constants 字符串常量
  • comments 注释
  • unclassified usage not related to any of the categories 其他未分类
  • 12
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值