Skip to content

Latest commit

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

VSCode Tmux Keybinding

[VS Code Marketplace] [Open VSX Registry]

This is a simple extension for tmux behavior in the VS Code terminal. It provides keybindings similar to tmux, using either Ctrl+B (default) or Ctrl+A as a prefix.

Configuration

You can configure which prefix key to use in your VS Code settings (settings.json):

{
// Enable keybindings that use Ctrl+B as a prefix (default: true)"tmuxKeybinding.enableCtrlBPrefix": true,
// Enable keybindings that use Ctrl+A as a prefix (default: false)"tmuxKeybinding.enableCtrlAPrefix": false
}

Keybinding

All keybindings are active only when the terminal has focus (terminalFocus).

General Bindings

ShortcutCommandDescription
ctrl+kworkbench.action.terminal.clearClear terminal
shift+rightworkbench.action.terminal.focusNextFocus next terminal
shift+leftworkbench.action.terminal.focusPreviousFocus previous terminal

Prefix Bindings (Ctrl+B or Ctrl+A)

The following bindings work when the corresponding prefix (tmuxKeybinding.enableCtrlBPrefix or tmuxKeybinding.enableCtrlAPrefix) is enabled in settings. Replace prefix with ctrl+b or ctrl+a.

ShortcutCommandDescriptionCondition (if any)
prefix cworkbench.action.terminal.newInActiveWorkspaceNew terminal
prefix 1 - prefix 9workbench.action.terminal.focusAtIndexNFocus terminal by index
prefix shift+5workbench.action.terminal.splitSplit terminal (horizontal)Panel at bottom
prefix shift+'workbench.action.terminal.splitSplit terminal (vertical)Panel not at bottom
prefix alt+upworkbench.action.terminal.resizePaneUpResize pane up
prefix alt+downworkbench.action.terminal.resizePaneDownResize pane down
prefix alt+leftworkbench.action.terminal.resizePaneLeftResize pane left
prefix alt+rightworkbench.action.terminal.resizePaneRightResize pane right
prefix ctrl+bworkbench.action.toggleSidebarVisibilityToggle sidebar visibility(Note: ctrl+b even if prefix is ctrl+a)
prefix dworkbench.action.terminal.toggleTerminalToggle terminal panel visibility
prefix wworkbench.action.quickOpenTermShow terminal list
prefix zworkbench.action.toggleMaximizedPanelToggle maximize terminal panel
prefix rightworkbench.action.terminal.focusNextPaneFocus next panePanel at bottom
prefix leftworkbench.action.terminal.focusPreviousPaneFocus previous panePanel at bottom
prefix downworkbench.action.terminal.focusNextPaneFocus next panePanel not at bottom
prefix upworkbench.action.terminal.focusPreviousPaneFocus previous panePanel not at bottom
prefix xworkbench.action.terminal.killKill active terminal/pane

Releases

Packages

Used by

Contributors