hbuilderX uni-app 自定义快捷键无效、无法生效解决方法(附:好用的常用的快捷键自定义代码片段)

简介: hbuilderX uni-app 自定义快捷键无效、无法生效解决方法(附:好用的常用的快捷键自定义代码片段)

在最后加上

,"override": true

才能让原有默认的快捷键被覆盖


好用的常用的快捷键自定义代码片段

[
  //打开快捷键设置
  {
    "key": "alt+shift+k",
    "command": "workbench.action.openGlobalKeybindings",
    "override": true
  },
  //查找索引符号
  {
    "key": "ctrl+shift+a",
    "command": "actions.quickFind",
    "override": true
  },
  //置焦到项目管理器
  {
    "key": "ctrl+shift+e",
    "command": "workbench.view.explorer",
    "override": true
  },
  //复制标签卡到分栏
  {
    "key": "ctrl+\\",
    "command": "workbench.action.copyEditor",
    "override": true
  }, 
  //清空控制台
  {
    "key": "ctrl+l",
    "command": "workbench.console.action.clearLog",
    "override": true
  },
  {
    "key": "ctrl+shift+j",
    "command": "editor.action.joinLines",
    "override": true
  },
  {
    "key": "shift+alt+x",
    "command": "workbench.files.action.collapseExplorerFolders",
    "override": true
  },
  {
    "key": "alt+s",
    "command": "workbench.action.toggleAutoSave",
    "override": true
  },
  {
    "key": "shift+alt+w",
    "command": "workbench.action.closeOtherEditors",
    "override": true
  },
  {
    "key": "shift+alt+oem_6",
    "command": "workbench.action.closeEditorsToTheRight",
    "override": true
  },
  {
    "key": "shift+alt+oem_4",
    "command": "workbench.action.closeEditorsToTheLeft",
    "override": true
  },
  {
    "key": "ctrl+shift+pagedown",
    "command": "-workbench.action.moveEditorRightInGroup",
    "override": true
  },
  {
    "key": "ctrl+shift+pagedown",
    "command": "workbench.action.moveEditorRightInGroup",
    "override": true
  },
  {
    "key": "ctrl+numpad0",
    "command": "editor.action.fontZoomReset",
    "override": true
  },
  {
    "key": "alt+e",
    "command": "workbench.action.switchWindow",
    "override": true
  },
  {
    "key": "alt+insert",
    "command": "explorer.newFile",
    "override": true
  },
  {
    "key": "shift+alt+insert",
    "command": "explorer.newFolder",
    "override": true
  },
  {
    "key": "alt+enter",
    "command": "editor.action.quickFix",
    "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly",
    "override": true
  },
  {
    "key": "ctrl+oem_period",
    "command": "-editor.action.quickFix",
    "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly",
    "override": true
  },
  {
    "key": "ctrl+shift+oem_3",
    "command": "-workbench.action.terminal.new",
    "when": "terminalProcessSupported",
    "override": true
  },
  {
    "key": "shift+alt+z",
    "command": "workbench.action.terminal.newInActiveWorkspace",
    "override": true
  },
  {
    "key": "ctrl+l",
    "command": "workbench.action.terminal.clear",
    "override": true
  },
  {
    "key": "ctrl+alt+k",
    "command": "workbench.action.openGlobalKeybindings",
    "override": true
  },
  {
    "key": "ctrl+shift+f",
    "command": "-vueBeautify.format",
    "when": "editorTextFocus && editorTextFocus && !editorReadonly && resourceLangId == 'vue'",
    "override": true
  },
  {
    "key": "alt+m",
    "command": "editor.action.toggleMinimap",
    "override": true
  },
  {
    "key": "alt+n",
    "command": "npm.focus",
    "override": true
  },
  {
    "key": "shift shift",
    "command": "workbench.action.gotoSymbol",
    "override": true
  },
  {
    "key": "ctrl+shift+o",
    "command": "-workbench.action.gotoSymbol",
    "override": true
  },
  {
    "key": "shift+alt+l",
    "command": "editor.action.transformToLowercase",
    "override": true
  },
  {
    "key": "shift+alt+u",
    "command": "editor.action.transformToUppercase",
    "override": true
  },
  {
    "key": "alt+u",
    "command": "editor.action.transformToTitlecase",
    "override": true
  },
  {
    "key": "alt+numpad_add",
    "command": "workbench.action.increaseViewSize",
    "override": true
  },
  {
    "key": "alt+pagedown",
    "command": "workbench.action.terminal.resizePaneDown",
    "override": true
  },
  {
    "key": "alt+numpad_subtract",
    "command": "workbench.action.decreaseViewSize",
    "override": true
  },
  {
    "key": "alt+numpad0",
    "command": "workbench.action.evenEditorWidths",
    "override": true
  },
  {
    "key": "alt+pageup",
    "command": "workbench.action.terminal.resizePaneUp",
    "override": true
  },
  {
    "key": "ctrl+alt+s",
    "command": "extension.autoScssStruct",
    "override": true
  },
  {
    "key": "alt+b",
    "command": "workbench.action.toggleStatusbarVisibility",
    "override": true
  },
  {
    "key": "shift+alt+k",
    "command": "workbench.action.openGlobalKeybindingsFile",
    "override": true
  },
  {
    "key": "alt+f",
    "command": "workbench.action.toggleZenMode",
    "override": true
  },
  {
    "key": "alt+q",
    "command": "workbench.action.toggleActivityBarVisibility",
    "override": true
  },
  {
    "key": "alt+oem_5",
    "command": "workbench.action.splitEditorDown",
    "override": true
  },
  {
    "key": "alt+g",
    "command": "git.checkout",
    "override": true
  },
  {
    "key": "ctrl+alt+r",
    "command": "workbench.files.action.refreshFilesExplorer",
    "override": true
  },
  {
    "key": "alt+r",
    "command": "workbench.action.tasks.runTask",
    "override": true
  },
  {
    "key": "alt+c",
    "command": "-extension.switchCSS",
    "override": true
  },
  {
    "key": "alt+c",
    "command": "extension.switchCSS",
    "override": true
  },
  {
    "key": "alt+x",
    "command": "extension.cssremNaNpx-switch-px",
    "override": true
  },
  {
    "key": "alt+z",
    "command": "-extension.cssremNaNpx-switch-px",
    "override": true
  }
]


相关文章
|
6月前
|
XML Java Android开发
Android Studio App开发中改造已有的控件实战(包括自定义支付宝月份选择器、给翻页栏添加新属性、不滚动的列表视图 附源码)
Android Studio App开发中改造已有的控件实战(包括自定义支付宝月份选择器、给翻页栏添加新属性、不滚动的列表视图 附源码)
114 1
|
6月前
|
开发者 iOS开发
UniApp打包教程:使用HBuilder X和AppUploader完成原生App云打包和上架指南“
UniApp打包教程:使用HBuilder X和AppUploader完成原生App云打包和上架指南“
231 3
|
6月前
|
XML 搜索推荐 Java
Android App开发之自定义图形中位图与图形互转、剪裁图形内部区域、给图形添加部件的讲解及实战(附源码 简单易懂)
Android App开发之自定义图形中位图与图形互转、剪裁图形内部区域、给图形添加部件的讲解及实战(附源码 简单易懂)
67 0
|
3月前
|
安全 前端开发 API
【Azure 应用服务】Azure Web App 服务默认支持一些 Weak TLS Ciphers Suite,是否有办法自定义修改呢?
【Azure 应用服务】Azure Web App 服务默认支持一些 Weak TLS Ciphers Suite,是否有办法自定义修改呢?
|
3月前
|
Java 应用服务中间件 Windows
【应用服务 App Service】App Service 中部署Java项目,查看Tomcat配置及上传自定义版本
【应用服务 App Service】App Service 中部署Java项目,查看Tomcat配置及上传自定义版本
|
29天前
|
移动开发 小程序 测试技术
自定义多级联动选择器指南(uni-app)
在本文中,探讨了如何在uni-app中创建自定义多级联动选择器组件。这个组件具有强大的多端支持,可适用于H5、APP、微信小程序、支付宝小程序等多种平台。
30 1
自定义多级联动选择器指南(uni-app)
|
28天前
|
JavaScript 前端开发 UED
Vue与uni-app开发中通过@font-face巧妙引入自定义字体
Vue与uni-app开发中通过@font-face巧妙引入自定义字体
62 9
|
1月前
hbuilderX 云打包 APP
hbuilderX 云打包 APP
87 0
|
3月前
|
Java 应用服务中间件 Windows
【App Service for Windows】为 App Service 配置自定义 Tomcat 环境
【App Service for Windows】为 App Service 配置自定义 Tomcat 环境
|
3月前
|
PHP 开发工具 git
【Azure 应用服务】在 App Service for Windows 中自定义 PHP 版本的方法
【Azure 应用服务】在 App Service for Windows 中自定义 PHP 版本的方法

热门文章

最新文章