VSCode Keyboard Shortcuts All In One

VSCode Keyboard Shortcuts All In One

Keyboard Shortcuts

  1. copy line up

Shift + Commad + ⬇

  1. copy line down

Shift + Commad + ⬆

editorTextFoucus & !editorReadonly

- ✅ , when 設置爲空表示在任何條件下都支持 !

.vscode/keyboard-shortcuts.json
.vscode/settings.json

{
    "editor.action.copyLinesDownAction": {
      "key": "shift+cmd+down",
      "command": "editor.action.copyLinesDownAction",
      "when": "editorTextFocus && !editorReadonly"
    },
    "editor.action.copyLinesUpAction": {
      "key": "shift+cmd+up",
      "command": "editor.action.copyLinesUpAction",
      "when": "editorTextFocus && !editorReadonly"
    },
}

mac 上 vscode 系統配置文件路徑 ???

# vscode 插件存放位置
$ cd /Users/xgqfrms-mbp/.vscode/extensions
$ pwd
$ ls -al
# Library/Application Support/Code ✅   
$ cd /Users/xgqfrms-mbp/Library/Application Support/Code

# $HOME/Library/Application Support/Code/User/settings.json ✅   
$ cd /Users/xgqfrms-mbp/Library/Application Support/Code/User

$ cat keybindings.json
$ cat settings.json

// Place your key bindings in this file to override the defaultsauto[]
[
  {
    "key": "ctrl+shift+cmd+down",
    "command": "cursorBottomSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+cmd+down",
    "command": "-cursorBottomSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+cmd+down shift+cmd",
    "command": "editor.action.copyLinesDownAction",
    "when": "editorTextFocus && !editorReadonly"
  },
  {
    "key": "shift+alt+down",
    "command": "-editor.action.copyLinesDownAction",
    "when": "editorTextFocus && !editorReadonly"
  },
  {
    "key": "shift+cmd+down",
    "command": "editor.action.copyLinesDownAction",
    "when": "editorTextFoucus && !editorReadonly"
  },
  {
    "key": "shift+cmd+up",
    "command": "editor.action.copyLinesUpAction",
    "when": "editorTextFocus && !editorReadonly"
  },
  {
    "key": "shift+alt+up",
    "command": "-editor.action.copyLinesUpAction",
    "when": "editorTextFocus && !editorReadonly"
  }
]% 

{
    "peacock.favoriteColors": [
        {
            "name": "Angular Red",
            "value": "#dd0531"
        },
        {
            "name": "Azure Blue",
            "value": "#007fff"
        },
        {
            "name": "JavaScript Yellow",
            "value": "#f9e64f"
        },
        {
            "name": "Mandalorian Blue",
            "value": "#1857a4"
        },
        {
            "name": "Node Green",
            "value": "#215732"
        },
        {
            "name": "React Blue",
            "value": "#61dafb"
        },
        {
            "name": "Something Different",
            "value": "#832561"
        },
        {
            "name": "Svelte Orange",
            "value": "#ff3d00"
        },
        {
            "name": "Vue Green",
            "value": "#42b883"
        },
        {
            "name": "Auth0 Orange",
            "value": "#eb5424"
        },
        {
            "name": "C# Purple",
            "value": "#68217A"
        },
        {
            "name": "Gatsby Purple",
            "value": "#639"
        },
        {
            "name": "Go Cyan",
            "value": "#5dc9e2"
        },
        {
            "name": "Java Blue-Gray",
            "value": "#557c9b"
        }
    ],
    "explorer.confirmDragAndDrop": false,
    "workbench.iconTheme": "vscode-icons",
    "debug.console.fontSize": 16,
    "[json]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "todo-tree.tree.showScanModeButton": false,
    "files.associations": {
        "*.json": "json",
        "*.js": "javascriptreact",
        "*.mjs": "javascriptreact",
        "*.jsx": "javascriptreact",
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript",
        "*.html": "html",
        "*.php": "php"
    },
    "[javascript]": {
    },
    "cSpell.userWords": [
        "IIFE",
        "abcdefghijklmnopqrstuvwxyz",
        "beforeend",
        "devtool",
        "divs",
        "esnext",
        "filepath",
        "geeker",
        "gpio",
        "mkdir",
        "nums",
        "proto",
        "rmdir",
        "rmrf",
        "scrollbar",
        "uglifyjs",
        "vuex",
        "webgeeker",
        "xgqfrms"
    ],
    "javascript.updateImportsOnFileMove.enabled": "always",
    "telemetry.enableCrashReporter": false,
    "telemetry.enableTelemetry": false,
    "gitlens.advanced.telemetry.enabled": false,
    "git.enableSmartCommit": true,
    "explorer.confirmDelete": false,
    "java.semanticHighlighting.enabled": true,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "java.refactor.renameFromFileExplorer": "autoApply",
    "[dart]": {
        "editor.formatOnSave": false,
        "editor.formatOnType": true,
        "editor.rulers": [
            80
        ],
        "editor.selectionHighlight": false,
        "editor.suggest.snippetsPreventQuickSuggestions": false,
        "editor.suggestSelection": "first",
        "editor.tabCompletion": "onlySnippets",
        "editor.wordBasedSuggestions": false
    },
    "emmet.includeLanguages": {
        "wxml": "html"
    },
    "minapp-vscode.disableAutoConfig": true,
    "python.languageServer": "Default",
    "kite.showWelcomeNotificationOnStartup": false,
    "[django-html]": {
        "editor.quickSuggestions": {
            "other": true,
            "comments": true,
            "strings": true
        }
    },
    "C_Cpp.updateChannel": "Insiders",
    "[css]": {
        "editor.formatOnSave": false,
        "editor.formatOnPaste": true
    },
    "editor.formatOnSave": false,
    "editor.renderWhitespace": "all",
    "editor.fontSize": 16,
    "editor.tabSize": 2,
    "editor.multiCursorModifier": "alt",
    "editor.wordWrap": "on",
    "editor.insertSpaces": true,
    "files.encoding": "utf8",
    "javascript.implicitProjectConfig.experimentalDecorators": true,
    "redhat.telemetry.enabled": false,
    "dart.flutterSdkPath": "/Users/xgqfrms-mbp/Documents/Flutter/flutter",
    "typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
    "vetur.validation.template": false,
    "[html]": {
        "editor.suggest.insertMode": "replace",
        "gitlens.codeLens.scopes": [
            "document"
        ]
    },
}% 

refs



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 發佈文章使用:只允許註冊用戶纔可以訪問!

原創文章,版權所有©️xgqfrms, 禁止轉載 🈲️,侵權必究⚠️!


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章