PhpStorm - Backticks `for ES6 Template Strings

When using backlinks in a JavaScript file, for example:

var name = 'Tom'; var greeting = `hello my name is ${name}`; 

PhpStorm does all sorts of weird auto-formatting that splits a file.

Backticks randomly appear or disappear, commenting on the rest of the file. I disabled the option "Insert a couple of quotes" in the "Settings", but the problem still persists.

Is there a way to disable auto-formatting for backticks in PhpStorm version 2016.1.2?

+5
source share
2 answers

I have the same problem with pattern strings. In this example, I added a reverse move and disappears when the cursor moves. Not if you use a mouse. gif example

My current workaround is to use normal concatenation and allow PhpStorm to convert it by clicking on the light bulb.

+1
source

I temporarily switched to using Sublime Text, because for Macbook Air 4 GB of RAM is not enough for Phpstorm.

The back end problem is still happening with Sublime Text.

This makes me think the problem is more with OS X than with Phpstorm.

Also, the developer from Jetbrains could not reproduce the problem when I posted an error there.

Because of the fiasco of the Macbook Pro 2016, I switched to windows and the problem no longer arises for me. If anyone has a better answer, I will update this.

0
source

All Articles