Reputation: 782
My Android Studio is showing me annoying green lines in XML files. How can I remove it? Thanks.
Upvotes: 1
Views: 3775
Reputation: 3348
The green lines show areas interpreted by IDE as different language injection.
In those areas you end up with different code completion rules etc.
So assuming you used the language injections by mistake, clicking the lightbulb and choosing "Un-inject Language/Reference" removes those areas.
It's quicker than going through the settings and prevents any inconsistent highlighting and code completion when editing the file later.
Upvotes: 3
Reputation: 782
Ok, I've found how to disable it. Preferences -> Editor -> Color & Fonts -> Injected language fragment (uncheck background).
Upvotes: 0