2017-10-13 120 views
1

「html.format.wrapAttributes」:「force-align」在jsx上不起作用。vscode html設置無法在jsx上工作

我想格式

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

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

如何做的?

回答

0

VS代碼不使用開箱即用的jsx的html.*格式設置。

請嘗試在市場上使用其他JavaScript格式的擴展程序之一,例如react-beautify,對於此格式化樣式