When I type props into my React component in PyCharm, it automatically inserts a pair of curly braces. Like so (cursor position is |
):
当我在PyCharm中为我的React组件键入props时,它会自动插入一对花括号。像这样(光标位置是|):
<MyComp className=|
Becomes:
变为:
<MyComp className={|}
I've searched through the settings but didn't find a related setting to disable it. Does it exist?
我搜索了设置,但没有找到相关设置来禁用它。它存在吗?
4
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.
但这将禁用HTML的引号自动插入。
本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.silva-art.net/blog/2018/07/12/9bf27ea3776caf846c0cdcab8a88b10b.html。