Skip to content

Instantly share code, notes, and snippets.

@AlexVipond
Last active September 10, 2025 16:02
Show Gist options
  • Save AlexVipond/a19edce128631eb79ebbb9caab368c1d to your computer and use it in GitHub Desktop.
Save AlexVipond/a19edce128631eb79ebbb9caab368c1d to your computer and use it in GitHub Desktop.
Zed settings
// 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": {
"cmd-b": null,
"cmd-r": null,
"cmd-j": null,
"cmd-k cmd-,": "zed::OpenKeymap",
"cmd-k cmd-b": "workspace::ToggleRightDock",
"cmd-k cmd-j": "workspace::ToggleBottomDock",
"cmd-k cmd-l": "workspace::ToggleLeftDock",
"cmd-k cmd-c": "workspace::ToggleCenteredLayout",
"cmd-k cmd-f": "workspace::NewSearch",
"cmd-k cmd-x": "zed::Extensions",
"cmd-k cmd-.": "agent::ToggleFocus",
"cmd-k cmd-e": "project_panel::ToggleFocus",
"cmd-k cmd-o": "outline_panel::ToggleFocus",
"cmd-t": "file_finder::Toggle",
"shift-cmd-s": "workspace::SaveWithoutFormat",
"cmd-k cmd-[": "pane::GoBack",
"cmd-k cmd-]": "pane::GoForward",
"alt-z": "editor::ToggleSoftWrap"
}
},
{
"context": "ProjectPanel",
"bindings": {
"cmd-k cmd-e": "workspace::ToggleRightDock"
}
},
{
"context": "AgentPanel",
"bindings": {
"cmd-k cmd-.": "workspace::ToggleRightDock"
}
},
{
"context": "OutlinePanel",
"bindings": {
"cmd-k cmd-o": "workspace::ToggleRightDock"
}
},
{
"context": "Editor",
"bindings": {
"cmd-b": null,
"cmd-r": null,
"cmd-j": null,
"cmd-l": null,
"cmd-\\": "editor::ToggleFold",
"cmd-k cmd-b": "workspace::ToggleRightDock",
"cmd-k cmd-j": "workspace::ToggleBottomDock",
"cmd-k cmd-l": "workspace::ToggleLeftDock",
"cmd-y": "editor::Redo",
"cmd-k cmd-[": "pane::GoBack",
"cmd-k cmd-]": "pane::GoForward"
}
},
{
"context": "Editor && editor_agent_diff",
"use_key_equivalents": true,
"bindings": {
"cmd-y": null,
"cmd-n": null,
"cmd-. cmd-.": "agent::Keep",
"cmd-. cmd-/": "agent::Reject",
"cmd-enter": "agent::KeepAll",
"cmd-esc": "agent::RejectAll"
}
}
]
// 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)
{
"preview_tabs": {
"enabled": false
},
"file_types": {
"tailwindcss": [
"*.css"
]
},
"show_whitespaces": "selection",
"indent_guides": {
"enabled": false
},
"tab_size": 2,
"telemetry": {
"metrics": false,
"diagnostics": false
},
"git": {
"inline_blame": {
"enabled": false
}
},
"scroll_beyond_last_line": "off",
"ui_font_size": 14,
"theme": {
"mode": "system",
"light": "Rosé Pine Dawn",
"dark": "Rosé Pine"
},
"base_keymap": "VSCode",
"buffer_font_size": 14,
"project_panel": {
"button": false,
"auto_reveal_entries": false,
"dock": "right",
"file_icons": false,
"folder_icons": false,
"scrollbar": {
"show": "never"
},
"indent_guides": {
"show": "never"
},
"hide_root": true
},
"outline_panel": {
"button": false,
"dock": "right",
"indent_guides": {
"show": "never"
}
},
"agent": {
"button": false,
"dock": "right"
},
"debugger": {
"button": false
},
"notification_panel": {
"button": false
},
"collaboration_panel": {
"button": false,
"dock": "right"
},
"chat_panel": {
"button": "never",
"dock": "right"
},
"git_panel": {
"button": false,
"dock": "right",
"status_style": "icon", // TODO
"scrollbar": {
"show": "never"
}
},
"diagnostics": {
"button": false
},
"languages": {
"TypeScript": {
"code_actions_on_format": {
"source.fixAll.eslint": true
},
"formatter": {
"external": {
"command": "eslint",
"arguments": [
"--fix",
"{buffer_path}"
]
}
}
},
"Vue.js": {
"code_actions_on_format": {
"source.fixAll.eslint": true
},
"formatter": {
"external": {
"command": "eslint",
"arguments": [
"--fix",
"{buffer_path}"
]
}
}
},
"PHP": {
"format_on_save": "off",
"tab_size": 4
}
},
"prettier": {
"allowed": false
},
"multi_cursor_modifier": "cmd_or_ctrl",
"current_line_highlight": "none",
"always_treat_brackets_as_autoclosed": true,
"soft_wrap": "editor_width",
"expand_excerpt_lines": 7,
"calls": {
"mute_on_join": true
},
"toolbar": {
"breadcrumbs": false,
"quick_actions": false
},
"title_bar": {
"show_user_picture": false
},
"gutter": {
"line_numbers": false
},
"search": {
"button": false,
"case_sensitive": true,
"regex": true
},
"seed_search_query_from_cursor": "never",
"tab_bar": {
"show_nav_history_buttons": false,
"show_tab_bar_buttons": false
},
"tabs": {
"git_status": true,
"show_close_button": "hidden",
"activate_on_close": "left_neighbour",
"file_icons": true,
"show_diagnostics": "all"
},
"file_finder": {
"file_icons": false,
"modal_max_width": "large"
},
"status_bar": {
"active_language_button": false,
"cursor_position_button": false
},
"unstable.ui_density": "compact"
}
{
// Each snippet must have a name and body, but the prefix and description are optional.
// The prefix is used to trigger the snippet, but when omitted then the name is used.
// Use placeholders like $1, $2 or ${1:defaultValue} to define tab stops.
// The $0 determines the final cursor position.
// Placeholders with the same value are linked.
"console.log": {
"prefix": "conl",
"body": ["console.log($0)"],
},
"console.trace": {
"prefix": "cont",
"body": ["console.trace($0)"],
},
"debugger": {
"prefix": "deb",
"body": ["debugger"],
},
"ts expect error": {
"prefix": "tse",
"body": ["// @ts-expect-error"]
},
"export default named function": {
"prefix": "edfn",
"body": [
"export default function $1 ($2) {",
"",
"}",
],
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment