IntelliJ on Mac Cannot Detect Syntax Errors for JAVA

I just started using IntelliJ on Mac. The problem that I encountered is that the syntax error in my java file cannot be detected and highlighted as on a PC.

The problem is that no errors are detected and no errors are highlighted, because I checked the highlight setting.

Any configuration I can play with so that a syntax error can be detected?

ie,

test = "Test"; The class declaration does not exist.

+4
source share
1 answer

I'm going to guess that your Java classes have this icon when they open:

enter image description here

, Java . , , .

" " → " ".

enter image description here

Java- . , :

enter image description here

IntelliJ .

+14

Source: https://habr.com/ru/post/1532734/


All Articles