Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Vix™ compared with VS Code

VS Code is a desktop editor whose language support, debuggers and much else come from extensions in its marketplace. Vix is a terminal editor with those pieces built in and no marketplace. This page puts the two side by side, says which to pick when, and how to switch. For the step-by-step move, see Vix for VS Code users.

Claims about VS Code describe its documented defaults; see the VS Code documentation. Every claim about Vix cites the test or file that checks it. The wider matrix, with Vim, Emacs, Helix, Zed, Fresh and ttt, is on the comparison page; JetBrains IDEs, Neovim and Sublime Text are in Why Vix?.

At a glance

✓ built in. - not built in (an extension may exist). ~ partial: see the footnote.

VixVS Code
Runs in a terminal✓-
Edits a remote folder over SSH~1~2
Desktop window~3✓
Language servers✓4~5
Debugger✓6✓
Git: stage and commit✓7✓
Integrated terminal✓8✓
Multiple cursors✓9✓
Persistent, branching undo✓10-
Extension marketplace-✓
ScriptingRhai scripts and plugins11JavaScript and TypeScript extensions
Live co-editing~12-13

Choose VS Code when

  • Your work depends on a particular extension: notebooks, a remote-container workflow, a proprietary language pack. The marketplace covers far more than Vix ever will.
  • You want graphical surfaces: webviews, image diffs, drag and drop.
  • You work mouse-first in a desktop window.

Choose Vix when

  • You work in a terminal, over SSH or in tmux, and want the same editor there as on your laptop, with nothing installed on the remote side.1
  • You want the IDE pieces (language servers, a debugger, Git, a terminal) to work on first launch without choosing extensions.
  • You would rather not maintain an extension set.

Switching

Pick View → Keymap… → VSCode macOS or VSCode Windows.14 The rows below are copied from the generated VS Code keybindings reference; a test fails if a row here stops matching it.

KeyActionAction ID
C-pOpen…file.open
C-S-pCommand Palettetools.palette
C-gNumbernav.goto_line
C-S-oGo to Symbolnav.goto_symbol
C-tGo to Symbol in Workspacenav.goto_workspace_symbol
C-bToggle Explorerview.explorer
C-jShow/Hide Bottom Dockview.bottom_dock
`C-``Show/Hide Terminaltools.terminal
C-S-lSelect All Occurrencesedit.select_all_occurrences
C-\Verticalview.split_vertical
C-S-mDiagnostics…lsp.diagnostics

Ctrl+D adds the next occurrence as a caret, as in VS Code.15 Then bring your settings, snippets and language servers across with the migration guide.


Vix™ and Vix IDE™ are trademarks.


  1. Experimental. tui/tests/remote_ui.rs, open_remote_connects_saves_survives_a_lost_connection_and_reconnects; see remote editing. ↩ ↩2

  2. Through Microsoft’s Remote - SSH extension, which installs a VS Code server on the remote machine; see Remote development over SSH. ↩

  3. Seven experimental desktop front ends run the same editor in a native window. See gui/spec. ↩

  4. Every LSP action against a mock server: tui/tests/integration/lsp.rs, every_lsp_action_applies_a_mock_servers_reply; servers start only in a trusted workspace: a_builtin_language_server_starts_only_in_a_trusted_workspace. ↩

  5. VS Code speaks LSP, but each language’s support comes from an extension; a few languages are bundled. ↩

  6. Breakpoints and the debugger actions: tui/tests/integration/debugger.rs, edit_breakpoint_sets_condition_hit_count_and_log_message. ↩

  7. Stage and commit, blame: tui/tests/integration/git.rs, git_panel_stages_and_commits and git_blame_annotates_the_current_line. ↩

  8. tui/tests/integration/terminals.rs, several_terminals_each_get_their_own_keys. ↩

  9. tui/tests/integration/editing.rs, select_all_occurrences_creates_multi_carets, ctrl_d_adds_a_caret_and_edits_all_occurrences and column_select_block_edits_multiple_lines. ↩

  10. persistent_undo defaults to true in crates/vix-settings/src/lib.rs; the tree view: tui/tests/integration/undo_tree.rs, moving_the_selection_previews_and_enter_keeps_the_state. ↩

  11. Rhai scripts add palette commands and key bindings: tui/tests/integration/scripting.rs, script_command_appears_in_the_command_palette and a_scripts_bind_key_request_actually_fires_through_on_key; plugins are enabled and disabled from a chooser: plugin_chooser_enables_and_disables_a_plugin. ↩

  12. Compiled in only with the cowork Cargo feature, which the default full feature set in tui/Cargo.toml leaves out. See the Cowork specification. ↩

  13. Through Microsoft’s Live Share extension. ↩

  14. View → Keymap… sets the keymap setting: tui/tests/integration/keymaps.rs, view_keymap_submenu_actions_set_the_keymap. ↩

  15. tui/tests/integration/editing.rs, ctrl_d_adds_a_caret_and_edits_all_occurrences. ↩