You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					317 lines
				
				8.5 KiB
			
		
		
			
		
	
	
					317 lines
				
				8.5 KiB
			| 
								 
											11 months ago
										 
									 | 
							
								[
							 | 
						||
| 
								 | 
							
								  // emmet
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "alt+e",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.showEmmetCommands"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  // console
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+shift+l",
							 | 
						||
| 
								 | 
							
								    "command": "js-console.insertConsoleLog",
							 | 
						||
| 
								 | 
							
								    "when": "editorTextFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "shift+alt+l",
							 | 
						||
| 
								 | 
							
								    "command": "-js-console.insertConsoleLog",
							 | 
						||
| 
								 | 
							
								    "when": "editorTextFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+shift+t",
							 | 
						||
| 
								 | 
							
								    "command": "js-console.insertConsoleTable",
							 | 
						||
| 
								 | 
							
								    "when": "editorTextFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "shift+alt+t",
							 | 
						||
| 
								 | 
							
								    "command": "-js-console.insertConsoleTable",
							 | 
						||
| 
								 | 
							
								    "when": "editorTextFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+shift+w",
							 | 
						||
| 
								 | 
							
								    "command": "js-console.insertConsoleWarn",
							 | 
						||
| 
								 | 
							
								    "when": "editorTextFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "shift+alt+w",
							 | 
						||
| 
								 | 
							
								    "command": "-js-console.insertConsoleWarn",
							 | 
						||
| 
								 | 
							
								    "when": "editorTextFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+shift+d",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.debug.panel.action.clearReplAction"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+shift+e",
							 | 
						||
| 
								 | 
							
								    "command": "js-console.insertConsoleError",
							 | 
						||
| 
								 | 
							
								    "when": "editorTextFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "shift+alt+e",
							 | 
						||
| 
								 | 
							
								    "command": "-js-console.insertConsoleError",
							 | 
						||
| 
								 | 
							
								    "when": "editorTextFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  // Explorer
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "enter",
							 | 
						||
| 
								 | 
							
								    "command": "list.select",
							 | 
						||
| 
								 | 
							
								    "when": "listFocus && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "a",
							 | 
						||
| 
								 | 
							
								    "command": "explorer.newFile",
							 | 
						||
| 
								 | 
							
								    "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "shift+a",
							 | 
						||
| 
								 | 
							
								    "command": "explorer.newFolder",
							 | 
						||
| 
								 | 
							
								    "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "y",
							 | 
						||
| 
								 | 
							
								    "command": "filesExplorer.copy",
							 | 
						||
| 
								 | 
							
								    "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "x",
							 | 
						||
| 
								 | 
							
								    "command": "filesExplorer.cut",
							 | 
						||
| 
								 | 
							
								    "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "p",
							 | 
						||
| 
								 | 
							
								    "command": "filesExplorer.paste",
							 | 
						||
| 
								 | 
							
								    "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "r",
							 | 
						||
| 
								 | 
							
								    "command": "renameFile",
							 | 
						||
| 
								 | 
							
								    "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "m",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.files.action.refreshFilesExplorer",
							 | 
						||
| 
								 | 
							
								    "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  // {
							 | 
						||
| 
								 | 
							
								  //   "key": "m",
							 | 
						||
| 
								 | 
							
								  //   "command": "editor.action.showContextMenu",
							 | 
						||
| 
								 | 
							
								  //   "when": "explorerViewletVisible && filesExplorerFocus && !inputFocus"
							 | 
						||
| 
								 | 
							
								  // },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "q",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.toggleSidebarVisibility",
							 | 
						||
| 
								 | 
							
								    "when": "explorerResourceMoveableToTrash && explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  // "command": "workbench.files.action.refreshFilesExplorer",
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "d",
							 | 
						||
| 
								 | 
							
								    "command": "moveFileToTrash",
							 | 
						||
| 
								 | 
							
								    "when": "explorerResourceMoveableToTrash && explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "shift+d",
							 | 
						||
| 
								 | 
							
								    "command": "deleteFile",
							 | 
						||
| 
								 | 
							
								    "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "c",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.files.action.collapseExplorerFolders",
							 | 
						||
| 
								 | 
							
								    "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "s",
							 | 
						||
| 
								 | 
							
								    "command": "explorer.openToSide",
							 | 
						||
| 
								 | 
							
								    "when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "f",
							 | 
						||
| 
								 | 
							
								    "command": "revealFileInOS",
							 | 
						||
| 
								 | 
							
								    "when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "t",
							 | 
						||
| 
								 | 
							
								    "command": "openInTerminal",
							 | 
						||
| 
								 | 
							
								    "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "u",
							 | 
						||
| 
								 | 
							
								    "command": "copyFilePath",
							 | 
						||
| 
								 | 
							
								    "when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "i",
							 | 
						||
| 
								 | 
							
								    "command": "copyRelativeFilePath",
							 | 
						||
| 
								 | 
							
								    "when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  // select
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+n",
							 | 
						||
| 
								 | 
							
								    "command": "selectNextSuggestion",
							 | 
						||
| 
								 | 
							
								    "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+n",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.quickOpenSelectNext",
							 | 
						||
| 
								 | 
							
								    "when": "inQuickOpen"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+p",
							 | 
						||
| 
								 | 
							
								    "command": "selectPrevSuggestion",
							 | 
						||
| 
								 | 
							
								    "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+p",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.quickOpenSelectPrevious",
							 | 
						||
| 
								 | 
							
								    "when": "inQuickOpen"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  // focus
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+h",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.navigateLeft",
							 | 
						||
| 
								 | 
							
								    "when": "terminalFocus || sideBarFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+l",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.navigateRight",
							 | 
						||
| 
								 | 
							
								    "when": "terminalFocus || sideBarFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+p",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.navigateUp",
							 | 
						||
| 
								 | 
							
								    "when": "terminalFocus || sideBarFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+n",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.navigateDown",
							 | 
						||
| 
								 | 
							
								    "when": "terminalFocus || sideBarFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  // changeCase
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "alt+;",
							 | 
						||
| 
								 | 
							
								    "command": "extension.changeCase.commands"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  // focus
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "alt+`",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.toggleSidebarVisibility"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "alt+1",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.view.explorer"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "alt-2",
							 | 
						||
| 
								 | 
							
								    "command": "outline.focus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "alt-3",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.view.extension.project-manager"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "alt-4",
							 | 
						||
| 
								 | 
							
								    "command": "todo-tree-view.focus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "alt-5",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.view.extension.dockerView"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "alt+9",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.view.scm"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "alt-0",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.toggleActivityBarVisibility"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "tab",
							 | 
						||
| 
								 | 
							
								    "command": "markdown.extension.onTabKey",
							 | 
						||
| 
								 | 
							
								    "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus && !hasOtherSuggestions && !hasSnippetCompletions && !inSnippetMode && !suggestWidgetVisible && editorLangId == 'markdown' && vim.mode =='Insert'"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "tab",
							 | 
						||
| 
								 | 
							
								    "command": "-markdown.extension.onTabKey",
							 | 
						||
| 
								 | 
							
								    "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus && !hasOtherSuggestions && !hasSnippetCompletions && !inSnippetMode && !suggestWidgetVisible && editorLangId == 'markdown'"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "shift+tab",
							 | 
						||
| 
								 | 
							
								    "command": "-markdown.extension.onShiftTabKey",
							 | 
						||
| 
								 | 
							
								    "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus && !hasOtherSuggestions && !hasSnippetCompletions && !inSnippetMode && !suggestWidgetVisible && editorLangId == 'markdown'"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "shift+tab",
							 | 
						||
| 
								 | 
							
								    "command": "markdown.extension.onShiftTabKey",
							 | 
						||
| 
								 | 
							
								    "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus && !hasOtherSuggestions && !hasSnippetCompletions && !inSnippetMode && !suggestWidgetVisible && editorLangId == 'markdown' && vim.mode =='Insert'"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  // nav buffer
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "tab",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.nextEditor",
							 | 
						||
| 
								 | 
							
								    "when": "vim.mode != 'Insert' && vim.mode != 'CommandlineInProgress' && !panelFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "shift+tab",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.previousEditor",
							 | 
						||
| 
								 | 
							
								    "when": "vim.mode != 'Insert' && vim.mode != 'CommandlineInProgress' && !panelFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  // 转换色值格式
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "alt+-",
							 | 
						||
| 
								 | 
							
								    "command": "color-conversion.colorConversion",
							 | 
						||
| 
								 | 
							
								    "when": "editorTextFocus && editorHasSelection"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  // whichkey
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "space",
							 | 
						||
| 
								 | 
							
								    "command": "whichkey.show",
							 | 
						||
| 
								 | 
							
								    "when": "!inputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "e",
							 | 
						||
| 
								 | 
							
								    "command": "whichkey.triggerKey",
							 | 
						||
| 
								 | 
							
								    "args": {
							 | 
						||
| 
								 | 
							
								      "key": "e",
							 | 
						||
| 
								 | 
							
								      "when": "sideBarVisible && explorerViewletVisible"
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								    "when": "whichkeyVisible && sideBarVisible && explorerViewletVisible"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  // 编辑器大小
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "shift+ctrl+0",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.evenEditorWidths"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+down",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.decreaseViewHeight"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+up",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.increaseViewHeight"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+right",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.decreaseViewWidth"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+left",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.increaseViewWidth"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "alt+j",
							 | 
						||
| 
								 | 
							
								    "command": "workbench.action.togglePanel"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+j",
							 | 
						||
| 
								 | 
							
								    "command": "-workbench.action.togglePanel"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  // replace vim C-d C-u
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+d",
							 | 
						||
| 
								 | 
							
								    "command": "cursorPageDown",
							 | 
						||
| 
								 | 
							
								    "when": "textInputFocus"
							 | 
						||
| 
								 | 
							
								  },
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    "key": "ctrl+u",
							 | 
						||
| 
								 | 
							
								    "command": "cursorPageUp",
							 | 
						||
| 
								 | 
							
								    "when": "textInputFocus"
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								]
							 |