leer561

请教一下 vscode 中 CSS 和 JSON 代码格式化的问题

  •  
  •   leer561 · Jun 30, 2017 · 5702 views
    This topic created in 3244 days ago, the information mentioned may be changed or developed.

    1、代码格式化 css 如何实现冒号居中对齐。

    例如

            <style type="text/css">
                body{
    			font-size1               : 14px;
    			font-size2qq             : 14px;
    			font-size3               : 14px;
    			}
            </style>
    

    在 VSCodeBeautify setting 文件里没能找到 https://github.com/HookyQR/VSCodeBeautify/blob/master/Settings.md

    2、JSON 文件

    会格式化成 [ "component", [{ "libraryName": "element-ui", "styleLibraryName": "~theme" }] ] 而不是 [ "component", [{ "libraryName": "element-ui", "styleLibraryName": "~theme" }] ]

    看起来难受 (╯﹏╰)

    3 replies    2017-06-30 19:57:36 +08:00
    leer561
        1
    leer561  
    OP
       Jun 30, 2017
    JSON 格式化会变成
    ```javascript
    [
    "component", [{
    "libraryName": "element-ui",
    "styleLibraryName": "~theme"
    }]
    ]
    ```
    而不是
    ```javascript
    [
    "component",
    [{
    "libraryName": "element-ui",
    "styleLibraryName": "~theme"
    }]
    ]
    ```
    DaPanda
        2
    DaPanda  
       Jun 30, 2017
    https://github.com/HookyQR/VSCodeBeautify
    不知道有没有能实现你需要的
    leer561
        3
    leer561  
    OP
       Jun 30, 2017 via iPhone
    @DaPanda 应该实现不了 css 冒号的居中对齐。settings 里的 css 相关的设置都试了,貌似没用。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3005 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 12:53 · PVG 20:53 · LAX 05:53 · JFK 08:53
    ♥ Do have faith in what you're doing.