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 (欢迎大家提交优化代码 ^_^) 一.业务场景 公司先有业务系统,后来觉得需要抽离公共的 ...
随机推荐
- C/C++ 开放库
C/C++ 开放库 1.Best C/C++ Network Library 2.A list of open source C++ libraries
- SDL结合QWidget的简单使用说明(2)
上篇主要讲了针对yv12流数据的渲染,但有时候我们显示视频还要求加一些信息,比如头像,昵称等等.一般的想法是在渲染窗口之上做一个小控件来负责: 但是很遗憾,你会发现你的控件被SDL的渲染完全遮住了,渲 ...
- MVC4中使用Html.DropDownList实现级联
本文记录了一个在MVC4中使用PartialView实现级联效果的小例子. 准备工作 首先准备一下要级联的数据,新建两个类:Province和City public class Province { ...
- 【我的Android进阶之旅】解决sqlcipher库:java.lang.IllegalStateException: get field slot from row 0 col 0 failed.
一.背景 最近维护公司的大数据SDK,在大数据SDK里面加入了ANR的监控功能,并将ANR的相关信息通过大数据埋点的方式记录到了数据库中,然后大数据上报的时候上报到大数据平台,这样就可以实现ANR性能 ...
- 把大象装进冰箱的N种方法
作者:折剑头链接:https://www.zhihu.com/question/49214119/answer/115728034来源:知乎著作权归作者所有.商业转载请联系作者获得授权,非商业转载请注 ...
- 【Loadrunner】LR破解版录制手机脚本
LR破解版录制手机脚本 最近在网上听到好多童鞋都在问如何用LR做手机性能测试,恰好自己对这方面也挺感兴趣,经过查阅很多资料,形成此文档以做备注~!如果有感觉我写的不对的地方,敬请指正 ...
- apache ab test使用 单独安装ab和htpasswd
apache ab test使用 apache ab test使用 单独安装ab和htpasswd 转载自: http://www.cnblogs.com/super-d2/p/3831155.htm ...
- 感知机PLA算法实现[转载]
转自:https://blog.csdn.net/u010626937/article/details/72896144#commentBox 1.实现原始形式 import numpy as np ...
- Z-score标准化[转载]
转自:https://blog.csdn.net/Orange_Spotty_Cat/article/details/80312154 1.意义 Z-Score通过(x-μ)/σ将两组或多组数据转化为 ...
- JavaScript的基础语法
对于Javascript的而言没有数据类型的全部都是通过var来定义创建的.比如: <!DOCTYPE html> <html> <head> <meta c ...