VS Code in the Terminal

dsr121 pts0 comments

GitHub - zenbu-labs/terminal-code: VS Code in the terminal · GitHub

/" data-turbo-transient="true" />

Skip to content

Search/

Sign in<br>Sign upAppearance settings

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

Uh oh!

There was an error while loading. Please reload this page.

zenbu-labs

terminal-code

Public

Notifications<br>You must be signed in to change notification settings

Fork<br>17

Star<br>463

main

BranchesTags

Go to file

CodeOpen more actions menu

Latest commit

History<br>50 Commits<br>50 Commits

Folders and files<br>NameNameLast commit message<br>Last commit date<br>.github/workflows

.github/workflows

assets

assets

herdr-plugin

herdr-plugin

release-worker

release-worker

scripts

scripts

src

src

test

test

web

web

.gitignore

.gitignore

LICENSE

LICENSE

README.md

README.md

package-lock.json

package-lock.json

package.json

package.json

tsconfig.json

tsconfig.json

vite.config.mts

vite.config.mts

View all files

Repository files navigation

terminal-code

VS Code inside your terminal

todemp4.mp4

Install (macOS & Linux):

curl -fsSl https://tode.sh/install | bash

Usage

tode Open the folder in the current working directory<br>tode Open the specified folder<br>tode Open the specified file

Options:<br>-g, --goto Open a file at a line and column<br>-a, --add Add a folder to the active workspace<br>-n, --new-window Open a new pane even for a file<br>-w, --wait Wait until the file is closed again<br>-d, --diff Compare two files<br>-r, --reuse-window Open folder in this window rather than a new pane<br>--install-extension Install an extension by id or vsix path<br>--uninstall-extension Remove an extension<br>--list-extensions List installed extensions<br>--split Open in a new pane: right, left, down, up<br>--size The % a new split will take up (0.2 to 0.95)<br>--timing Report how long each stage of this open took<br>--review Open on the source control panel

Commands, each as the first argument:<br>--shortcut-setup Resolve shortcut conflicts between terminal-code and the current terminal<br>--timing Profile terminal-code launch<br>--import [editor] Bring settings, keybindings, snippets and extensions<br>over from vscode compatible editors<br>--theme [file] Set editor theme<br>--skill An agent skill to assist with modifying terminal-code<br>--upgrade [--check] Upgrade terminal-code to the latest version<br>--shutdown Stop all terminal-code activities<br>--uninstall [--yes] Remove all terminal-code data from this machine<br>">Usage: tode [path...] [options]<br>tode --

tode Open the folder in the current working directory<br>tode Open the specified folder<br>tode Open the specified file

Options:<br>-g, --goto Open a file at a line and column<br>-a, --add Add a folder to the active workspace<br>-n, --new-window Open a new pane even for a file<br>-w, --wait Wait until the file is closed again<br>-d, --diff Compare two files<br>-r, --reuse-window Open folder in this window rather than a new pane<br>--install-extension Install an extension by id or vsix path<br>--uninstall-extension Remove an extension<br>--list-extensions List installed extensions<br>--split Open in a new pane: right, left, down, up<br>--size The % a new split will take up (0.2 to 0.95)<br>--timing Report how long each stage of this open took<br>--review Open on the source control panel

Commands, each as the first argument:<br>--shortcut-setup Resolve shortcut conflicts between terminal-code and the current terminal<br>--timing Profile terminal-code launch<br>--import [editor] Bring settings, keybindings, snippets and extensions<br>over from vscode compatible editors<br>--theme [file] Set editor theme<br>--skill An agent skill to assist with modifying terminal-code<br>--upgrade [--check] Upgrade terminal-code to the latest version<br>--shutdown Stop all terminal-code activities<br>--uninstall [--yes] Remove all terminal-code data from this machine

Shortcuts

Your terminal and terminal-code will likely conflict on important shortcuts, meaning sometimes terminal-code will never even receive your key press. To resolve<br>shortcut conflicts you can run tode --shortcut-setup, and you will be placed into an interactive wizard that lets you change terminal or terminal-code shortcuts<br>so they no longer conflict

How does it work?

terminal-code combines terminal-browser (a browser in the terminal) and code-server (VS Code in the browser) to bring VS Code to the terminal. You should look into these projects for more details!

Windows

terminal-code depends on a modern terminal feature (the kitty graphics protocol) that not many terminals on Windows support. There are projects attempting to bring this capability to terminals on Windows that you can try at your own risk:

https://github.com/ibuildthecloud/winterm-ghostty

Even with a compatible terminal, terminal-code does not have an official windows build. But, it's possible to install the linux version of terminal-code...

terminal code open file tode window

Related Articles