【问题标题】:vscode html settings not work on jsxvscode html设置不适用于jsx
【发布时间】:2018-03-25 06:53:47
【问题描述】:

"html.format.wrapAttributes": "force-align" 不适用于 jsx。

我想要格式

<RenderView key="1" 
  className="hah" 
  data="data"
/>

<RenderView key="1" 
            className="hah" 
            data="data"
/>

是怎么做到的?

【问题讨论】:

    标签: reactjs format visual-studio-code jsx


    【解决方案1】:

    VS Code 不使用开箱即用的 jsx 的 html.* 格式设置。

    请尝试使用市场上的其他 JavaScript 格式扩展名之一,例如 react-beautify,用于此格式样式

    【讨论】:

      猜你喜欢
      • 2022-11-11
      • 1970-01-01
      • 2018-10-28
      • 2020-10-22
      • 2022-07-20
      • 1970-01-01
      • 2019-10-12
      • 1970-01-01
      相关资源
      最近更新 更多