在Android Studio中同时按下Ctrl + Shift+ F  或者其他自定义的快捷键,打开全局搜索,在全局搜索中输入

^((?!(\*|//)).)+[\u4e00-\u9fa5]

并打勾搜索框的Regular Expression(正则表达式),然后开始搜索,就会找出程序所有的硬编码了。

 

参考:http://blog.csdn.net/linhh90/article/details/50586833

相关文章:

  • 2021-07-14
  • 2021-07-23
  • 2022-12-23
  • 2021-09-20
  • 2021-06-28
  • 2022-12-23
猜你喜欢
  • 2022-01-16
  • 2021-04-24
  • 2022-12-23
  • 2021-11-07
  • 2021-11-28
  • 2021-08-22
相关资源
相似解决方案