美文网首页
vs code 设置

vs code 设置

作者: wwmin_ | 来源:发表于2017-09-26 22:12 被阅读21次

快捷键设置

// 将键绑定放入此文件中以覆盖默认值
[{
    "key": "ctrl+alt+j",
    "command": "cursorLeft",
    "when": "editorTextFocus"
}
,{
    "key": "ctrl+alt+k",
    "command": "cursorRight",
    "when": "editorTextFocus"
},{
    "key": "ctrl+alt+u",
    "command": "cursorUp",
    "when": "editorTextFocus"
},{
    "key": "ctrl+alt+i",
    "command": "commandId",
    "when": "editorTextFocus"
},{
    "key": "ctrl+alt+i",
    "command": "cursorDown",
    "when": "editorTextFocus"
},{
    "key": "ctrl+alt+oem_1",
    "command": "cursorEnd",
    "when": "editorTextFocus"
},{
    "key": "ctrl+alt+h",
    "command": "cursorHome",
    "when": "editorTextFocus"
},{
  "key": "ctrl+alt+l",
  "command": "editor.action.formatDocument",
  "when": "editorTextFocus && !editorReadonly"
}]

调试本地html 设置

  • 安装插件debugger from chrome
  • 打开launch.json,并配置如下
{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [{
        "name":"Launch index.html",
        "type":"chrome",
        "request":"launch",
        "sourceMaps":true,
        "file":"${workspaceFolder}/index.html"
    }
    ]
}

其中file路径需要换成自己想要打开的html路径,即可

自动上传配置到gist

使用插件Settings Sync
基于 Gist 实现 VSCode 用户配置、快捷键配置、已安装插件列表等的备份和恢复功能,配置过程有详细精确的操作步骤文档。生成的备份 Gist 默认是私密的,如果你想设置为共享的,也可以一键切换。

插件:Subtle Match Brackets

相关文章

网友评论

      本文标题:vs code 设置

      本文链接:https://www.haomeiwen.com/subject/jxgeextx.html