Appearance
Zed
- keymap
zed 可以自定义快捷键, 下面是一个快捷键配置示例
json
// ~/.config/zed/keymap.json
[
{
"bindings": {
"cmd-o": "file_finder::Toggle",
"cmd-/": [
"editor::ToggleComments",
{
"advance_downwards": false
}
]
}
},
{
"context": "Pane",
"bindings": {
"cmd-k right": "pane::SplitRight",
"cmd-\\": "pane::SplitRight"
}
},
{
"context": "Editor",
"bindings": {
"cmd-0": "pane::RevealInProjectPanel",
"shift-enter": "editor::Rename"
}
},
{
"context": "Workspace",
"bindings": {
"cmd-i": "workspace::ToggleBottomDock",
"cmd-r": "projects::OpenRecent"
}
}
]
- config
添加自定义配置, 其中 theme 是主题,可以设置为 VScode Dark Plus, 需要安装自定义主题插件
json
// ~/.config/zed/settings.json
{
"format_on_save": "on",
"languages": {
"JavaScript": {
"format_on_save": "off"
},
"TypeScript": {
"format_on_save": "off"
}
},
"vim": {
// "always": use system clipboard
// "never": don't use system clipboard
// "on_yank": use system clipboard for yank operations
"use_system_clipboard": "never"
},
"project_panel": {
"auto_reveal_entries": false
},
"features": {
"copilot": false
},
"theme": "One Dark",
"base_keymap": "JetBrains",
"vim_mode": true,
"ui_font_size": 16,
"buffer_font_size": 12,
"autosave": "on_focus_change"
}