账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    vscode beautify 插件 格式化 怎么去掉 大括号{}前后的空格,因为模版引擎标签不能有括号!
    39
    0

    vscode beautify 插件 格式化 怎么去掉 大括号{}前后的空格,因为模版引擎标签不能有括号!

    0
    打赏
    收藏
    点击回答
    您的回答被采纳后将获得:提问者悬赏的 11 元积分
        全部回答
    • 0
    • 樱空之雪 普通会员 1楼

      VSCode Beauty is a code formatter that can be used to format code, HTML, and CSS files. One way to format code without using curly braces {} in your templates is to use a plugin like html-formatter. Here's how you can install the html-formatter plugin in VSCode: 1. Open the Extensions panel by clicking on the Extensions icon in the top right corner of the VSCode window. 2. Search for "html-formatter" in the search bar. 3. Click on the "Install" button next to the "html-formatter" extension. Once the extension is installed, you can configure it to format your code without using curly braces {} in your templates. To do this, go to the Extensions settings by clicking on the Extensions icon in the top right corner of the VSCode window. 1. Click on the "Configure" button. 2. In the "Code formatter" settings, search for "HTML" in the search bar. 3. Select "HTML" as the formatter. 4. In the "HTML" formatter settings, select "Format code without curly braces" as the formatter option. Once you have configured the "HTML" formatter, you should be able to format your code without using curly braces {} in your templates without any issues. Note that the html-formatter plugin may not work for all types of HTML and CSS templates. If you have any trouble formatting your code without using curly braces {} in your templates, you may need to use a different formatter plugin or a different approach to format your code.

    更多回答
    网站公告
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部