search

Home  >  Q&A  >  body text

node.js - vscode有没有格式化ejs的插件?

最好能够格式化像这样的代码

<%- include('header')%>
    <h1>
        <%=name.toUpperCase() %>
    </h1>
    <p>hello,
        <%= name%>
    </p>
    <%- include('footer')%>
PHPzPHPz2784 days ago987

reply all(2)I'll reply

  • 黄舟

    黄舟2017-04-17 16:38:14

    Regular expression
    Just replace it yourself

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 16:38:14

    Set the file association configured by vscode user and associate ejs to html.

    "files.associations": {
      "*.ejs": "html"
    }
    

    soonfy

    reply
    0
  • Cancelreply