PhpStorm - how to disable auto-insert braces

I am currently using PhpStorm to program JavaScript (React framework). React has added a special syntactic sugar called JSX, which allows you to embed HTML in JavaScript code. But phpstorm is mistaken when I insert some particular JSX, so whenever I press Enter to go to the next line, it inserts additional unwanted ones {. Is there any way how to suppress this behavior?

+4
source share
1 answer

You can find the settings that interest you in the section Settings> Editor> Smart keys . The one you want to remove is Insert a pair of '}' . If this one does not do exactly what you want, you can also uncheck the Insert double bracket box .

+7
source

Source: https://habr.com/ru/post/1524918/


All Articles