baytsif
baytsif

Reputation: 9

android studio structural search and replace with regEx for search template

I want to implement mechanism for required xml custom attributes - exactly like layout_width/layout_height, but for custom attributes.

possible solution is adding structural search to inspections, but I could not make it search for xml without specific attributes, so after it replaces the text to the new one with the required attribute, is still shows an error.

can I search for template with regEx? is there any other better solution?

thanks

Upvotes: 0

Views: 306

Answers (1)

Abner Escócio
Abner Escócio

Reputation: 2785

Press shortcut Ctrl + Shift + R to open find and replace on all project and then select File mask: as *.xml

file mask

Upvotes: 0

Related Questions