首页 > 其他 > 详细

设置代码格式化和快捷键

时间:2019-06-28 18:59:05      阅读:108      评论:0      收藏:0      [点我收藏+]

C:\Users\qinmt\AppData\Roaming\Code\User\settings.json

{
    "files.autoSave": "afterDelay",             
    "editor.fontSize": 15,               
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "files.associations": {
        "*.wxml": "wxml",
        "*.vue": "vue-html"
    },
    "explorer.confirmDelete": false,
    "workbench.colorTheme": "Visual Studio Dark",
    "svn.enableProposedApi": "product",
    "editor.quickSuggestions": {
        "strings": true
    },
    "git.autofetch": true,
    "[vue-html]": {
        
    },
    "beautify.language": {
        "js": {
        "type": [
            "javascript",
            "json"
        ],
        "filename": [
            ".jshintrc",
            ".jsbeautify"
            ]
        },
        "css": [
            "css",
            "scss"
        ],
        "html": [
            "htm",
            "html",
            "vue"//在这里加上vue
        ]
    }
}

将键绑定放在此文件中以覆盖默认值

[
{
"key": "ctrl+alt+l", // 自己定键位
"command": "HookyQR.beautify",
"when": "editorFocus"
}
]

  

 

设置代码格式化和快捷键

原文:https://www.cnblogs.com/choucat/p/11104155.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!