Skip to content

Instantly share code, notes, and snippets.

@xcatliu
Last active September 27, 2017 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xcatliu/dc94a8b28d5e80e75be3cf98d26afe1b to your computer and use it in GitHub Desktop.
Save xcatliu/dc94a8b28d5e80e75be3cf98d26afe1b to your computer and use it in GitHub Desktop.
Config Files
// 将键绑定放入此文件中以覆盖默认值
[
{
"key": "alt+q",
"command": "macros.oneVar"
},
{
"key": "alt+a",
"command": "macros.oneVarLet"
},
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+pagedown",
"command": "-workbench.action.nextEditor"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
"key": "ctrl+pageup",
"command": "-workbench.action.previousEditor"
},
{
"key": "ctrl+shift+tab",
"command": "-workbench.action.openPreviousRecentlyUsedEditorInGroup"
},
{
"key": "ctrl+tab",
"command": "-workbench.action.openNextRecentlyUsedEditorInGroup"
}
]
// Place your settings in this file to overwhite the default settings
{
"editor.wordWrap": "on",
"javascript.validate.enable" : false,
"editor.tabSize": 4,
"git.confirmSync": false,
"git.enableSmartCommit": true,
"window.zoomLevel": 0,
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
// "eslint.autoFixOnSave": true,
// "eslint.trace.server": "messages",
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue"
],
"macros": {
"oneVar": [
"editor.action.nextMatchFindAction",
"deleteRight",
{"command": "type", "args": {"text": ";"}},
"cursorDown",
"cursorHome",
"deleteLeft",
{"command": "type", "args": {"text": "var "}}
],
"oneVarLet": [
"editor.action.nextMatchFindAction",
"deleteRight",
{"command": "type", "args": {"text": ";"}},
"cursorDown",
"cursorHome",
"deleteLeft",
{"command": "type", "args": {"text": "let "}}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment