时间轴

2025-10-28

init


Zed编辑器也是出Windows版本了,体验了一下确实比Vscode占用资源小且更流畅,只能说随便一个编译型语言都能吊打js,更不用说Rust了,而且这个编辑器更倾向于用GPU,因此CPU占用率也相对比较低。令人惊喜的是原生支持WSL和SSH远程开发,但是对Emacs的keymap支持还在beta阶段而且git的可视化做的巨差,折腾了一下,下面是我的配置。

安装直接从官网下载:

使用了OneDark主题和Fira Code字体,前者需要下载这个插件,后者需要在Windows安装这个字体。

settings.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// 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)
{
"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阶段,做的相当垃圾,下面重新映射了一下勉强能用了。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// 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"
}
}
]