简体   繁体   中英

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?

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM