可以突出显示硬编码的字符串文字并在它们之间进行导航吗? [英] Possible to highlight hard-coded string literals and navigate between them?

查看:81
本文介绍了可以突出显示硬编码的字符串文字并在它们之间进行导航吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以看到IDEA 13标记字符串是否为硬编码的字符串文字.但是,在您厌倦了对长课程的研究之后,很容易会错过默认的高亮显示,而且我发现无法自动在它们之间进行导航,因此所有工作都必须手动完成,随着时间的流逝,这很容易出错.

I can see that IDEA 13 marks if a string is hard-coded string literal. But the default highlight can be easily missed after you get tired of investigating the long class, and I found no way to automatically navigate between them, so all the work has to be done manually which is very error prone as time passes.

是否有一种方法像搜索文件时那样突出显示所有硬编码的字符串文字?

Is there a way to highlight all hard-coded string literals like it does when we search for files?

我们又可以像在搜索过程中一样导航它们吗?

And can we navigate withing them, again like we can during search?

推荐答案

主菜单-分析-检查代码 然后等待分析完成. 在底部菜单检查"中,选择: Android-Android Lint-编码文本-双击行

Main menu - Analyze - inspect code Then wait until analyze will be completed. At the bottom menu "Inspection" choose: Android - Android Lint - Harcoded Text - double click on line

这篇关于可以突出显示硬编码的字符串文字并在它们之间进行导航吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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