VSCodeでもCtrl + ↑↓で検索移動する

VSCodeでもCtrl + ↑↓で検索移動する

VSCodeのデフォルト設定では
F3 次を検索
Shift + F3 前を検索


VSCodeでもCtrl + ↑↓で検索できるように、設定を変更した
Ctrl + Enterで置換も実行できるようにした

設定
Ctrl + Shift + Pでコマンドパレットを表示する
「>shortcut json」と入力し、「Open Keyboard Shortcuts (JSON)」を選ぶ
keybindings.jsonを編集する
UbuntuやWindows
keybindings.json
Copied!
[
{
"key": "ctrl+up",
"command": "editor.action.previousMatchFindAction",
"when": "editorFocus && findWidgetVisible"
},
{
"key": "ctrl+down",
"command": "editor.action.nextMatchFindAction",
"when": "editorFocus && findWidgetVisible"
},
{
"key": "ctrl+enter",
"command": "editor.action.replaceOne",
"when": "editorFocus && findWidgetVisible"
}
]

macOS
keybindings.json
Copied!
[
{
"key": "cmd+up",
"command": "editor.action.previousMatchFindAction",
"when": "editorFocus && findWidgetVisible"
},
{
"key": "cmd+down",
"command": "editor.action.nextMatchFindAction",
"when": "editorFocus && findWidgetVisible"
},
{
"key": "cmd+enter",
"command": "editor.action.replaceOne",
"when": "editorFocus && findWidgetVisible"
}
]

Powered by Helpfeel