開発を快適にしよう

  1. プライマリーバーを開閉する
  • フォーカス付き
  {
    "key": "shift+space shift+space",
    "command": "workbench.action.toggleSidebarVisibility",
    "when": "vim.mode != 'SearchInProgressMode' && vim.mode != 'Insert'"
  },
  • フォーカスなし
{
  "key": "ctrl+b",
  "command": "workbench.view.explorer"
}
  1. セカンダリバーを開く
  • フォーカスなし
{
  "key": "alt+space",
  "command": "workbench.action.toggleAuxiliaryBar"
}
  1. copilot チャットの入力欄にフォーカス
{
  "key": "ctrl+q",
  "command": "workbench.panel.chat.view.copilot.focus"
}
  1. ターミナル表示のトグル
  {
    "key": "shift+enter",
    "command": "workbench.action.terminal.toggleTerminal",
    "when": "terminal.active && !chatInputHasFocus"
  },
  1. scm ビューにフォーカス
{
  "key": "ctrl+shift+g",
  "command": "workbench.view.scm"
}
  1. エディターの分割
  • 垂直
  {
    "key": "s s",
    "command": "workbench.action.splitEditorDown",
    "when": "!jumpy2.jump-mode && editorTextFocus && neovim.mode == 'normal'"
  },
  • 水平
{
  "key": "s v",
  "command": "workbench.action.splitEditorRight",
  "when": "!jumpy2.jump-mode && editorTextFocus && neovim.mode == 'normal'"
}
  1. エディター間の移動
{
  "key": "ctrl+h",
  "command": "workbench.action.focusPreviousGroup"
},
{
  "key": "ctrl+l",
  "command": "workbench.action.focusNextGroup"
}

便利な設定

ターミナル上などで emacs 風キーバインドが使える

  • ctrl + p/nで上下の操作(だいたい使えます)

  • ctrl + aで行頭へ移動, ctrl + eで行末へ移動

  • ctrl + wで単語削除

vscode の shell integration を有効化

"terminal.integrated.suggest.enabled": true,