自动删除未使用的变量声明-Android Studio/Inteiij [英] Remove unused variable declarations automatically - Android Studio/Inteiij

查看:108
本文介绍了自动删除未使用的变量声明-Android Studio/Inteiij的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Android Studio/Intellij中自动删除所有未使用的字段声明?

Is there a way to remove all unused field declarations automatically in Android Studio/Intellij ?

推荐答案

选择Analyze > Run Inspection by Name...,键入unused declaration并按 Enter确认.搜索完成后,从结果选项卡中选择Unused declaration,右键单击并选择Safe delete:

Select Analyze > Run Inspection by Name..., type unused declaration and confirm with Enter. When the search is finished, select Unused declaration from the result tab, right click and select Safe delete:

这篇关于自动删除未使用的变量声明-Android Studio/Inteiij的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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