简体   繁体   English

Beautify 让 JSX 变得丑陋,请看下面的场景。 我尝试了上一个问题的解决方案,但没有成功

[英]Beautify makes JSX ugly please look at the below scenario. I have tried a solution from a previous question with no success

The beautify extension in VSCode gives the below output. VSCode 中的美化扩展给出了下面的 output。 please find the code below.请在下面找到代码。

<div className="container">
            <span className="text-muted">
                 An amazing place to buy medicines.
            </span>
        </div>

When i attempt to beautify the above code i get the below output.当我尝试美化上述代码时,我得到以下 output。

    < div className = "container" >
        <
        span className = "text-muted" >
        An amazing place to buy medicines. <
        /span> <
        /div>

Please suggest a solution?请提出解决方案? We are looking to implement standard coding practices in our project seems to have hit a roadblock here.我们正在寻求在我们的项目中实施标准编码实践似乎在这里遇到了障碍。

Have you tried this?你试过这个吗? : https://stackoverflow.com/a/61740593/260229 : https://stackoverflow.com/a/61740593/260229

"files.associations": {
    "*.jsx": "javascriptreact"
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 VScode 弄乱 JSX 格式(美化) - VScode messes JSX format (beautify) 我已经尝试了我找到的所有解决方案,但我找不到解决方案 - Pylance(missingImports) for vs code - I have tried all solutions I have found yet I can't find a solution - Pylance(missingImports) for vs code 如何在 VsCode python 编码(Win10)上更改目录? 基本问题,但我试过了 - how to change directory on VsCode python coding (Win10)? Basical Question but i have tried 如何为我的 vs 代码终端着色和格式化,使其看起来像下面的示例 - How can I colorize and format my vs code terminal to look like the example below vscode 快捷方式中的 (crl + /) 使 jsx 注释不正确 - (crl + /) in vscode short cut makes incorrect jsx comment 我可以为Visual Studio Code的Beautify扩展添加新语言吗? - Can I add a new language to the Beautify extension for Visual Studio Code? 如何防止Beautify扩展程序格式化内联Javascript? - How to Prevent the Beautify Extension from Formatting Inline Javascript? 当我使用 typescript 时导入丑陋 - ugly import when I use typescript 如何在VSCode中覆盖react-beautify设置? - How can I override a react-beautify setting in VSCode? 每当我在ejs文件中工作时如何禁用美化扩展名? - How to disable the beautify extension whenever I work in ejs file?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM