【问题标题】:android studio structural search and replace with regEx for search templateandroid studio 结构搜索并用正则表达式替换搜索模板
【发布时间】:2018-07-09 13:42:15
【问题描述】:

我想为所需的 xml 自定义属性实现机制 - 与 layout_width/layout_height 完全相同,但用于自定义属性。

可能的解决方案是在检查中添加结构搜索,但我无法让它搜索没有特定属性的 xml,因此在将文本替换为新的 with 所需属性后,仍然显示一个错误。

我可以用正则表达式搜索模板吗? 还有其他更好的解决方案吗?

谢谢

【问题讨论】:

    标签: android android-studio android-custom-attributes


    【解决方案1】:

    按快捷键Ctrl + Shift + R打开find and replace on all project,然后选择File mask:*.xml

    【讨论】:

    猜你喜欢
    • 2014-08-16
    • 2011-04-20
    • 1970-01-01
    • 1970-01-01
    • 2010-11-19
    • 2019-11-03
    • 2013-06-14
    • 1970-01-01
    相关资源
    最近更新 更多