Samuel Barbosa
Samuel Barbosa

Reputation: 782

Android Studio annoying green background in lines

My Android Studio is showing me annoying green lines in XML files. How can I remove it? Thanks.

Annoying green lines

Upvotes: 1

Views: 3775

Answers (2)

Maciej Beimcik
Maciej Beimcik

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

Samuel Barbosa
Samuel Barbosa

Reputation: 782

Ok, I've found how to disable it. Preferences -> Editor -> Color & Fonts -> Injected language fragment (uncheck background).

Upvotes: 0

Related Questions