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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With