shayy
shayy

Reputation: 1312

How to disable XML validation for files with no schema in IntelliJ IDEA

I'm working on a logback.xml file and as you probably know, logback doesn't have a distinct schema.

So IntelliJ marks every tag as "Cannot resolve symbol".

How can i disable that? I don't want IntelliJ to mark XML files with no schema as errors.

Upvotes: 5

Views: 5092

Answers (3)

sja
sja

Reputation: 2392

To visualize what Itchy meant: Uncheck the "Import popup" checkbox.

IntelliJ IDEA Inspections

Upvotes: 0

Mike Nakis
Mike Nakis

Reputation: 62045

In the project view, select the file, open up the context menu, (by right-clicking on the file,) and select "Mark as text".

Upvotes: 2

Itchy
Itchy

Reputation: 2434

There is an "Inspector" Icon. If you click it, you can change the inspection level.

You can find it at the bar at the bottom, on the right side. Just left to the bar displaying your memory usage.

Upvotes: 0

Related Questions