vscodehotkey.ahk

https://github.com/m2nlight/AHKVSCodeLikeMac

; Shortcuts like mac
; Written by Bob
; https://github.com/m2nlight/AHKVSCodeLikeMac #SingleInstance On ; Code.exe
#IfWinActive ahk_exe Code.exe ; Map Ctrl to Win
LWin::LCtrl
RWin::RCtrl
; emacs move cursor keymap
Ctrl & p::Send {Up}
Ctrl & n::Send {Down}
Ctrl & b::Send {Left}
Ctrl & f::Send {Right}
Alt & b::Send ^{Left}
Alt & f::Send ^{Right}
Ctrl & d::Send {Del} ; Delete a charactor
Alt & d::Send ^{Del} ; Delete right word
Alt & Backspace::Send ^{Backspace} ; Delete left word
; append features
!+d::Send !+{Down} ; Duplicate line #IfWinActive

使用这个就不必用下面的json了。

keybingdings.json

ctrl/cmd+shift+p

> Open keyboard shortcuts file

[{ "key": "ctrl+f", "command": "cursorRight", "when": "editorTextFocus" },
{ "key": "ctrl+b", "command": "cursorLeft", "when": "editorTextFocus" },
{ "key": "ctrl+a", "command": "cursorHome", "when": "editorTextFocus" },
{ "key": "ctrl+e", "command": "cursorEnd", "when": "editorTextFocus" },
{ "key": "alt+f", "command": "cursorWordRight", "when": "editorTextFocus" },
{ "key": "alt+b", "command": "cursorWordLeft", "when": "editorTextFocus" },
{ "key": "ctrl+n", "command": "cursorDown", "when": "textInputFocus" },
{ "key": "ctrl+p", "command": "cursorUp", "when": "textInputFocus" },
{ "key": "ctrl+n", "command": "showNextParameterHint", "when": "editorFocus && parameterHintsMultipleSignatures && parameterHintsVisible" },
{ "key": "ctrl+p", "command": "showPrevParameterHint", "when": "editorFocus && parameterHintsMultipleSignatures && parameterHintsVisible" },
{ "key": "ctrl+n", "command": "selectNextSuggestion", "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" },
{ "key": "ctrl+p", "command": "selectPrevSuggestion", "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" },
{ "key": "ctrl+n", "command": "history.showNext", "when": "historyNavigationEnabled && historyNavigationWidget" },
{ "key": "ctrl+p", "command": "history.showPrevious", "when": "historyNavigationEnabled && historyNavigationWidget" },
{ "key": "ctrl+n", "command": "list.focusDown", "when": "listFocus && !inputFocus" },
{ "key": "ctrl+p", "command": "list.focusUp", "when": "listFocus && !inputFocus" },
{ "key": "ctrl+n", "command": "notifications.focusNextToast", "when": "notificationFocus && notificationToastsVisible" },
{ "key": "ctrl+p", "command": "notifications.focusPreviousToast", "when": "notificationFocus && notificationToastsVisible" },
{ "key": "ctrl+n", "command": "outline.focusDownHighlighted", "when": "outlineFiltered && outlineFocused" },
{ "key": "ctrl+p", "command": "outline.focusUpHighlighted", "when": "outlineFiltered && outlineFocused" },
{ "key": "ctrl+n", "command": "workbench.action.interactivePlayground.arrowDown", "when": "interactivePlaygroundFocus && !editorTextFocus" },
{ "key": "ctrl+p", "command": "workbench.action.interactivePlayground.arrowUp", "when": "interactivePlaygroundFocus && !editorTextFocus" },
{ "key": "ctrl+d", "command": "deleteRight", "when": "textInputFocus && !editorReadonly" },
{ "key": "alt+d", "command": "deleteWordRight", "when": "textInputFocus && !editorReadonly" },
{ "key": "alt+shift+d", "command": "editor.action.copyLinesDownAction", "when": "editorTextFocus" },
{ "key": "ctrl+alt+d", "command": "editor.action.addSelectionToNextFindMatch", "when": "editorFocus" },
{ "key": "ctrl+alt+f", "command": "actions.find", "when": "editorTextFocus" },
{ "key": "ctrl+alt+a", "command": "editor.action.selectAll", "when": "textInputFocus" },
{ "key": "ctrl+alt+n", "command": "workbench.action.files.newUntitledFile" },
{ "key": "ctrl+alt+p", "command": "workbench.action.quickOpen" }]

vscode的keybindings.json 和 AHK 脚本映射Win键的更多相关文章

  1. IIS7.5 伪静态 脚本映射 配置方法

    首先,是IIS7.0的配置,由于Windows Server 2008操作系统默认的IIS版本为7.0,我们知道,IIS7.0与IIS6.0 核心注意的地方:先要将应用池设置为集成模式,修改OK后,再 ...

  2. IIS 伪静态 脚本映射 配置方法

    首先,是IIS7.0的配置,由于Windows Server 2008操作系统默认的IIS版本为7.0,我们知道,IIS7.0与IIS6.0 核心注意的地方:先要将应用池设置为集成模式,修改OK后,再 ...

  3. vscode 自动修复 setting.json 修改完,得重启浏览器 # 新版(>1.41.0)配置 vscode #解决了

    vscode 自动修复 setting.json 修改完,得重启浏览器,不用 npm run dev 就能看到效果 "editor.codeActionsOnSave": { &q ...

  4. Hibernate 表映射 主键生成策略与复合主键

    主要分析三点: 一.数据表和Java类的映射 : 二.单一主键映射和主键的生成策略 : 三.复合主键的表映射 : 一.数据表和Java类的映射  Hibernate封装了数据库DDL语句,只需要将数据 ...

  5. Hibernate开发之二 映射主键-

    <class name="cn.itcast.e_hbm_id.User" table="user">            <!-- 映射主 ...

  6. (转)Hibernate框架基础——映射主键属性

    http://blog.csdn.net/yerenyuan_pku/article/details/52740744 本文我们学习映射文件中的主键属性,废话不多说,直接开干. 我们首先在cn.itc ...

  7. 一个映射到mac风格按键的AHK脚本(替换虚拟机键盘映射)

    Mac键位映射(部分) win+q 退出程序 win+w 关闭当前页面 win+h 隐藏当前窗口 win+shift+h 隐藏其他窗口 win+s 保存 win+o 打开 win+z 撤销 win+s ...

  8. 用ahk脚本自己主动删除flashcookies

    手动方法(请戳点击打开链接): 点击桌面左下脚的"開始"键 打开"控制面板" 并点击 "flash player" 项 进入 并点击&quo ...

  9. JSON不对称反序列化映射方案

    源码Git地址: https://github.com/git-simm/simm-framework.git (欢迎大家提交优化代码 ^_^) 一.业务场景 公司先有业务系统,后来觉得需要抽离公共的 ...

随机推荐

  1. Css-常用css

    /*怪异盒子模型*/ .box { box-sizing: border-box; } /*水平居中的内联块级*/ .inBlock { display: inline-block; vertical ...

  2. SaltStack部署redis主从

    需求: 一,部署redis主从,一台主一台从 二,redis监听自己的IP地址,而不是0.0.0.0 主:安装,配置,启动 从:安装,配置,启动,主从

  3. 使用 Sonar 进行代码质量管理

    参考资料: 使用 Sonar 进行代码质量管理 SonarQube的安装.配置与使用 SonarLint(Sonar) 代码质量管理

  4. android(十四)四种启动模式

    standard 启动的activity会每次都重新创建一个activity放到任务栈中.这是系统默认的启动模式. singleTop启动的activity,如果任务的栈顶刚好存在当前的activit ...

  5. centos Linux系统日常管理2 tcpdump,tshark,selinux,strings命令, iptables ,crontab,TCP,UDP,ICMP,FTP网络知识 第十五节课

    centos  Linux系统日常管理2  tcpdump,tshark,selinux,strings命令, iptables ,crontab,TCP,UDP,ICMP,FTP网络知识 第十五节课 ...

  6. 文本IO 二进制IO

    一.文本IO  字符流 使用PrintWriter写入文件后,必须调用close(),否则数据不能正确保存在文件中. Scanner的next()读取一个由分隔符分隔的字符串,nextLine()读取 ...

  7. HTML5中的本地、WebSql、离线应用存储

    1.   HTML5存储相关API a)   Localstorage 本地存储 b)   Web Sql DataBase 本地数据库存储 c)   .manifest 离线应用存储 2.   HT ...

  8. appcmd创建站点、应用程序、虚拟目录批处理程序

    创建站点(放置在站点下运行): @echo off cls :start echo start set /p sitename="sitename:" @set "phy ...

  9. validform.js+layer.js 表单验证样式

    $("#formAdd").Validform({ tiptype: function (msg, o, cssctl) { if (o.type == 3) {//失败 laye ...

  10. 028-B+树(一)

    B+ 树 这部分主要学习:什么是B+树? 了解了 B 树后再来了解下它的变形版:B+ 树,它比 B 树的查询性能更高. 一棵 B+ 树需要满足以下条件: 节点的子树数和关键字数相同(B 树是关键字数比 ...