Frage

Currently, I am using PhpStorm for JavaScript programming (React framework). In React, there is added special syntactic sugar called JSX, which allows inserting HTML into JavaScript code. But phpstorm gets wrong when I insert some specific JSX, so then always when I hit enter to go to the next line, it inserts additional unwanted {. Is there any way, how to suppress this behavior?

War es hilfreich?

Lösung

You can find the settings you're interested in under Settings > Editor > Smart Keys. The one you want to uncheck is Insert pair '}'. If that alone doesn't do exactly what you want, you could also uncheck Insert pair bracket.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top