Skip to content

Instantly share code, notes, and snippets.

@ryanwinchester
Last active September 21, 2023 15:09
Show Gist options
  • Save ryanwinchester/1355b782573b27be07aae6bd6945cafb to your computer and use it in GitHub Desktop.
Save ryanwinchester/1355b782573b27be07aae6bd6945cafb to your computer and use it in GitHub Desktop.
Zed Config
[
{
"context": "Editor",
"bindings": {
// -----------------------------------------------------------------------
// VS Code keybindings
// -----------------------------------------------------------------------
// https://code.visualstudio.com/docs/getstarted/keybindings#_basic-editing
//
// In VS Code this moves either the current line or selection up or down.
// It's also indentation-aware.
// `Move Line Down ⌥↓ editor.action.moveLinesDownAction`
// `Move Line Up ⌥↑ editor.action.moveLinesUpAction`
"alt-up": "editor::MoveLineUp",
"alt-down": "editor::MoveLineDown",
// In VS Code you can copy the current line or selection up or down.
// `Copy Line Down ⇧⌥↓ editor.action.copyLinesDownAction`
// `Copy Line Up ⇧⌥↑ editor.action.copyLinesUpAction`
//
// Suggestion: DuplicatesLineUp and DuplicateLinesDown:
// - "alt-shift-up": "editor::DuplicateLineUp",
// - "alt-shift-down": "editor::DuplicateLineDown",
"alt-shift-up": "editor::DuplicateLine",
"alt-shift-down": "editor::DuplicateLine"
}
}
]
// 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 the `open default settings` command
// from the command palette or from `Zed` application menu.
{
"base_keymap": "VSCode",
"theme": "One Dark",
"telemetry": {
"diagnostics": false,
"metrics": false
},
"buffer_font_family": "Berkeley Mono Variable",
"buffer_font_size": 15,
"format_on_save": "off",
"preferred_line_length": 80,
"show_whitespaces": "selection",
"soft_wrap": "editor_width",
"vim_mode": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment