ZL

zenbu-labs/terminal-code

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

2214 stars 质量 67 趋势 44MIT

终端中的VS代码

概览

https://github.com/user-attachments/assets/4ba0d434-896a-4ab3-9c91-5d351dacee08 终端代码结合了终端浏览器(终端中的浏览器)和代码服务器(浏览器中的 VS Code),将 VS Code 带到终端。你可以了解这些项目以获取更多细节! 你的终端和终端代码在重要快捷键上可能会冲突,有时终端代码根本无法接收你的按键。为了解决快捷方式冲突,你可以运行tode --shortcut-setup,然后你会被放入一个交互向导,允许你更改终端或终端代码的快捷方式,使其不再冲突 推荐使用终端代码代替 ssh 的方法是在本地机器上运行 tode --ssh。 另一种选择是直接在你被关进去的机器上运行。

概述(AI 翻译)

终端内的VS代码

https://github.com/user-attachments/assets/4ba0d434-896a-4ab3-9c91-5d351dacee08

安装(macOS 和 Linux):

用途

它是怎么运作的?

终端代码结合了终端浏览器(终端中的浏览器)和代码服务器(浏览器中的 VS Code),将 VS Code 带到终端。你可以了解这些项目以获取更多细节!

捷径

你的终端和终端代码在重要快捷键上可能会冲突,有时终端代码甚至无法接收你的按键。解决 你可以运行tode --shortcut-setup的快捷方式冲突,你会被放入一个交互式向导,允许你更改终端或终端代码快捷方式 所以它们不再冲突

嘘

推荐的使用终端代码而非 ssh 的方法是在本地机器上运行 tode --ssh 。

另一种选择是直接在你入的机器上运行tode。这样可以,但是 要求:

  • 通过网络发送的每一个由VSCODE绘制的帧
  • 所有用户输入在VSCocode反应前都通过网络发送
  • 会遗漏一些额外的优化

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

terminal-code

VS Code inside your terminal

https://github.com/user-attachments/assets/4ba0d434-896a-4ab3-9c91-5d351dacee08

Install (macOS & Linux):

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

Usage

Usage: tode [path...] [options]
       tode --

  tode                  Open the folder in the current working directory
  tode          Open the specified folder
  tode            Open the specified file

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

Commands, each as the first argument:
  --shortcut-setup      Resolve shortcut conflicts between terminal-code and the current terminal
  --timing              Profile terminal-code launch
  --import [editor]     Bring settings, keybindings, snippets and extensions
                        over from vscode compatible editors
  --theme [file]        Set editor theme
  --enable-transparency Make the editor transparent
  --disable-transparency Make the editor opaque again
  --serve [path]        Start code server and print its url
  --skill               An agent skill to assist with modifying terminal-code
  --upgrade [--check]   Upgrade terminal-code to the latest version
  --shutdown            Stop all terminal-code activities
  --uninstall [--yes]   Remove all terminal-code data from this machine

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!

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 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 so they no longer conflict

SSH

The recommended way to use terminal-code over ssh is running tode --ssh on your local machine.

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add zenbu-labs/terminal-code
新手?先看 mcpskill.org 教程 →