概要

settingの変更

  • デフォルト操作を「エディタ部で開く」ように変更する
  • setting.jsonに以下を追加
  // terminal
  "terminal.integrated.defaultLocation": "editor",

keybindの変更

  • terminalを開く操作のkeybind当てている人向けの設定
  • pointとしては
    • 何もfocusされていないときにtoggle panel 開くのを削除する
    • C-dが効かなくなっていたので、C-wと同じ扱いにした
  • terminalからのtab移動の追加はお好みで(自分はVSCode vimでC-h,lに設定しているのでそれに合わせた
  // go from editor to terminal
  {
    "key": "ctrl+j",
    "command": "workbench.action.createTerminalEditorSide",
    // "command": "workbench.action.terminal.focus",
    "when": "editorTextFocus"
  },
  // go from terminal to editor
  {
    "key": "ctrl+j",
    "command": "workbench.action.focusFirstEditorGroup",
    "when": "terminalFocus"
  },
  // prevent from going to panel at no focus
  {
    "key": "ctrl+j",
     "command": "-workbench.action.togglePanel"
    // "command": "workbench.action.focusFirstEditorGroup"
  },
  // move in tab
  {
    "key": "ctrl+h",
    "command": "workbench.action.previousEditorInGroup",
    "when": "terminalFocus"
  },
  {
    "key": "ctrl+l",
    "command": "workbench.action.nextEditorInGroup",
    "when": "terminalFocus"
  },
  {
    "key": "ctrl+d",
     "command": "workbench.action.terminal.killEditor"
  },