vscode的keybindings.json 和 AHK 脚本映射Win键
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键的更多相关文章
- IIS7.5 伪静态 脚本映射 配置方法
		
首先,是IIS7.0的配置,由于Windows Server 2008操作系统默认的IIS版本为7.0,我们知道,IIS7.0与IIS6.0 核心注意的地方:先要将应用池设置为集成模式,修改OK后,再 ...
 - IIS 伪静态 脚本映射 配置方法
		
首先,是IIS7.0的配置,由于Windows Server 2008操作系统默认的IIS版本为7.0,我们知道,IIS7.0与IIS6.0 核心注意的地方:先要将应用池设置为集成模式,修改OK后,再 ...
 - vscode 自动修复 setting.json 修改完,得重启浏览器 # 新版(>1.41.0)配置 vscode #解决了
		
vscode 自动修复 setting.json 修改完,得重启浏览器,不用 npm run dev 就能看到效果 "editor.codeActionsOnSave": { &q ...
 - Hibernate 表映射 主键生成策略与复合主键
		
主要分析三点: 一.数据表和Java类的映射 : 二.单一主键映射和主键的生成策略 : 三.复合主键的表映射 : 一.数据表和Java类的映射 Hibernate封装了数据库DDL语句,只需要将数据 ...
 - Hibernate开发之二 映射主键-
		
<class name="cn.itcast.e_hbm_id.User" table="user"> <!-- 映射主 ...
 - (转)Hibernate框架基础——映射主键属性
		
http://blog.csdn.net/yerenyuan_pku/article/details/52740744 本文我们学习映射文件中的主键属性,废话不多说,直接开干. 我们首先在cn.itc ...
 - 一个映射到mac风格按键的AHK脚本(替换虚拟机键盘映射)
		
Mac键位映射(部分) win+q 退出程序 win+w 关闭当前页面 win+h 隐藏当前窗口 win+shift+h 隐藏其他窗口 win+s 保存 win+o 打开 win+z 撤销 win+s ...
 - 用ahk脚本自己主动删除flashcookies
		
手动方法(请戳点击打开链接): 点击桌面左下脚的"開始"键 打开"控制面板" 并点击 "flash player" 项 进入 并点击&quo ...
 - JSON不对称反序列化映射方案
		
源码Git地址: https://github.com/git-simm/simm-framework.git (欢迎大家提交优化代码 ^_^) 一.业务场景 公司先有业务系统,后来觉得需要抽离公共的 ...
 
随机推荐
- OGG双向复制
			
注意:在进行如下配置之前,先在源数据库(原来的目标数据库)端添加辅助的redolog配置: 1.SQL> alter database add supplemental log dat ...
 - wireshark, loopback
			
swapondd if=/dev/zero of=/data/mnt/swap bs=1024 count=8024000 sudo apt-get install wireshark sudo gr ...
 - Puppet学习:Augeas的怪问题
			
今天测试部署Zabbix,本来以前是正常的,今天莫名其妙报错.测试后发现是Augeas出现问题,无论如何都不执行.于是采用调试模式: puppet agent --test --verbose --d ...
 - 迁移学习与fine-tuning有什么区别
			
假设你要处理一个新数据集,让你做图片分类,这个数据集是关于Flowers的,问题是,数据集中flower的类别很少,数据集中的数据也不多,你发现从零开始训练CNN的效果很差,很容易过拟合,怎么办呢,于 ...
 - Log表新的RowKey设计,预Split
			
1 目前Rawlog表的问题 region数量庞大,空region 率大 共有12791个region 11409空region, 比例为89.19% 剩余的region大小也是极度不均衡,最大的re ...
 - gb28181的SPVMN测试环境搭建以及设备端和服务器的具体实现
			
1.GB/T28181开发1之SPVMN(1.0.0.1)环境搭建 https://blog.csdn.net/hiwubihe/article/details/82910685 2.SPVMN 视频 ...
 - postman设置环境变量,字段值经过json转换后数值字节长度超过上限的问题
			
在使用Tests进行环境变量的设置时,遇到这么一种情况,在返回的responseBody中的userId字段,字段返回的是数值类型,再经过json转换之后,发现保存的值跟接口返回的值不一致:如下图: ...
 - Java 泛型通配符上限和通配符下限
			
①为什么要使用泛型通配符 请参考这篇随笔的下半部分 https://www.cnblogs.com/baxianhua/p/9194369.html ②通配符上限和通配符下限的简单解释 <? ...
 - 微信JS支付代码_前端调用微信支付接口
			
转自:http://dditblog.com/itshare_553.html 跟大家分享一段微信支付的js代码片段.V3版的微信支付没有paySignKey参数.基本上是直接复制就可以使用了.改一改 ...
 - c++第二十四天
			
p126~p128: 1.关系运算符作用于算数类型和指针类型. 2.逻辑运算符作用于任意能转换成布尔类型值的类型. 3.以上两种运算的运算对象和运算结果都是右值. 4.逻辑与和逻辑或的运算策略:短路求 ...