时间轴
时间轴
2025-10-28
init
本文介绍了Zed编辑器Windows版本的使用体验,指出其在资源占用和流畅度上优于VSCode且原生支持WSL与SSH远程开发,但也存在Emacs keymap支持不完善和Git可视化体验较差的问题,并在此基础上分享了包括主题、字体及配置文件在内的具体个性化设置方法。
Zed编辑器也是出Windows版本了,体验了一下确实比VS Code占用资源小且更流畅,只能说随便一个编译型语言都能吊打js,更不用说Rust了,而且这个编辑器更倾向于用GPU,因此CPU占用率也相对比较低。令人惊喜的是原生支持WSL和SSH远程开发,但是对Emacs的keymap支持还在beta阶段而且git的可视化做的巨差,折腾了一下,下面是我的配置。
安装直接从官网下载:
使用了OneDark主题和Fira Code字体,前者需要下载这个插件,后者需要在Windows安装这个字体。
settings.json
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 | // Zed settings//// For information on how to configure Zed, see the Zed// documentation: https://zed.dev/docs/configuring-zed//// To see all of Zed's default settings without changing your// custom settings, run `zed: open default settings` from the// command palette (cmd-shift-p / ctrl-shift-p){ "terminal": { "shell": { "program": "powershell.exe" } }, "icon_theme": "Catppuccin Frappé", "project_panel": { "dock": "left" }, "vim_mode": false, "buffer_font_family": "Fira Code", "ui_font_features": { "calt": true }, "buffer_font_features": { "calt": true }, "languages": { "Rust": { "inlay_hints": { "enabled": true } } }, "diagnostics": { "inline": { "enabled": true } }, "disable_ai": true, "confirm_quit": true, "autosave": { "after_delay": { "milliseconds": 500 } }, "telemetry": { "diagnostics": false, "metrics": false }, "minimap": { "show": "always", "display_in": "active_editor", "thumb": "always" }, "base_keymap": "Emacs", "ui_font_size": 16, "buffer_font_size": 16.0, "theme": { "mode": "system", "light": "One Dark Pro", "dark": "One Dark" }} |
keymap.json
Emacs 的 keymap 还在beta阶段,体验尚不完善,下面重新映射了一下勉强能用了。
12345678910111213141516171819202122232425262728293031323334353637383940 | // Zed keymap//// For information on binding keys, see the Zed// documentation: https://zed.dev/docs/key-bindings//// To see the default key bindings run `zed: open default keymap`// from the command palette.[ { "context": "Workspace", "bindings": { // "shift shift": "file_finder::Toggle" "ctrl-n": null, "ctrl-p": null, "ctrl-x t": "terminal_panel::Toggle", "F8": "workspace::ToggleLeftDock" } }, { "context": "Editor && vim_mode == insert", "bindings": { // "j k": "vim::NormalBefore" } }, { "context": "Editor", "bindings": { // Emacs Enhanced "alt-w": "editor::Copy", // Alt+W 复制 "ctrl-y": "editor::Paste", // Ctrl+Y 粘贴 "alt-x": "command_palette::Toggle", // Alt+X 打开命令窗口 "ctrl-x f": "editor::Format", // Ctrl+X F 映射为格式化 "ctrl-,": "editor::GoToDefinition", // 跳转到定义 "ctrl-shift-/": "editor::Redo", // 反撤销 "F8": "workspace::ToggleLeftDock", "alt-n": "editor::GoToDiagnostic", "alt-p": "editor::GoToPreviousDiagnostic" } }] |