```Show HN: terminal-code – 在终端中运行 VS Code```
Show HN: terminal-code – VS Code inside the terminal

原始链接: https://terminal-code.com

``` tode 打开当前文件夹 tode <文件夹> 打开指定文件夹 tode <文件> 打开指定文件 tode --goto <文件:行:列> 在指定行和列打开文件 tode --diff 比较两个文件 tode --split right 在右侧拆分终端窗格中打开 terminal-code tode --review 在源代码管理面板中打开 tode --import 从兼容 vscode 的编辑器中导入设置、快捷键、代码片段和扩展 tode --shortcut-setup 解决 terminal-code 与当前终端之间的快捷键冲突 tode --upgrade 将 terminal-code 升级到最新版本 ```

Hacker News 社区正在讨论一个名为“terminal-code”的项目,该项目利用 kitty 图形协议将 VS Code 引入终端。 社区反应两极分化。一些用户对其相比 VS Code 传统的 RDP 或 X11 远程工作流所带来的性能提升感到兴奋;另一些用户则持怀疑态度,认为这只是将 Electron 嵌入到了终端中,实质上是将 Web 技术资源占用大的“弊端”移植到了命令行环境中。 技术讨论亮点包括: * **实现方式:** 该工具使用 kitty 图形协议来渲染界面,而非传统的文本字符。 * **替代方案:** 批评者认为,VS Code 现有的远程 SSH/容器扩展、基于 Web 的远程访问,或是 Neovim 和 Emacs 等终端原生编辑器效率更高。 * **幽默互动:** 讨论串中出现了开发者之间经典的调侃,包括对“Ed 是标准文本编辑器”这一梗的戏仿。 总而言之,尽管有些人将其视为一种实用的新奇工具或潜在的远程开发性能优化方案,但许多资深开发者认为这是一种不必要的抽象,忽视了更轻量级的终端原生工作流。
相关文章

原文

todeopens the current folder

tode <folder>opens that folder

tode <file>opens that file

tode --goto <f:l:c>opens a file at a line and column

tode --diff <a> <b>compares two files

tode --split rightopens terminal-code in a terminal split pane to the right

tode --reviewopens on the source control panel

tode --importimports settings, keybindings, snippets and extensions from vscode compatible editors

tode --shortcut-setupresolves shortcut conflicts between terminal-code and the current terminal

tode --upgradeupgrades terminal-code to the latest version

联系我们 contact @ memedata.com