Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable auto {} insertion for React props in PyCharm

When I type props into my React component in PyCharm, it automatically inserts a pair of curly braces. Like so (cursor position is |):

<MyComp className=|

Becomes:

<MyComp className={|}

I've searched through the settings but didn't find a related setting to disable it. Does it exist?

like image 672
valignatev Avatar asked Jul 12 '18 04:07

valignatev


1 Answers

You can disable braces auto-inserting by turning off "Add quotes for attribute value on typing '=' and attribute completion" in Settings -> Editor -> General -> Smart Keys

But this will disable quotes auto-inserting for HTML to.

like image 157
Nikita Vstovsky Avatar answered Oct 24 '22 00:10

Nikita Vstovsky