Skip to content

下载地址

设置

注意可能需要手动下载主题

jsonc
// 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
{
  "ui_font_size": 16,
  "buffer_font_size": 16,
  "theme": {
    "mode": "system",
    "light": "KTRZ Monokai",
    "dark": "KTRZ Monokai"
  },

  // font
  "buffer_font_family": "JetBrainsMono Nerd Font Mono",
  "ui_font_family": "JetBrainsMono Nerd Font Mono",

  // auto save
  "autosave": "on_focus_change",

  // vim
  "vim_mode": true,
  "vim": {
    "use_system_clipboard": "always",
    "use_multiline_find": true,
    "use_smartcase_find": true,
    "custom_digraphs": {}
  }
}

快捷键绑定

jsonc
// 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.
[
  {
    "bindings": {
      "ctrl-j": "menu::SelectNext",
      "ctrl-k": "menu::SelectPrev"
    }
  },
  {
    "context": "VimControl && !menu",
    "bindings": {
      "ctrl-p": "file_finder::Toggle",
      "space o u": "editor::OpenUrl",
      "space f s": "workspace::Save",
      "$": ["workspace::SendKeystrokes", "end h"],

      // bufferline
      "shift-l": "pane::ActivateNextItem",
      "shift-h": "pane::ActivatePrevItem",
      "space b d": ["pane::CloseActiveItem", { "saveIntent": "saveAll" }],
      "space b o": "workspace::CloseInactiveTabsAndPanes",

      // scroll
      "ctrl-d": ["workspace::SendKeystrokes", "5 j z z"],
      "ctrl-u": ["workspace::SendKeystrokes", "5 k z z"],

      // toggle file expleror
      "ctrl-e": "workspace::ToggleLeftDock",

      // toggle terminal in editor
      "ctrl-x": "workspace::ToggleBottomDock"
    }
  },
  {
    // toggle terminal in terminal
    "context": "Workspace",
    "bindings": {
      "ctrl-x": "workspace::ToggleBottomDock"
    }
  },
  {
    "context": "VimControl && vim_mode == normal",
    "bindings": {
      // for normal mode comment
      "ctrl-\\": ["workspace::SendKeystrokes", "g c c"],

      // open project list
      "space p l": "projects::OpenRecent"
    }
  },
  {
    "context": "VimControl && vim_mode == visual",
    "bindings": {
      // for visual mode comment
      "ctrl-\\": ["workspace::SendKeystrokes", "g c"]
    }
  },
  {
    // select code suggestion
    "context": "Editor && vim_mode == insert && (showing_code_actions || showing_completions)",
    "bindings": {
      "ctrl-k": "editor::ContextMenuPrev",
      "ctrl-j": "editor::ContextMenuNext"
    }
  },
  {
    // file explorer
    "context": "ProjectPanel && not_editing",
    "bindings": {
      // toggle file expleror
      "ctrl-e": "workspace::ToggleLeftDock",
      ":": "command_palette::Toggle",
      "a": "project_panel::NewFile",
      "shift a": "project_panel::NewDirectory",
      "x": "project_panel::Delete",
      "r": "project_panel::Rename",
      "ctrl-f": "project_panel::RevealInFileManager"
    }
  }
]

Released under the MIT License.

Layout Switch

Adjust the layout style of VitePress to adapt to different reading needs and screens.

Expand all
The sidebar and content area occupy the entire width of the screen.
Expand sidebar with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Expand all with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Original width
The original layout width of VitePress

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.

Spotlight

Highlight the line where the mouse is currently hovering in the content to optimize for users who may have reading and focusing difficulties.

ONOn
Turn on Spotlight.
OFFOff
Turn off Spotlight.