A fast, native code editor written in Rust, with room for the extensions you already use.
Install · Features · Quick start · Shortcuts · Configuration · Build · Documentation
Graphite draws its whole interface directly on the GPU with wgpu instead of embedding a browser, so it starts quickly and stays light. It keeps what you expect from a modern editor (language servers, Git, a terminal, notebooks, themes) and can run existing .vsix extensions from Open VSX in a separate host process.
Status: 0.1.0, the first release. Graphite is ready to try on Windows and Linux (x86-64), but it is young. Read the known limitations before relying on it for important work.
Download a package from the Releases page and check it against its .sha256 file.
| System | Packages |
|---|---|
| Windows (x86-64) | Setup .exe (per user, no administrator rights) or portable .zip |
| Linux (x86-64) | .deb, .rpm, Arch .pkg.tar.zst, .AppImage or portable .tar.gz |
- The Windows installer is not code-signed yet, so Windows SmartScreen may warn when you run it. Choose More info, then Run anyway, if you trust the download.
- Windows needs up-to-date graphics drivers, and WebView2 for extension webviews.
- The portable packages include the Code OSS host and Node.js that VSIX extensions run on.
Editing
- Multiple cursors, code folding, bracket and indentation tools, line operations and syntax-aware selection.
- Syntax highlighting with tree-sitter, plus TextMate grammars that come with extensions.
- Side-by-side and inline diffs, a three-way merge editor and a multi-file diff.
- Notebooks (
.ipynb) with local kernels, and an interactive window.
Language support
- A generic Language Server Protocol client: completion, hover, go to definition, formatting, refactoring and diagnostics.
- A debugger that talks to debug adapters, with breakpoints, variables and a debug console.
- An integrated terminal on a cross-platform PTY, with shell integration.
Workflow
- Git built in: status, staging, commits, a history graph, branches, stashes and GitHub sign-in.
- Quick open, project search, a command palette, outline and timeline views, and local file history.
- Workspaces with several folders, tasks and edit sessions over SSH.
Extensions and customization
- Native Graphite plugins and VS Code
.vsixextensions from Open VSX, in a separate host process. - Light, dark and high-contrast themes, imported settings, snippets and themes, and file-type icons.
- Chat panels and agents backed by the model provider you configure, with explicit approval for tools.
- Settings sync through a private GitHub Gist or a private repository.
- A complete interface in English and Portuguese (Brazil).
- Open a folder with File > Open Folder (
Ctrl+K,Ctrl+O), or start Graphite from a terminal:graphite <folder> # omit <folder> to open the current directory
- Press
Ctrl+Pto jump to a file andCtrl+Shift+P(orF1) for the command palette. - Open Plugins (
Ctrl+Shift+X) to install a native plugin or an extension from Open VSX. Enable it, trust the workspace and run its commands from the palette. See Installing plugins. - Open Source Control in the activity bar to see changes, stage files and commit. Sign in with GitHub from the profile menu to publish and sync.
The essentials:
| Action | Shortcut |
|---|---|
| Command palette | Ctrl+Shift+P or F1 |
| Quick open | Ctrl+P |
| Save | Ctrl+S |
| Find / replace in document | Ctrl+F / Ctrl+H |
| Search project | Ctrl+Shift+F |
| Plugins | Ctrl+Shift+X |
| Toggle terminal | Ctrl+grave |
| Completion / go to definition | Ctrl+Space / F12 |
More shortcuts
| Action | Input |
|---|---|
| Multiple cursors / next occurrence / all occurrences | Alt+Click / Ctrl+D / Ctrl+Shift+L |
| Select all / extend selection | Ctrl+A / Shift + navigation keys |
| Copy / cut / paste | Ctrl+C / Ctrl+X / Ctrl+V |
| Undo / redo | Ctrl+Z / Ctrl+Y |
| Move / duplicate / delete line | Alt+Up/Down / Shift+Alt+Up/Down / Ctrl+Shift+K |
| Expand / shrink syntax selection | Shift+Alt+Right/Left |
| Convert indentation | Ctrl+Shift+Alt+I |
| Switch / close tab | Ctrl+Tab / Ctrl+W |
| Toggle light/dark theme | Ctrl+Alt+T |
| Import user settings, snippets and themes | Ctrl+Shift+I |
| Hover / next or previous diagnostic | Ctrl+K, Ctrl+I / F8 / Shift+F8 |
| Show diagnostics | Ctrl+Shift+M |
Every command is in the command palette, where you can also see and change its shortcut.
Graphite keeps its settings in %APPDATA%\Graphite on Windows and in $XDG_CONFIG_HOME/Graphite (or ~/.config/Graphite) on Linux. Settings kept elsewhere must be copied there to be used.
- Language servers: user-installed executables, configured in
lsp.json. See Languages and LSP. - Terminal shell: the system shell by default; change it in
terminal.jsonor withGRAPHITE_SHELL. - Language of the interface: detected from the operating system. Override it with
"workbench.language": "pt-BR"insettings.jsonor withGRAPHITE_LANG=pt-BR. See Localization. - Settings sync: turn it on from the profile menu. See User data sync.
You need a recent stable Rust toolchain. On Linux, also install the desktop libraries the build links against (Debian and Ubuntu package names):
sudo apt-get install libxkbcommon-dev libwayland-dev libx11-dev libxcursor-dev libxi-dev \
libxrandr-dev libgtk-3-dev libwebkit2gtk-4.1-dev libsoup-3.0-dev pkg-configcargo run -p graphite-app -- <folder> # run the editor
cargo test --workspace # run the tests
cargo run -p graphite-xtask -- verify # formatting, Clippy, build and tests in one goBuilding explains how to produce the portable package, Testing and the verification matrix describe what is checked, and Releases covers packages and signing.
Project layout
| Crate | Responsibility |
|---|---|
graphite-app |
winit window, file tree and the editor interface |
graphite-text |
Rope-based text buffer, cursors and file I/O |
graphite-render |
wgpu renderer and cosmic-text glyph atlas |
graphite-syntax |
tree-sitter and TextMate syntax highlighting |
graphite-workspace |
Folder model and .gitignore-aware directory listing |
graphite-core-api |
UI-independent command, document and service contracts |
graphite-plugins |
Native plugin manifests, catalogs and VSIX packaging |
graphite-plugin-sdk |
SDK for writing native Graphite plugins |
graphite-extension-host |
Out-of-process extension host protocol |
graphite-auth |
GitHub device-flow sign-in and the stored session |
graphite-chat |
Chat providers, agent sessions and tool approval |
graphite-i18n |
Embedded translation catalogs and runtime lookup |
graphite-xtask |
The repository's verification command |
- English: docs/en
- Português (Brasil): docs/pt-BR
Good places to start: the architecture overview, the roadmap, the known limitations and the security policy.
Graphite is released under the MIT license. The distributions also carry THIRD_PARTY_NOTICES.txt, with the license of every library they include, and the notices of the bundled Code OSS and Node.js runtimes and of the icon font.
