Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm - how to turn off automatic curly brace insertion

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?

like image 414
Krab Avatar asked Feb 02 '14 09:02

Krab


1 Answers

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.

like image 102
Tibos Avatar answered Oct 23 '22 00:10

Tibos