In my IntelliJ project I have this file:
MyMvnModule\src\main\webapp\WEB-INF\Owasp.csrfguard.js
This file contains these placeholders that are filled in by a servlet at run time:
} else if(%DOMAIN_STRICT% == false) {
...
}
IntelliJ sees that %DOMAIN_STRICT%
is a syntax error which causes it to angry red underline every folder in the path to that file. Is there a way to keep intelliJ from syntax checking this one file so that this doesn't happen?
In the Settings/Preferences dialog ( Ctrl+Alt+S ), select Editor | Inspections. Locate the inspection you want to disable, and clear the checkbox next to it. Apply the changes and close the dialog.
With IntelliJ IDEA, you can develop modern web, mobile, and desktop applications with JavaScript and Node. js. IntelliJ IDEA also supports React, Angular, Vue. js, and other frameworks and provides tight integration with various tools for web development.
Press Ctrl+Alt+S to open the IDE settings and select Languages & Frameworks | JavaScript | Libraries. On the Libraries page, click Add. In the New Library dialog, specify the name of the external JavaScript library. ), and select Attach Files or Attach Directories from the list.
To change the highlighting level for the current file:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With