美文网首页
vscode修改快捷键映射

vscode修改快捷键映射

作者: 已不再更新_转移到qiita | 来源:发表于2019-05-17 15:32 被阅读0次

    显示空格的控制字符

    "editor.renderControlCharacters": true,
    "editor.renderWhitespace": "all"
    

    保存时自动删除行尾多余空格

    "files.trimTrailingWhitespace": true

    mac系统切换table的快捷键

    keymaps
    //~/Library/Application Support/Code/User/keybindings.json
    //~/Library/Application Support/Code - Insiders/User/keybindings.json
    
    [
        {
            "key": "cmd+0",
            "command": "workbench.action.openLastEditorInGroup"
        },
        {
            "key": "cmd+1",
            "command": "workbench.action.openEditorAtIndex1"
        },
        {
            "key": "cmd+2",
            "command": "workbench.action.openEditorAtIndex2"
        },
        {
            "key": "cmd+3",
            "command": "workbench.action.openEditorAtIndex3"
        },
        {
            "key": "cmd+4",
            "command": "workbench.action.openEditorAtIndex4"
        },
        {
            "key": "cmd+5",
            "command": "workbench.action.openEditorAtIndex5"
        },
        {
            "key": "cmd+6",
            "command": "workbench.action.openEditorAtIndex6"
        },
        {
            "key": "cmd+7",
            "command": "workbench.action.openEditorAtIndex7"
        },
        {
            "key": "cmd+8",
            "command": "workbench.action.openEditorAtIndex8"
        },
        {
            "key": "cmd+9",
            "command": "workbench.action.openEditorAtIndex9"
        },
        {
            "key": "ctrl+1",
            "command": "workbench.action.focusFirstEditorGroup"
        },
        {
            "key": "ctrl+2",
            "command": "workbench.action.focusSecondEditorGroup"
        },
        {
            "key": "ctrl+3",
            "command": "workbench.action.focusThirdEditorGroup"
        }
    ]
    
    

    参考:

    https://stackoverflow.com/a/46087295
    https://www.latelee.org/pkc/vs-code-usage.html
    https://www.jianshu.com/p/feb23a8d8cdb

    相关文章

      网友评论

          本文标题:vscode修改快捷键映射

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