Intellij Idea查找项目中所有不推荐使用的用法 [英] Intellij Idea find all deprecated usages in the project

查看:121
本文介绍了Intellij Idea查找项目中所有不推荐使用的用法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个相当大的项目中升级了IntelliJ Idea中的语言级别,我想找到所有已弃用的方法用法-我寻找所有 striketrough 事件.我对 PhpStorm 找到了类似的问题,建议在方法:

I upgrade a language level in IntelliJ Idea in a quite big project and I would like to find all deprecated method usages left - I look for all the striketrough occurrences. I have found a similar question for PhpStorm where is suggested an approach:

  • 代码按名称运行检验... →输入检验名称:已弃用
  • CodeRun Inspection by Name... → Enter inspection name: deprecated

这在IntelliJ Idea IDE中不可用.我使用 2018.3.3 版本.是否有一种简便的方法来搜索所有出现的事件?

This is not available in the IntelliJ Idea IDE. I work with 2018.3.3 version. Is there a comfortable way to search for all the occurrences?

推荐答案

您要查找的操作位于

  • 分析-> 按名称运行检查

检查名称"仍为不推荐使用,但是随后您需要在下拉列表中选择一个特定的检查(例如Java或PHP为不推荐使用的API使用情况")

The inspection "name" is still deprecated, however you will then need to chose a specific inspection in the drop down (e.g. "Deprecated API usage" for Java OR for PHP)

这篇关于Intellij Idea查找项目中所有不推荐使用的用法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆