setting.json
{
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/.histroy/**": true,
"**/.ipynb_checkpoints/**": true,
"**/node_modules/**": true,
"**/.rvm/**": true,
"**/Library/**": true,
"**/GoogleDrive/**": true,
"**/Dropbox/**": true,
"**/.cocoapods/**": true,
"**/Pictures/**": true,
},
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"vim.insertModeKeyBindings": [
{
"key": "ctrl+a",
"command": "editor.action.selectAll",
"when": "editorTextFocus && !inDebugRepl"
},
{
"key": "ctrl+c",
"command": "editor.action.clipboardCopyAction",
"when": "editorTextFocus && !inDebugRepl && vim.mode == 'Insert'"
},
{
"key": "ctrl+n",
"command": "workbench.action.files.newUntitledFile",
"when": "editorTextFocus && !inDebugRepl && vim.mode == 'Insert'"
},
{
"key": "ctrl+v",
"command": "editor.action.clipboardPasteAction",
"when": "editorTextFocus && !inDebugRepl && vim.mode == 'Insert'"
},
{
"key": "ctrl+x",
"command": "editor.action.clipboardCutAction",
"when": "editorTextFocus && !inDebugRepl"
},
{
"before": [
"j",
"j"
],
"after": [
"<Esc>"
]
},
{
"before": [
";",
";"
],
"commands": [
"editor.action.triggerSuggest"
]
},
],
"vim.hlsearch": true,
"editor.formatOnSave": false, //true
"eslint.enable": true,
"files.associations": {
"*.vue": "vue",
"*.tf": "hcl"
},
"eslint.validate": [
"javascript",
"javascriptreact",
"vue"
],
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features",
"editor.formatOnSave": true
},
"workbench.iconTheme": "material-icon-theme",
"editor.bracketPairColorization.enabled": true,
"workbench.editor.enablePreview": false,
"editor.quickSuggestionsDelay": 400,
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": false
},
"[go]": {
"editor.defaultFormatter": "golang.go"
},
"workbench.editor.enablePreviewFromQuickOpen": false,
"javascript.inlayHints.parameterNames.enabled": "all",
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"tabnine.experimentalAutoImports": true,
"files.autoSave": "onFocusChange",
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[markdown]": {
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
},
"revealjs.exportHTMLPath": "./docs",
"window.commandCenter": true,
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"editor.inlineSuggest.enabled": true,
"github.copilot.enable": {
"*": true,
"plaintext": true,
"markdown": true,
"scminput": false,
"yaml": false
},
"vim.operatorPendingModeKeyBindings": [
{
"before": [
"i",
"e"
],
"after": [
"i",
"w"
]
},
],
"vim.operatorPendingModeKeyBindingsNonRecursive": [
{
"before": [
"L"
],
"after": [
"$"
]
},
{
"before": [
"H"
],
"after": [
"^"
]
},
{
"before": [
"i",
"q"
],
"after": [
"i",
"e"
]
}
],
"vim.normalModeKeyBindings": [
{
"before": [
";",
";"
],
"commands": [
"editor.action.triggerSuggest"
]
},
],
"vim.easymotion": true,
"vim.leader": "<space>",
"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "com.apple.keylayout.US",
"vim.autoSwitchInputMethod.obtainIMCmd": "/usr/local/bin/im-select",
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/local/bin/im-select {im}",
"vim.autoindent": true,
"vim.useCtrlKeys": true,
"vim.surround": true,
"vim.useSystemClipboard": true,
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
";",
";"
],
"commands": [
"editor.action.triggerSuggest"
]
},
{
"before": [
"<Leader>",
"x"
],
"command": "turboConsoleLog.displayLogMessage",
},
{
"before": [
"leader",
"d"
],
"commands": [
"editor.action.revealDefinition"
]
},
{
"before": [
"leader",
"t"
],
"commands": [
"editor.action.showHover"
// "editor.action.triggerParameterHints"
]
},
{
"key": "<c-m>",
"command": "workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"before": [
"<Leader>",
";"
],
"commands": [
{
"command": "workbench.action.showCommands"
}
]
},
{
"before": [
"<Leader>",
"p"
],
"commands": [
{
"command": "workbench.action.quickOpen"
}
]
},
{
"before": [
"<Leader>",
"b"
],
"commands": [
{
"command": "bookmarks.toggle"
}
]
},
{
"before": [
"n"
],
"after": [
"n",
"z",
"z"
]
},
{
"before": [
"N"
],
"after": [
"N",
"z",
"z"
]
},
{
"before": [
"*"
],
"after": [
"*",
"z",
"z"
]
}, //Multi-Cursor Mode
//prefix Ctrl
{
"before": [
"<C-m>"
],
"after": [
"g",
"b"
]
}, //選択した文字に対して増やす
{
"before": [
"#"
],
"after": [
"#",
"z",
"z"
]
},
//Surround
{
"before": [
"J"
],
"after": [
"1",
"0",
"j"
]
}, //移動を早める
{
"before": [
"K"
],
"after": [
"1",
"0",
"k"
]
}, //移動を早める
{
"before": [
"H"
],
"after": [
"0"
]
}, //端に移動
{
"before": [
"L"
],
"after": [
"$"
]
}, //端に移動
{
"before": [
"<C-j>",
],
"after": [
"<C-w>",
"j"
]
},
{
"before": [
"<C-l>",
],
"after": [
"<C-w>",
"l"
]
},
{
"before": [
"<C-h>",
],
"after": [
"<C-w>",
"h"
]
},
{
"before": [
"<Leader>",
"h"
],
"after": [
"<C-w>",
"h"
]
},
{
"before": [
"<c-k>",
],
"after": [
"<C-w>",
"k"
]
},
{
"before": [
"<Leader>",
"l"
],
"after": [
"<C-w>",
"l"
]
},
{
"before": [
"["
],
"commands": [
{
"command": "editor.action.peekDefinition"
}
]
}, //定義を見る
{
"before": [
"<Leader>",
"s"
],
"commands": [
":wa!"
]
}, //水平に開く
{
"before": [
"<Leader>",
"v"
],
"commands": [
":vsplit"
]
},
{
"before": [
"s",
"v"
],
"commands": [
":vsplit"
]
},
{
"before": [
"s",
"s"
],
"commands": [
":split"
]
},
{
"before": [
">"
],
"commands": [
{
"command": "editor.action.indentLines",
}
]
}, //インデント調整(repeat可能)
{
"before": [
"<"
],
"commands": [
{
"command": "editor.action.outdentLines",
}
]
}, //インデント調整(repeat可能)
// {
// "before": [
// "<c-j>",
// ],
// "after": [
// "1",
// "0",
// "j"
// ]
// }, //tab移動
// {
// "before": [
// "<c-k>",
// ],
// "after": [
// "1",
// "0",
// "k"
// ]
// }, //tab移動
{
"before": [
"<Leader>",
"j"
],
"after": [
"g",
"T"
]
}, //tab移動
{
"before": [
"<Leader>",
"k"
],
"after": [
"g",
"t"
]
}, //tab移動
{
"before": [
"<Leader>",
"x"
],
"commands": [
"Z",
"Z",
]
}, //tabを閉じる
{
"before": [
"<Leader>",
"q"
],
"commands": [
":qa!"
]
}, //すべてを閉じる
{
"before": [
"<Leader>",
"s"
],
"commands": [
":wa"
]
}, //すべてを保存
{
"before": [
"<Leader>",
"w"
],
"commands": [
":wa"
]
}, //すべてを保存
{
"before": [
"<Leader>",
"o"
],
"after": [
"o",
"<ESC>"
]
}, //空の行を挿入
{
"before": [
"<Leader>",
"O"
],
"after": [
"O",
"<ESC>"
]
}, //空の行を挿入
{
"before": [
"<Leader>",
"c"
],
"commands": [
{
"command": "editor.action.commentLine"
}
]
},
{
"before": [
"<Leader>",
"a"
],
"after": [
"%"
]
},
{
"before": [
"<c-f>",
],
"after": [
"/",
// "editor.actions.find"
]
},
{
"before": [
"<Leader>",
"f"
],
"after": [
"leader",
"leader",
"leader",
"b",
"d",
"w"
]
},
{
"before": [
"<Leader>",
"m"
],
"commands": [
{
"command": "workbench.action.compareEditor.nextChange",
},
{
"command": "workbench.action.editor.nextChange",
}
]
},
{
"before": [
"<Leader>",
"n"
],
"commands": [
{
"command": "workbench.action.compareEditor.previousChange",
}
]
},
{
"before": [
"<C-o>"
],
"commands": [
{
"command": "workbench.action.navigateBack",
}
]
},
{
"before": [
"<C-i>"
],
"commands": [
{
"command": "workbench.action.navigateForward",
}
]
},
],
"vim.visualModeKeyBindingsNonRecursive": [
{
"before": [
"p",
],
"after": [
"p",
"g",
"v",
"y"
]
},
{
"before": [
"<Leader>",
"t"
],
"commands": [
{
"command": "git.stageSelectedRanges",
}
]
},
{
"before": [
"<Leader>",
"z"
],
"commands": [
{
"command": "git.revertSelectedRanges",
}
]
},
{
"before": [
"<C-;>",
"<C-;>"
],
"commands": [
"github.copilot.generate"
]
},
// {
// "before": [
// "<Leader>",
// "t"
// ],
// "command": "turboConsoleLog.displayLogMessage",
// },
{
"key": "m",
"commands": [
"extension.vim_ctrl+o"
],
},
{
"before": [
"<leader>",
"s"
],
"commands": [
"git.stageSelectedRanges",
"extension.vim_escape"
],
},
{
"before": [
"<leader>",
"g"
],
"after": [
"%"
]
},
{
"before": [
"J"
],
"after": [
"1",
"0",
"j"
]
}, //移動を早める
{
"before": [
"v",
"J"
],
"after": [
"1",
"0",
"j"
]
}, //移動を早める
{
"before": [
"K"
],
"after": [
"1",
"0",
"k"
]
}, //移動を早める
{
"before": [
"v",
"K"
],
"after": [
"1",
"0",
"k"
]
}, //移動を早める
{
"before": [
"v"
],
"after": [
"a",
"f"
]
}, //拡大選択
{
"before": [
"v",
"v"
],
"after": [
"a",
"f"
]
}, //拡大選択
{
"before": [
"H"
],
"after": [
"^"
]
}, //端に移動
{
"before": [
"L"
],
"after": [
"$",
"h"
]
}, //端に移動
{
"before": [
"v",
"H"
],
"after": [
"^"
]
}, //端に移動
{
"before": [
"v",
"L"
],
"after": [
"$",
"h"
]
}, //端に移動
{
"before": [
">"
],
"commands": [
{
"command": "editor.action.indentLines",
}
]
}, //インデント調整(repeat可能)
{
"before": [
"<"
],
"commands": [
{
"command": "editor.action.outdentLines",
}
]
},
{
"before": [
"<Leader>",
"p"
],
"commands": [
{
"command": "workbench.action.quickOpen"
}
]
}, //インデント調整(repeat可能)
{
"before": [
"<Leader>",
":"
],
"commands": [
{
"command": "workbench.action.showCommands"
}
]
}, //コマンドパレット
{
"before": [
"<Leader>",
";"
],
"commands": [
{
"command": "workbench.action.quickOpen"
}
]
}, //ファイル検索
{
"before": [
"<Leader>",
"c"
],
"commands": [
{
"command": "editor.action.commentLine"
}
]
},
{
"before": [
"<Leader>",
"w"
],
"after": [
":wa"
]
},
//Multi-Cursor Mode
//選択した文字に対して増やす
{
"before": [
"<C-m>"
],
"after": [
"g",
"b"
]
},
//行末尾にカーソルを出す
{
"before": [
"<C-l>"
],
"commands": [
{
"command": "editor.action.insertCursorAtEndOfEachLineSelected"
}
]
}
],
"terminal.integrated.env.windows": {},
"terminal.integrated.env.osx": {},
"git.confirmSync": false,
"terminal.external.osxExec": "warp.app",
"git.suggestSmartCommit": false,
"editor.tabSize": 2,
"http.proxyStrictSSL": false,
"workbench.layoutControl.enabled": false,
"window.title": "${rootPath}",
"vsnotes.defaultNotePath": "c:\\Users\\fukazawa",
"diffEditor.ignoreTrimWhitespace": false,
"terminal.integrated.defaultProfile.windows": "Git Bash",
"scm.inputFontSize": 10,
"workbench.startupEditor": "none",
"window.zoomLevel": 1,
"notebook.breadcrumbs.showCodeCells": false,
"breadcrumbs.enabled": false,
"breadcrumbs.filePath": "off",
"breadcrumbs.icons": false,
"breadcrumbs.showArrays": false,
"breadcrumbs.showBooleans": false,
"breadcrumbs.showClasses": false,
"breadcrumbs.showConstructors": false,
"git.ignoreRebaseWarning": true,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"terminal.integrated.enableMultiLinePasteWarning": false,
"window.density.editorTabHeight": "compact",
"github.copilot.editor.enableAutoCompletions": true,
"go.toolsManagement.autoUpdate": true,
"workbench.activityBar.location": "top",
"github.copilot.chat.terminalChatLocation": "quickChat",
}keybindings.json
[
{
"key": "tab",
"command": "editor.action.indentLines",
"when": "editorTextFocus && !editorReadonly && vim.active && vim.mode != 'Insert'"
},
{
"key": "shift+tab",
"command": "editor.action.outdentLines",
"when": "editorTextFocus && !editorReadonly && vim.active && vim.mode != 'Insert'"
},
{
"key": "cmd+1",
"command": "editor.action.showContextMenu",
"when": "textInputFocus"
},
// spaceでエディターにdiffを開きつつカーソルは残したまま
{
"key": "space",
"command": "list.selectAndPreserveFocus",
"when": "sideBarFocus && activeViewlet == 'workbench.view.scm'"
},
// uでステージング
{
"key": "s",
"command": "git.stage",
"when": "sideBarFocus && activeViewlet == 'workbench.view.scm'"
},
// shift + c でコミットメッセージの入力へ
{
"key": "shift+c",
"command": "git.commitStaged",
"when": "sideBarFocus && activeViewlet == 'workbench.view.scm'"
},
// shfit + p でプッシュ
{
"key": "shift+p",
"command": "git.push",
"when": "sideBarFocus && activeViewlet == 'workbench.view.scm'"
},
// shift+u でステージングを戻す
{
"key": "shift+s",
"command": "git.unstage",
"when": "sideBarFocus && activeViewlet == 'workbench.view.scm'"
},
// サジェスチョン操作
{
"key": "ctrl+j",
"command": "selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+k",
"command": "selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
//コマンドパレットの移動,
{
"key": "Enter",
"command": "search.action.openInEditor",
"when": "hasSearchResult && searchViewletFocus && vim.mode == 'Normal'"
},
{
"key": "ctrl+j",
"command": "workbench.action.quickOpenSelectNext",
"when": "inQuickOpen"
},
{
"key": "ctrl+k",
"command": "workbench.action.quickOpenSelectPrevious",
"when": "inQuickOpen "
},
//editorじゃない時の操作(editorではvscodevimのコマンドが有効になる)
//tabを閉じる
{
"key": "space x",
"command": "workbench.action.closeActiveEditor",
"when": "!editorTextFocus && !editorHasSelection && !editorHasMultipleSelections && !inQuickOpen && !sideBarFocus && !panelFocus"
},
//tabを進める
{
"key": "space u",
"command": "workbench.action.nextEditor",
"when": "!editorTextFocus && !editorHasSelection && !editorHasMultipleSelections && !inQuickOpen && !sideBarFocus && !panelFocus"
},
//tabを戻す
{
"key": "space y",
"command": "workbench.action.previousEditor",
"when": "!editorTextFocus && !editorHasSelection && !editorHasMultipleSelections && !inQuickOpen && !sideBarFocus && !panelFocus"
},
//markdownのpreviewから戻る
{
"key": "space h",
"command": "workbench.action.focusPreviousGroup",
"when": "!editorTextFocus && !editorHasSelection && !editorHasMultipleSelections && !inQuickOpen && !sideBarFocus && !panelFocus"
},
//コマンドパレットを開く
{
"key": "space ;",
"command": "workbench.action.showCommands",
"when": "!editorTextFocus && !editorHasSelection && !editorHasMultipleSelections && !inQuickOpen && !sideBarFocus && !panelFocus"
},
//ファイルを開く
{
"key": "space p",
"command": "workbench.action.quickOpen",
"when": "!editorTextFocus && !editorHasSelection && !editorHasMultipleSelections && !inQuickOpen && !sideBarFocus && !panelFocus"
},
/* -------------------------------------------------------------------------- */
/* sidebar */
/* -------------------------------------------------------------------------- */
//サイドバー表示(toggle)
{
"key": "shift+space shift+space",
"command": "workbench.action.toggleSidebarVisibility",
"when": "!searchViewletVisible && !inDebugMode && vim.mode != 'SearchInProgressMode' && vim.mode != 'Insert'"
},
// サイドバーからの移動
{
"key": "shift+space l",
"command": "workbench.action.focusFirstEditorGroup"
// "when": "explorerViewletVisible && explorerViewletFocus && !editorFocus && !inQuickOpen"
},
{
"key": "Enter",
"command": "list.toggleExpand",
"when": "explorerViewletFocus && explorerViewletVisible && explorerResourceIsFolder && !inputFocus"
},
/* -------------------------------- explorer -------------------------------- */
//explorer表示
{
"key": "shift+space shift+e",
"command": "workbench.view.explorer"
},
{
"key": "shift+space e",
"command": "workbench.view.explorer"
},
//エクスプローラー間移動
{
"key": "j",
"command": "list.focusDown",
"when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
},
{
"key": "k",
"command": "list.focusUp",
"when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
},
//新規ファイル作成
{
"key": "n",
"command": "explorer.newFile",
"when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
},
//新規フォルダ作成
{
"key": "f",
"command": "explorer.newFolder",
"when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
},
//エクスプローラーでフォルダを開く
{
"key": "e",
"command": "revealFileInOS",
"when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
},
//リネーム
{
"key": "r",
"command": "renameFile",
"when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
},
//削除
{
"key": "d",
"command": "deleteFile",
"when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
},
// 新規ファイル作成
{
"key": "shift+cmd+n",
"command": "explorer.newFile"
},
// 新規フォルダ作成
{
"key": "shift+cmd+m",
"command": "explorer.newFolder"
},
// dでファイルを削除
{
"key": "d",
"command": "deleteFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
},
{
"key": "alt+cmd+backspace",
"command": "-deleteFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
},
// rでファイルのリネーム
{
"key": "r",
"command": "renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// vで分割して開く
{
"key": "v",
"command": "explorer.openToSide",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// ファイルのコピー
{
"key": "y",
"command": "filesExplorer.copy",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// ファイルのペースト
{
"key": "p",
"command": "filesExplorer.paste",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// shift+y で相対パスをコピー
{
"key": "shift+y",
"command": "copyRelativeFilePath",
"when": "!editorFocus"
},
{
"key": "shift+alt+cmd+c",
"command": "-copyRelativeFilePath",
"when": "!editorFocus"
},
/* ----------------------------- grep検索(sidebar) ---------------------------- */
// 検索ボックスへ移動
{
"key": "shift+space f",
"command": "workbench.action.findInFiles",
"when": "!searchInputBoxFocus"
},
{
"key": "shift+space shift+f",
"command": "workbench.action.findInFiles",
"when": "searchInputBoxFocus"
},
/* -------------------------- version管理(sidebar) -------------------------- */
{
"key": "shift+space shift+s",
"command": "workbench.view.scm"
},
{
"key": "shift+space s",
"command": "workbench.view.scm"
},
{
"key": "shift+space shift+g",
"command": "workbench.view.scm"
},
{
"key": "shift+space g",
"command": "workbench.view.scm"
},
/* --------------------------- plugin管理(sidebar) -------------------------- */
/* Panel */
//パネルから戻る
{
"key": "shift+space k",
"command": "workbench.action.focusLastEditorGroup",
"when": "panelFocus && !editorTextFocus && !editorHasSelection && !editorHasMultipleSelections && !inQuickOpen"
},
/* ---------------------------- terminal(panel) --------------------------- */
{
"key": "shift+space shift+q",
"command": "workbench.actions.view.problems"
},
{
"key": "shift+space q",
"command": "workbench.actions.view.problems"
},
{
"key": "shift+Enter",
"command": "workbench.action.terminal.toggleTerminal",
},
{
"key": "shift+backspace",
"command": "workbench.action.terminal.toggleTerminal",
},
{
"key": "cmd+9",
"command": "gitlens.views.commitDetails.focus"
},
{
"key": "ctrl+u",
"command": "gitlens.showCommitSearch"
},
{
"key": "ctrl+g",
"command": "gitlens.gitCommands"
},
{
"key": "ctrl+h",
"command": "workbench.action.focusFirstEditorGroup"
},
{
"key": "alt+/",
"command": "-gitlens.gitCommands",
"when": "!gitlens:disabled && config.gitlens.keymap == 'alternate'"
},
{
"key": "ctrl+s",
"command": "workbench.action.files.save"
}
]