【问题标题】:Disable auto {} insertion for React props in PyCharm在 PyCharm 中禁用 React 道具的自动 {} 插入
【发布时间】:2018-07-12 04:51:31
【问题描述】:

当我在 PyCharm 中的 React 组件中键入 props 时,它会自动插入一对花括号。像这样(光标位置是|):

<MyComp className=|

变成:

<MyComp className={|}

我已经搜索了设置,但没有找到相关设置来禁用它。存在吗?

【问题讨论】:

    标签: javascript reactjs pycharm webstorm jsx


    【解决方案1】:

    您可以通过关闭来禁用大括号自动插入 "Add quotes for attribute value on typing '=' and attribute completion"Settings -&gt; Editor -&gt; General -&gt; Smart Keys

    但这将禁用自动插入 HTML 的引号。

    【讨论】:

      猜你喜欢
      • 2021-12-03
      • 2021-01-27
      • 2017-04-12
      • 1970-01-01
      • 2015-05-13
      • 1970-01-01
      • 1970-01-01
      • 2021-08-14
      • 1970-01-01
      相关资源
      最近更新 更多