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 (欢迎大家提交优化代码 ^_^) 一.业务场景 公司先有业务系统,后来觉得需要抽离公共的 ...
随机推荐
- 阿里云 elastic search 重启 过程
阿里云 es 重启 elasticsearch 重启 过程 实例变更中 53.13% 准备ECS资源 已完成节点数:4/4, 进度:100% 准备容器服务 进度:100% 变 ...
- mysql 数据操作 单表查询 group by 注意
GROUP BY 单独使用GROUP BY关键字分组 SELECT post FROM employee GROUP BY post; 注意:我们按照post字段分组,那么select查询的字段只能是 ...
- React Native教程
React Native 中文网 http://reactnative.cn/ 相关资料======================= React-Native学习指南 https://github ...
- Java8新特性(转载)
1.Lambda表达式 Lambda表达式(也称为闭包)是整个Java 8发行版中最受期待的在Java语言层面上的改变.使用 Lambda 表达式可以使代码变的更加简洁紧凑. Lambda允许把函数作 ...
- easyUI datagrid 清空
最近在做一个管理系统,出于一些需要,经常要将一些datagrid清空.然后easyUI本身并没有自带的方法,然后自己动手丰衣足食吧. 清空无外乎两种思路,删除现有数据和填充空数据. 1.删除数据 va ...
- python 异常处理、进程
目录: 异常处理 python进程 python并发之多进程 一.异常处理(try...except...) 1.程序中难免出现错误,而错误分成两种: a.语法错误: b.逻辑错误(逻辑错误) 2.异 ...
- 经验搜索排名---google已经做过类似的了(我想多了)
由于编程的原因,我们需要经常的查资料,现在转载的文章比较多,我们经常看到的搜索结果的前十名基本上有7名是转载的.这样看起来很没有效率,后来突然想到,如果把大家的浏览结果搜集起来,然后进行权重排名,这样 ...
- 运行.xcworkspace项目后报错:'React/RCTBundleURLProvider.h’ file not found
情况:根据https://github.com/rebeccahughes/react-native-device-info添加依赖库,运行.xcworkspacea项目后报错 解决:Delete n ...
- 478. Generate Random Point in a Circle
1. 问题 给定一个圆的半径和圆心坐标,生成圆内点的坐标. 2. 思路 简单说 (1)在圆内随机取点不好做,但是如果画出这个圆的外接正方形,在正方形里面采样就好做了. (2)取两个random确定正方 ...
- RC1意思
软件各种版本的表示 alpha 内部测试版 beta 外部测试版 demo 演示版 Enhance 增强版或者加强版 属于正式版 Free 自由版 Full version 完全版 属于正式版 sha ...