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

How to Migrate from VS Code to Gram

This guide is for developers who spent serious time in VS Code and want to try Gram without starting from scratch.

If you’re here, you are probably a VS Code user frustrated by the slow, Electron-based implementation and the increasing reliance on flaky AI tooling that is creeping into editors like VS Code and Zed, created by US-based corporations that want to trap you in a subscription-based model of code editing.

Gram is a fully open source editor without any AI, telemetry or subscriptions, with support for many of the same languages that VS Code supports.

Install Gram

Gram is available for macOS, Windows, and Linux.

To install the editor, you will need to build it from source. Fortunately, building a Rust project is really easy. All you need is https://rustup.rs, which will help you install the compiler and tooling that compiling Gram requires.

After installation, you can launch Gram in the same way that you usually run applications on your platform.

Import Settings from VS Code

During setup, you have the option to import key settings from VS Code. Gram imports the following settings:

Settings Imported from VS Code

The following VS Code settings are automatically imported when you use Import Settings from VS Code:

Editor

VS Code SettingGram Setting
editor.fontFamilybuffer_font_family
editor.fontSizebuffer_font_size
editor.fontWeightbuffer_font_weight
editor.tabSizetab_size
editor.insertSpaceshard_tabs (inverted)
editor.wordWrapsoft_wrap
editor.wordWrapColumnpreferred_line_length
editor.cursorStylecursor_shape
editor.cursorBlinkingcursor_blink
editor.renderLineHighlightcurrent_line_highlight
editor.lineNumbersgutter.line_numbers, relative_line_numbers
editor.showFoldingControlsgutter.folds
editor.minimap.enabledminimap.show
editor.minimap.autohideminimap.show
editor.minimap.showSliderminimap.thumb
editor.minimap.maxColumnminimap.max_width_columns
editor.stickyScroll.enabledsticky_scroll.enabled
editor.scrollbar.horizontalscrollbar.axes.horizontal
editor.scrollbar.verticalscrollbar.axes.vertical
editor.mouseWheelScrollSensitivityscroll_sensitivity
editor.fastScrollSensitivityfast_scroll_sensitivity
editor.cursorSurroundingLinesvertical_scroll_margin
editor.hover.enabledhover_popover_enabled
editor.hover.delayhover_popover_delay
editor.parameterHints.enabledauto_signature_help
editor.multiCursorModifiermulti_cursor_modifier
editor.selectionHighlightselection_highlight
editor.roundedSelectionrounded_selection
editor.find.seedSearchStringFromSelectionseed_search_query_from_cursor
editor.rulerswrap_guides
editor.renderWhitespaceshow_whitespaces
editor.guides.indentationindent_guides.enabled
editor.linkedEditinglinked_edits
editor.autoSurrounduse_auto_surround
editor.formatOnSaveformat_on_save
editor.formatOnPasteauto_indent_on_paste
editor.formatOnTypeuse_on_type_format
editor.trimAutoWhitespaceremove_trailing_whitespace_on_save
editor.suggestOnTriggerCharactersshow_completions_on_input
editor.suggest.showWordscompletions.words
editor.inlineSuggest.enabledshow_edit_predictions

Files & Workspace

VS Code SettingGram Setting
files.autoSaveautosave
files.autoSaveDelayautosave.milliseconds
files.insertFinalNewlineensure_final_newline_on_save
files.associationsfile_types
files.watcherExcludefile_scan_exclusions
files.watcherIncludefile_scan_inclusions
files.simpleDialog.enableuse_system_path_prompts
search.smartCaseuse_smartcase_search
search.useIgnoreFilessearch.include_ignored

Terminal

VS Code SettingGram Setting
terminal.integrated.fontFamilyterminal.font_family
terminal.integrated.fontSizeterminal.font_size
terminal.integrated.lineHeightterminal.line_height
terminal.integrated.cursorStyleterminal.cursor_shape
terminal.integrated.cursorBlinkingterminal.blinking
terminal.integrated.copyOnSelectionterminal.copy_on_select
terminal.integrated.scrollbackterminal.max_scroll_history_lines
terminal.integrated.macOptionIsMetaterminal.option_as_meta
terminal.integrated.{platform}Execterminal.shell
terminal.integrated.env.{platform}terminal.env

Tabs & Panels

VS Code SettingGram Setting
workbench.editor.showTabstab_bar.show
workbench.editor.showIconstabs.file_icons
workbench.editor.tabActionLocationtabs.close_position
workbench.editor.tabActionCloseVisibilitytabs.show_close_button
workbench.editor.focusRecentEditorAfterClosetabs.activate_on_close
workbench.editor.enablePreviewpreview_tabs.enabled
workbench.editor.enablePreviewFromQuickOpenpreview_tabs.enable_preview_from_file_finder
workbench.editor.enablePreviewFromCodeNavigationpreview_tabs.enable_preview_from_code_navigation
workbench.editor.editorActionsLocationtab_bar.show_tab_bar_buttons
workbench.editor.limit.enabled / valuemax_tabs
workbench.editor.restoreViewStaterestore_on_file_reopen
workbench.statusBar.visiblestatus_bar.show

Project Panel (File Explorer)

VS Code SettingGram Setting
explorer.compactFoldersproject_panel.auto_fold_dirs
explorer.autoRevealproject_panel.auto_reveal_entries
explorer.excludeGitIgnoreproject_panel.hide_gitignore
problems.decorations.enabledproject_panel.show_diagnostics
explorer.decorations.badgesproject_panel.git_status

Git

VS Code SettingGram Setting
git.enabledgit_panel.button
git.defaultBranchNamegit_panel.fallback_branch_name
git.decorations.enabledgit.inline_blame, project_panel.git_status
git.blame.editorDecoration.enabledgit.inline_blame.enabled

Window & Behavior

VS Code SettingGram Setting
window.confirmBeforeCloseconfirm_quit
window.nativeTabsuse_system_window_tabs
window.closeWhenEmptywhen_closing_with_no_tabs
accessibility.dimUnfocused.enabled / opacityactive_pane_modifiers.inactive_opacity

Other

VS Code SettingGram Setting
http.proxyproxy
npm.packageManagernode.npm_path
outline.iconsoutline_panel.file_icons, outline_panel.folder_icons

Gram doesn’t import extensions or keybindings, but this is the fastest way to get a familiar feel while trying something new. If you skip that step during setup, you can still import settings manually later via the command palette:

Cmd+Shift+P → Gram: Import VS Code Settings

Set Up Editor Preferences

You can also configure settings manually in the Settings Editor.

To edit your settings:

  1. Cmd+, to open the Settings Editor.
  2. Run gram: open settings in the Command Palette.

Here’s how common VS Code settings translate:

VS CodeGramNotes
editor.fontFamilybuffer_font_familyGram uses Fira Code by default
editor.fontSizebuffer_font_sizeSet in pixels
editor.tabSizetab_sizeCan override per language
editor.insertSpacesinsert_spacesBoolean
editor.formatOnSaveformat_on_saveWorks with formatter enabled
editor.wordWrapsoft_wrapSupports optional wrap column

Gram also supports per-project settings. You can find these in the Settings Editor as well.

Open or Create a Project

After setup, press Cmd+O (Ctrl+O on Linux) to open a folder. This becomes your workspace in Gram. There’s no support for multi-root workspaces or .code-workspace files like in VS Code. Gram keeps it simple: one folder, one workspace.

To start a new project, create a directory using your terminal or file manager, then open it in Gram. The editor will treat that folder as the root of your project.

You can also launch Gram from the terminal inside any folder with: gram .

Once inside a project, use Cmd+P to jump between files quickly. Cmd+Shift+P (Ctrl+Shift+P on Linux) opens the command palette for running actions / tasks, toggling settings, or running other actions.

Open buffers appear as tabs across the top. The sidebar shows your file tree and Git status. Collapse it with Cmd+B for a distraction-free view.

Differences in Keybindings

If you chose the VS Code keymap during onboarding, you’re likely good to go, and most of your shortcuts should already feel familiar. Here’s a quick reference guide for how our keybindings compare to what you’re used to coming from VS Code.

Common Shared Keybindings (Gram <> VS Code)

ActionShortcut
Find filesCmd + P
Run a commandCmd + Shift + P
Search text (project-wide)Cmd + Shift + F
Find symbols (project-wide)Cmd + T
Find symbols (file-wide)Cmd + Shift + O
Toggle left dockCmd + B
Toggle bottom dockCmd + J
Open terminalCtrl + ~
Open file tree explorerCmd + Shift + E
Close current bufferCmd + W
Close whole projectCmd + Shift + W
Refactor: rename symbolF2
Change themeCmd + K, Cmd + T
Wrap textOpt + Z
Navigate open tabsCmd + Opt + Arrow
Syntactic fold / unfoldCmd + Opt + { or }

Different Keybindings (Gram <> VS Code)

ActionVS CodeGram
Open recent projectCtrl + RCmd + Opt + O
Move lines up/downOpt + Up/DownCmd + Ctrl + Up/Down
Split panesCmd + \Cmd + K, Arrow Keys
Expand SelectionShift + Alt + RightOpt + Up

Unique to Gram

ActionShortcutNotes
Toggle right dockCmd + R or Cmd + Alt + B
Syntactic selectionOpt + Up/DownSelects code by structure (e.g., inside braces).

How to Customize Keybindings

To edit your keybindings:

  • Open the command palette (Cmd+Shift+P)
  • Run Gram: Open Keymap Editor

This opens a list of all available bindings. You can override individual shortcuts, remove conflicts, or build a layout that works better for your setup.

Gram also supports chords (multi-key sequences) like Cmd+K Cmd+C, like VS Code does.

Differences in User Interfaces

No Workspace

VS Code uses a dedicated Workspace concept, with multi-root folders, .code-workspace files, and a clear distinction between “a window” and “a workspace.” Gram simplifies this model.

In Gram:

  • There is no workspace file format. Opening a folder is your project context.

  • Gram does not support multi-root workspaces. You can only open one folder at a time in a window.

  • Most project-level behavior is scoped to the folder you open. Search, Git integration, tasks, and environment detection all treat the opened directory as the project root.

  • Per-project settings are optional. You can add a .gram/settings.json file inside a project to override global settings, but Gram does not use .code-workspace files and won’t import them.

  • You can start from a single file or an empty window. Gram doesn’t require you to open a folder to begin editing.

The result is a simpler model: Open a folder → work inside that folder → no additional workspace layer.

In VS Code, the standard entry point is opening a folder. From there, the left-hand sidebar is central to your navigation. Gram takes a different approach:

  • You can still open folders, but you don’t need to. Opening a single file or even starting with an empty workspace is valid.
  • The Command Palette (Cmd+Shift+P) and File Finder (Cmd+P) are your primary navigation tools. The File Finder searches across the entire workspace instantly; files, symbols and commands.
  • Instead of a persistent sidebar, Gram encourages you to:
    • Fuzzy-find files by name (Cmd+P)
    • Jump directly to symbols (Cmd+Shift+O)
    • Use split panes and tabs for context, rather than keeping a large file tree open (though you can do this with the Project Panel if you prefer).

The UI is intentionally minimal. Panels slide in only when needed, then get out of your way. The focus is on flowing between code instead of managing panes.

Extensions vs. Marketplace

Gram does not offer as many extensions as VS Code. The available extensions are focused on language support, themes, syntax highlighting, and other core editing enhancements.

However there are several features that typically require extensions in VS Code which we built directly into Gram:

  • Vim modal editing mode (as well as a Helix mode)
  • Built-in terminal panel
  • Project-wide fuzzy search
  • Task runner with JSON config
  • Inline diagnostics and code actions via LSP

You won’t find one-to-one replacements for every VS Code extension, especially if you rely on tools for DevOps, containers, or test runners. Gram’s extension ecosystem is still growing, and the catalog is smaller by design.

Advanced Config and Productivity Tweaks

Gram exposes advanced settings for power users who want to fine-tune their environment.

Here are a few useful tweaks:

Format on Save:

"format_on_save": "on"

Enable direnv support:

"load_direnv": "shell_hook"

Custom Tasks: Define build or run commands in your tasks.jsonc (accessed via command palette: gram: open tasks):

[
  {
    "label": "build",
    "command": "cargo build"
  }
]

Bring over custom snippets Copy your VS Code snippet JSON directly into Gram’s snippets folder (gram: configure snippets).