default.json

  1{
  2    // The name of the Zed theme to use for the UI
  3    "theme": "cave-dark",
  4
  5    // The name of a font to use for rendering text in the editor
  6    "buffer_font_family": "Zed Mono",
  7
  8    // The default font size for text in the editor
  9    "buffer_font_size": 15,
 10
 11    // Whether to enable vim modes and key bindings
 12    "vim_mode": false,
 13
 14    // Whether to show the informational hover box when moving the mouse
 15    // over symbols in the editor.
 16    "hover_popover_enabled": true,
 17
 18    // Whether new projects should start out 'online'. Online projects
 19    // appear in the contacts panel under your name, so that your contacts
 20    // can see which projects you are working on. Regardless of this
 21    // setting, projects keep their last online status when you reopen them.
 22    "projects_online_by_default": true,
 23
 24    // Whether to use language servers to provide code intelligence.
 25    "enable_language_server": true,
 26
 27    // When to automatically save edited buffers. This setting can
 28    // take four values.
 29    //
 30    // 1. Never automatically save:
 31    //     "autosave": "off",
 32    // 2. Save when changing focus away from the Zed window:
 33    //     "autosave": "on_window_change",
 34    // 3. Save when changing focus away from a specific buffer:
 35    //     "autosave": "on_focus_change",
 36    // 4. Save when idle for a certain amount of time:
 37    //     "autosave": { "after_delay": {"milliseconds": 500} },
 38    "autosave": "off",
 39
 40    // How to auto-format modified buffers when saving them. This
 41    // setting can take three values:
 42    //
 43    // 1. Don't format code
 44    //     "format_on_save": "off"
 45    // 2. Format code using the current language server:
 46    //     "format_on_save": "language_server"
 47    // 3. Format code using an external command:
 48    //     "format_on_save": {
 49    //       "external": {
 50    //         "command": "sed",
 51    //         "arguments": ["-e", "s/ *$//"]
 52    //       }
 53    //     },
 54    "format_on_save": "language_server",
 55
 56    // How to soft-wrap long lines of text. This setting can take
 57    // three values:
 58    //
 59    // 1. Do not soft wrap.
 60    //      "soft_wrap": "none",
 61    // 2. Soft wrap lines that overflow the editor:
 62    //      "soft_wrap": "editor_width",
 63    // 2. Soft wrap lines at the preferred line length
 64    //      "soft_wrap": "preferred_line_length",
 65    "soft_wrap": "none",
 66
 67    // The column at which to soft-wrap lines, for buffers where soft-wrap
 68    // is enabled.
 69    "preferred_line_length": 80,
 70
 71    // Whether to indent lines using tab characters, as opposed to multiple
 72    // spaces.
 73    "hard_tabs": false,
 74
 75    // How many columns a tab should occupy.
 76    "tab_size": 4,
 77
 78    // Different settings for specific languages.
 79    "languages": {
 80        "Plain Text": {
 81            "soft_wrap": "preferred_line_length"
 82        },
 83        "C": {
 84            "tab_size": 2
 85        },
 86        "C++": {
 87            "tab_size": 2
 88        },
 89        "Go": {
 90            "tab_size": 4,
 91            "hard_tabs": true
 92        },
 93        "Markdown": {
 94            "soft_wrap": "preferred_line_length"
 95        },
 96        "Rust": {
 97            "tab_size": 4
 98        },
 99        "JavaScript": {
100            "tab_size": 2
101        },
102        "TypeScript": {
103            "tab_size": 2
104        },
105        "TSX": {
106            "tab_size": 2
107        }
108    }
109}