Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA and backticks (`)

In our environment, we write template Javascript which has areas where server pre-processing inserts values into the code.

An example would look like this:

    var myVarValue = "`serverProcessedVarValue()`";

In the above, the server runs the function demarcated by the backticks and writes the result between the quotes, then ships that javascript off to the browser.

We use IntelliJ IDEA. It (and Webstorm, I'm assuming) highlights these backticks as a coding error. I can't find a setting to change that behavior. Is there one?

Thanks!

like image 604
stackleit Avatar asked Jul 28 '15 15:07

stackleit


People also ask

Does IntelliJ have drag and drop?

To move one or more componentsDrag and drop the selection to the target container, or to the target area within the same container. The valid drop locations are highlighted with blue borders.

How do I view history in IntelliJ?

Right-click anywhere in the editor and choose Local History | Show History from the context menu. In the dialog that opens, the left-hand pane shows a list of all saved revisions of the current file with timestamps.


1 Answers

Backtick is supported in ES6 for multi-line string and there is a "JavaScript language version" settings in WebStorm. Changing it to ES6, will change that behavior.

like image 71
arm5472 Avatar answered Oct 25 '22 03:10

arm5472