If you talked about java code, this flag can be found through "Settings - Java-Editor" β "Report input problems."
String tmp = // no syntax error here String tmp = ; // line end -> syntax error
For other editors, use General - Editors - Structured Text Editors β Report Issues As You Type. No need to deactivate "build automatically."
The answer from this similar question from proko
source share