Skip to content

Back forward navigation (ctrl i ctrl o)

losnappas edited this page Mar 5, 2022 · 1 revision

New version (February 2022 vscode version)

The built-in back/forward story has improved, and is pretty good.

https://code.visualstudio.com/updates/v1_65#_new-editor-history-navigation

// Add to settings
"workbench.editor.navigationScope": "editorGroup",
  {
    "key": "ctrl+o",
    "command": "workbench.action.navigateBack"
  },
  {
    "key": "ctrl+i",
    "command": "workbench.action.navigateForward"
  },

Old version

The vscode back/forward is quite clumsy, as every single movement counts as a point, and the history is way too short.

There is an extension called Sensible back and forward navigation, which is better, not perfect, at doing back/forward.

  {
    "key": "ctrl+o",
    "command": "sensible-back-forward-navigation.goBack"
  },
  {
    "key": "ctrl+i",
    "command": "sensible-back-forward-navigation.goForward"
  },
  {
    "key": "alt+h",
    "command": "-sensible-back-forward-navigation.goBack"
  },
  {
    "key": "alt+l",
    "command": "-sensible-back-forward-navigation.goForward"
  },

Related issue: https://github.com/71/dance/issues/200 .