VSCode uixml 使用js-css-html插件格式化说明

VSCode uixml 使用js-css-html插件格式化说明

VSCode uixml 使用js-css-html插件格式化说明

/Users/**/.vscode/extensions/lonefy.vscode-js-css-html-formatter-0.2.3/out/src/extension.js中,所有 if (formatted) 添加如下代码

 // 定制自己的格式化代码
        formatted = formatted
            .replace(/\<[ ]+\!\[CDATA\[/, '<![CDATA[') // 处理cdata
            .replace(/\]\][ ]+\>/, ']]>') // 处理cdata
            .replace(/\)[\r]?\n[ ]*\./g, ').'); // 处理).func形式的数据被换行

 

VSCode uixml 使用js-css-html插件格式化说明

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2022-02-03
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-10
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案