在 PyCharm 中禁用 React 道具的自动 {} 插入
Disable auto {} insertion for React props in PyCharm
当我在 PyCharm 中将 props 键入我的 React 组件时,它会自动插入一对大括号。像这样(光标位置是|
):
<MyComp className=|
变为:
<MyComp className={|}
我搜索了所有设置,但没有找到相关设置来禁用它。它存在吗?
您可以通过关闭来禁用大括号自动插入
"Add quotes for attribute value on typing '=' and attribute completion"
在 Settings -> Editor -> General -> Smart Keys
但是这将禁用引号自动插入 HTML 到。
当我在 PyCharm 中将 props 键入我的 React 组件时,它会自动插入一对大括号。像这样(光标位置是|
):
<MyComp className=|
变为:
<MyComp className={|}
我搜索了所有设置,但没有找到相关设置来禁用它。它存在吗?
您可以通过关闭来禁用大括号自动插入
"Add quotes for attribute value on typing '=' and attribute completion"
在 Settings -> Editor -> General -> Smart Keys
但是这将禁用引号自动插入 HTML 到。