A code editor, written in Go v1.3.1

The editor you know. Without the browser inside.

Emetos reads your settings.json, your keys, your themes and your snippets the way VS Code does. Git, a debugger, tests, a terminal, containers, databases and an HTTP client are inside one Go binary. No Electron, no Node.js, no cgo.

Install it GitHub

go install -tags glutter_release github.com/rm4n0s/emetos/cmd/emetos@latest
The Source Control view with staged and changed files, a commit message, the graph of commits and a diff A Go program stopped at a breakpoint, with the variables, the call stack and the debug console The Test Explorer with passed and failed tests, coverage in the editor and the message of a failure Emetos with a Go file open and the hover of a function, with its signature and documentation Two terminals side by side in the panel of Emetos The Containers view with Compose projects, images and the logs of a container in the panel A SQL query in an editor and its rows in the Query Results panel The HTTP Client with a POST request, its JSON body and the response under it

VS Code’s Source Control, with the graph of commits under it and the diff of a change beside it.

A Go program stopped at a breakpoint, with its variables, call stack and the values in the editor.

The Test Explorer, the lines that the tests covered, and the message of the test that failed.

Hover, completion, go to definition and rename come from the language servers you already have.

A terminal emulator written in Go. It is not xterm.js, and there is no web view under it.

Docker and Podman, with the logs of a container in the panel.

A query and its rows. The drivers of five SQL engines are part of the program.

Requests in readable files of your project, with environments and the response under them.

260 ms

from the start of the program to the first frame of its window, with a GPU

184 MB

of memory with a file of 10,000 lines open

0 frames

are drawn while its window does not have the focus, and 0.00% of a core is used

5×

faster than grep -rF over 20,000 files, with a search engine of its own

  • One binary

    go install makes one program of about 90 MB that you can copy anywhere. There is no Electron and no Node.js inside it, and no C compiler is needed to build it.

  • Your VS Code habits

    Ctrl+P, Ctrl+Shift+P, Ctrl+D, F12 and F2 do what your fingers expect. The settings, the command ids and the keyboard shortcuts for Linux have VS Code’s names.

  • Drawn on the GPU

    The interface is built on Glutter and drawn with Vulkan or OpenGL ES. There is no web view anywhere, also not in the terminal.

Bring your VS Code with you

A setting, a key, a color theme, a grammar or a snippet file means in Emetos what it means in VS Code. Copy your files, and the editor looks and answers the way you left it.

  • settings.json and keybindings.json in VS Code’s format. The settings editor keeps your comments when it writes them.
  • The six default color themes of VS Code, and your own as VS Code’s JSON or .tmTheme
  • TextMate grammars, and snippets in VS Code’s syntax
  • launch.json in VS Code’s format for the debugger
{
  "workbench.colorTheme": "Dark Modern",
  "editor.fontFamily": "JetBrains Mono",
  "editor.fontSize": 14,
  "editor.minimap.enabled": true,
  "editor.formatOnSave": true,
  "files.autoSave": "afterDelay",
  "terminal.integrated.defaultProfile.linux": "zsh",
  "go.goplsPath": "/home/me/go/bin/gopls"
}

Everything you open VS Code for

These are not plans. Each one is built, has its tests, and is in the release you install.

Language intelligence

Completion, hover and rename, from the servers you already use

Emetos speaks LSP 3.17. It finds gopls, rust-analyzer, clangd, Pyright, typescript-language-server, Eclipse JDT LS and csharp-ls where you installed them, and it never installs one itself.

  • Diagnostics as squiggles and in the Problems panel
  • Go to Definition, the peek view, and Find All References in a view of its own
  • Rename across files with a preview, code actions, and format on save
  • The Outline, breadcrumbs, sticky scroll, inlay hints and code lens
The hover of http.ListenAndServe in a Go file, from gopls

Git

Source Control, with the graph

Stage, commit, branch, merge, rebase, stash and sync without leaving the window. Passwords and passphrases that git asks for open in the window, also when you type git push in the terminal.

  • The diff editor, and many files in one scrolling diff
  • Stripes in the gutter for changed lines, with a peek that stages or reverts one change
  • The graph of commits, the timeline of a file, and blame after the line of the cursor
  • Worktrees, cherry-pick, revert, and clone
The Source Control view with a commit message, staged changes, the graph and a diff

Merge conflicts

A merge editor with three sides

Incoming on the left, current on the right, the result under them. Accept one side, both, or type the result yourself. git can open it too, with --merge and --wait.

The merge editor with the incoming and current changes above and the result below

Run and Debug

Breakpoints in five languages

Press F5. The debug toolbar, Variables, Watch, the Call Stack and the Debug Console work over the Debug Adapter Protocol, as in VS Code.

  • Go with Delve, Python with debugpy
  • C, C++ and Rust with gdb or lldb-dap
  • JavaScript and TypeScript with js-debug
  • The values of the variables after their lines while the program is stopped
A Go program stopped at a breakpoint in Emetos

Testing

Run one test, or all of them, and see what they covered

The Test Explorer lists packages, files, tests and subtests. A failure shows its message where it happened, and coverage colors the lines.

  • Go with go test, Python with pytest and unittest
  • Rust with cargo test, C and C++ with CTest
  • JavaScript and TypeScript with Node’s test runner, Jest and Vitest
The Test Explorer, coverage in two editors and the peek of a failed test

Terminal

A real terminal, not a web page of one

The emulator is written in Go, and its grid is drawn from an atlas of glyphs with two draw calls. cat of a file of 100 MB takes about two thirds of a second.

  • Splits, a list of tabs, and a terminal as a tab beside your files
  • Find in the scrollback, and file names and web addresses that open with Ctrl+click
  • Ctrl+Space lists commands, their options, files and your history
  • The names, folders and last lines of your terminals come back at the next start
Two terminals side by side in the panel

One window

Every folder is a tab

Emetos has one window. Each folder you open is a workspace tab at the top of it, and the tabs you do not look at keep running. Close the window and it hides in the tray; start it again and everything is where you left it.

Three workspace tabs in the strip at the top of the window

And the editor itself

The part you use every minute was built first, and against VS Code’s behavior.

  • Multiple cursors

    Alt+Click, Ctrl+D for the next occurrence, column selection, and undo of the cursors.

  • Search in all files

    VS Code’s Search view over an engine written in Go. It honors your .gitignore and replaces in one undo step.

  • Editor groups

    Split in any direction, drag tabs between groups, and put a terminal in a group.

  • Large files

    A file of 200 MB and 4.6 million lines opens in a little over a second.

  • Hot exit

    Unsaved changes, also of files with no name, come back after a restart or a crash.

  • Snippets and Emmet

    Your snippet files in VS Code’s syntax, and Emmet abbreviations for HTML and CSS.

  • Markdown preview

    A Preview tab inside a Markdown file, or the preview to the side.

  • A tutor

    emetos --tutor opens eleven lessons that you do inside the editor, like vimtutor.

Measured, not promised

Every number has a method and a script that repeats it. The targets that were missed are written down beside the ones that were met.

WhatMeasured
Start of the program to the first frame of the window260 ms
Typing in a file of 10,000 lines: the work of the UI thread for a frame2.3 ms
Idle, with the cursor blinking0.47% of a core
Idle, when another window has the focus0 frames, 0.00% of a core
Memory with a file of 10,000 lines open184 MB
A search in 20,000 files, 500 MB in all57 ms (grep -rF: 310 ms)
cat of a file of 100 MB in the terminal0.65 s
A file of 200 MB, to the first frame with its text1.3 s

On an AMD Ryzen AI Max+ 395 with a Radeon 8060S and Fedora 44. The last two rows were measured without the GPU, with a software renderer. The method and every number are in docs/PERFORMANCE.md.

Built on Glutter

Every pixel of Emetos is drawn by my own GUI toolkit.

What Emetos does not do

Better to read it here than to find it out.

  • VS Code’s extensions do not run in Emetos, and there is no marketplace. Its extensions are Go packages that are compiled into the program.
  • It does not read .vscode/. The settings and the launch.json of a folder are in .emetos/.
  • It installs no language server and no debugger. It uses the ones you installed, and says how to get one that is missing.
  • Not built: VS Code’s tasks.json, remote development over SSH and in containers, notebooks, multi-root workspaces and settings sync.

Under the hood#

Emetos follows VS Code where VS Code has the behavior, so a VS Code user finds their way: the same settings, command ids, color themes, TextMate grammars and snippet files, the same formats of settings.json and keybindings.json, and VS Code’s keyboard shortcuts for Linux.

Language features (completion, hover, diagnostics, go to definition, rename and more) come from language servers, so the editor itself does not depend on a language.

Emetos has its own extensions. They are Go packages compiled into the program, not VS Code extensions. To add one, you add its folder and one line to the list of extensions, and build Emetos again. An extension that fails is switched off for that tab, and the rest of Emetos goes on.

Its interface is built on Glutter. The system libraries are called without cgo, so CGO_ENABLED=0 go build makes the same program.

Kind
Application
Language
Go
Runs on
Linux, macOS
License
MIT
Version
v1.3.1
The mascot of Emetos: a teal cat that coughs up the orange hairball of the icon

Start with one command

You need Go 1.27 or newer and git. There is no C code in Emetos, so you need no C compiler and no make.

Source on GitHub

# Install the last release
$ go install -tags glutter_release github.com/rm4n0s/emetos/cmd/emetos@latest
# Open a folder
$ emetos .
# Learn the editor inside the editor
$ emetos --tutor
# Put it in your application menu
$ emetos --install-launcher