default.json

   1{
   2  // The name of the Zed theme to use for the UI.
   3  //
   4  // `mode` is one of:
   5  // - "system": Use the theme that corresponds to the system's appearance
   6  // - "light": Use the theme indicated by the "light" field
   7  // - "dark": Use the theme indicated by the "dark" field
   8  "theme": {
   9    "mode": "system",
  10    "light": "One Light",
  11    "dark": "One Dark"
  12  },
  13  // The name of a base set of key bindings to use.
  14  // This setting can take four values, each named after another
  15  // text editor:
  16  //
  17  // 1. "VSCode"
  18  // 2. "Atom"
  19  // 3. "JetBrains"
  20  // 4. "None"
  21  // 5. "SublimeText"
  22  // 6. "TextMate"
  23  "base_keymap": "VSCode",
  24  // Features that can be globally enabled or disabled
  25  "features": {
  26    // Which inline completion provider to use.
  27    "inline_completion_provider": "copilot"
  28  },
  29  // The name of a font to use for rendering text in the editor
  30  "buffer_font_family": "Zed Plex Mono",
  31  // Set the buffer text's font fallbacks, this will be merged with
  32  // the platform's default fallbacks.
  33  "buffer_font_fallbacks": null,
  34  // The OpenType features to enable for text in the editor.
  35  "buffer_font_features": {
  36    // Disable ligatures:
  37    // "calt": false
  38  },
  39  // The default font size for text in the editor
  40  "buffer_font_size": 15,
  41  // The weight of the editor font in standard CSS units from 100 to 900.
  42  "buffer_font_weight": 400,
  43  // Set the buffer's line height.
  44  // May take 3 values:
  45  //  1. Use a line height that's comfortable for reading (1.618)
  46  //         "buffer_line_height": "comfortable"
  47  //  2. Use a standard line height, (1.3)
  48  //         "buffer_line_height": "standard",
  49  //  3. Use a custom line height
  50  //         "buffer_line_height": {
  51  //           "custom": 2
  52  //         },
  53  "buffer_line_height": "comfortable",
  54  // The name of a font to use for rendering text in the UI
  55  // You can set this to ".SystemUIFont" to use the system font
  56  "ui_font_family": "Zed Plex Sans",
  57  // Set the UI's font fallbacks, this will be merged with the platform's
  58  // default font fallbacks.
  59  "ui_font_fallbacks": null,
  60  // The OpenType features to enable for text in the UI
  61  "ui_font_features": {
  62    // Disable ligatures:
  63    "calt": false
  64  },
  65  // The weight of the UI font in standard CSS units from 100 to 900.
  66  "ui_font_weight": 400,
  67  // The default font size for text in the UI
  68  "ui_font_size": 16,
  69  // How much to fade out unused code.
  70  "unnecessary_code_fade": 0.3,
  71  // Active pane styling settings.
  72  "active_pane_modifiers": {
  73    // The factor to grow the active pane by. Defaults to 1.0
  74    // which gives the same size as all other panes.
  75    "magnification": 1.0,
  76    // Inset border size of the active pane, in pixels.
  77    "border_size": 0.0,
  78    // Opacity of the inactive panes. 0 means transparent, 1 means opaque.
  79    // Values are clamped to the [0.0, 1.0] range.
  80    "inactive_opacity": 1.0
  81  },
  82  // The direction that you want to split panes horizontally. Defaults to "up"
  83  "pane_split_direction_horizontal": "up",
  84  // The direction that you want to split panes horizontally. Defaults to "left"
  85  "pane_split_direction_vertical": "left",
  86  // Centered layout related settings.
  87  "centered_layout": {
  88    // The relative width of the left padding of the central pane from the
  89    // workspace when the centered layout is used.
  90    "left_padding": 0.2,
  91    // The relative width of the right padding of the central pane from the
  92    // workspace when the centered layout is used.
  93    "right_padding": 0.2
  94  },
  95  // The key to use for adding multiple cursors
  96  // Currently "alt" or "cmd_or_ctrl"  (also aliased as
  97  // "cmd" and "ctrl") are supported.
  98  "multi_cursor_modifier": "alt",
  99  // Whether to enable vim modes and key bindings.
 100  "vim_mode": false,
 101  // Whether to show the informational hover box when moving the mouse
 102  // over symbols in the editor.
 103  "hover_popover_enabled": true,
 104  // Whether to confirm before quitting Zed.
 105  "confirm_quit": false,
 106  // Whether to restore last closed project when fresh Zed instance is opened.
 107  "restore_on_startup": "last_session",
 108  // Size of the drop target in the editor.
 109  "drop_target_size": 0.2,
 110  // Whether the window should be closed when using 'close active item' on a window with no tabs.
 111  // May take 3 values:
 112  //  1. Use the current platform's convention
 113  //         "when_closing_with_no_tabs": "platform_default"
 114  //  2. Always close the window:
 115  //         "when_closing_with_no_tabs": "close_window",
 116  //  3. Never close the window
 117  //         "when_closing_with_no_tabs": "keep_window_open",
 118  "when_closing_with_no_tabs": "platform_default",
 119  // Whether to use the system provided dialogs for Open and Save As.
 120  // When set to false, Zed will use the built-in keyboard-first pickers.
 121  "use_system_path_prompts": true,
 122  // Whether the cursor blinks in the editor.
 123  "cursor_blink": true,
 124  // Cursor shape for the default editor.
 125  //  1. A vertical bar
 126  //     "bar"
 127  //  2. A block that surrounds the following character
 128  //     "block"
 129  //  3. An underline / underscore that runs along the following character
 130  //     "underline"
 131  //  4. A box drawn around the following character
 132  //     "hollow"
 133  //
 134  // Default: not set, defaults to "bar"
 135  "cursor_shape": null,
 136  // How to highlight the current line in the editor.
 137  //
 138  // 1. Don't highlight the current line:
 139  //    "none"
 140  // 2. Highlight the gutter area:
 141  //    "gutter"
 142  // 3. Highlight the editor area:
 143  //    "line"
 144  // 4. Highlight the full line (default):
 145  //    "all"
 146  "current_line_highlight": "all",
 147  // The debounce delay before querying highlights from the language
 148  // server based on the current cursor location.
 149  "lsp_highlight_debounce": 75,
 150  // Whether to pop the completions menu while typing in an editor without
 151  // explicitly requesting it.
 152  "show_completions_on_input": true,
 153  // Whether to display inline and alongside documentation for items in the
 154  // completions menu
 155  "show_completion_documentation": true,
 156  // Show method signatures in the editor, when inside parentheses.
 157  "auto_signature_help": false,
 158  /// Whether to show the signature help after completion or a bracket pair inserted.
 159  /// If `auto_signature_help` is enabled, this setting will be treated as enabled also.
 160  "show_signature_help_after_edits": false,
 161  // Whether to show wrap guides (vertical rulers) in the editor.
 162  // Setting this to true will show a guide at the 'preferred_line_length' value
 163  // if 'soft_wrap' is set to 'preferred_line_length', and will show any
 164  // additional guides as specified by the 'wrap_guides' setting.
 165  "show_wrap_guides": true,
 166  // Character counts at which to show wrap guides in the editor.
 167  "wrap_guides": [],
 168  // Hide the values of in variables from visual display in private files
 169  "redact_private_values": false,
 170  // The default number of lines to expand excerpts in the multibuffer by.
 171  "expand_excerpt_lines": 3,
 172  // Globs to match against file paths to determine if a file is private.
 173  "private_files": ["**/.env*", "**/*.pem", "**/*.key", "**/*.cert", "**/*.crt", "**/secrets.yml"],
 174  // Whether to use additional LSP queries to format (and amend) the code after
 175  // every "trigger" symbol input, defined by LSP server capabilities.
 176  "use_on_type_format": true,
 177  // Whether to automatically add matching closing characters when typing
 178  // opening parenthesis, bracket, brace, single or double quote characters.
 179  // For example, when you type (, Zed will add a closing ) at the correct position.
 180  "use_autoclose": true,
 181  // Whether to automatically surround selected text when typing opening parenthesis,
 182  // bracket, brace, single or double quote characters.
 183  // For example, when you select text and type (, Zed will surround the text with ().
 184  "use_auto_surround": true,
 185  // Whether indentation of pasted content should be adjusted based on the context.
 186  "auto_indent_on_paste": true,
 187  // Controls how the editor handles the autoclosed characters.
 188  // When set to `false`(default), skipping over and auto-removing of the closing characters
 189  // happen only for auto-inserted characters.
 190  // Otherwise(when `true`), the closing characters are always skipped over and auto-removed
 191  // no matter how they were inserted.
 192  "always_treat_brackets_as_autoclosed": false,
 193  // Controls whether inline completions are shown immediately (true)
 194  // or manually by triggering `editor::ShowInlineCompletion` (false).
 195  "show_inline_completions": true,
 196  // Controls whether inline completions are shown in a given language scope.
 197  // Example: ["string", "comment"]
 198  "inline_completions_disabled_in": [],
 199  // Whether to show tabs and spaces in the editor.
 200  // This setting can take three values:
 201  //
 202  // 1. Draw tabs and spaces only for the selected text (default):
 203  //    "selection"
 204  // 2. Do not draw any tabs or spaces:
 205  //    "none"
 206  // 3. Draw all invisible symbols:
 207  //    "all"
 208  // 4. Draw whitespaces at boundaries only:
 209  //    "boundary"
 210  // For a whitespace to be on a boundary, any of the following conditions need to be met:
 211  // - It is a tab
 212  // - It is adjacent to an edge (start or end)
 213  // - It is adjacent to a whitespace (left or right)
 214  "show_whitespaces": "selection",
 215  // Settings related to calls in Zed
 216  "calls": {
 217    // Join calls with the microphone live by default
 218    "mute_on_join": false,
 219    // Share your project when you are the first to join a channel
 220    "share_on_join": false
 221  },
 222  // Toolbar related settings
 223  "toolbar": {
 224    // Whether to show breadcrumbs.
 225    "breadcrumbs": true,
 226    // Whether to show quick action buttons.
 227    "quick_actions": true,
 228    // Whether to show the Selections menu in the editor toolbar
 229    "selections_menu": true
 230  },
 231  // Scrollbar related settings
 232  "scrollbar": {
 233    // When to show the scrollbar in the editor.
 234    // This setting can take four values:
 235    //
 236    // 1. Show the scrollbar if there's important information or
 237    //    follow the system's configured behavior (default):
 238    //   "auto"
 239    // 2. Match the system's configured behavior:
 240    //    "system"
 241    // 3. Always show the scrollbar:
 242    //    "always"
 243    // 4. Never show the scrollbar:
 244    //    "never"
 245    "show": "auto",
 246    // Whether to show cursor positions in the scrollbar.
 247    "cursors": true,
 248    // Whether to show git diff indicators in the scrollbar.
 249    "git_diff": true,
 250    // Whether to show buffer search results in the scrollbar.
 251    "search_results": true,
 252    // Whether to show selected symbol occurrences in the scrollbar.
 253    "selected_symbol": true,
 254    // Whether to show diagnostic indicators in the scrollbar.
 255    "diagnostics": true
 256  },
 257  // Enable middle-click paste on Linux.
 258  "middle_click_paste": true,
 259  // What to do when multibuffer is double clicked in some of its excerpts
 260  // (parts of singleton buffers).
 261  // May take 2 values:
 262  //  1. Behave as a regular buffer and select the whole word (default).
 263  //         "double_click_in_multibuffer": "select"
 264  //  2. Open the excerpt clicked as a new buffer in the new tab.
 265  //         "double_click_in_multibuffer": "open",
 266  // For the case of "open", regular selection behavior can be achieved by holding `alt` when double clicking.
 267  "double_click_in_multibuffer": "select",
 268  "gutter": {
 269    // Whether to show line numbers in the gutter.
 270    "line_numbers": true,
 271    // Whether to show code action buttons in the gutter.
 272    "code_actions": true,
 273    // Whether to show runnables buttons in the gutter.
 274    "runnables": true,
 275    // Whether to show fold buttons in the gutter.
 276    "folds": true
 277  },
 278  "indent_guides": {
 279    /// Whether to show indent guides in the editor.
 280    "enabled": true,
 281    /// The width of the indent guides in pixels, between 1 and 10.
 282    "line_width": 1,
 283    /// The width of the active indent guide in pixels, between 1 and 10.
 284    "active_line_width": 1,
 285    /// Determines how indent guides are colored.
 286    /// This setting can take the following three values:
 287    ///
 288    /// 1. "disabled"
 289    /// 2. "fixed"
 290    /// 3. "indent_aware"
 291    "coloring": "fixed",
 292    /// Determines how indent guide backgrounds are colored.
 293    /// This setting can take the following two values:
 294    ///
 295    /// 1. "disabled"
 296    /// 2. "indent_aware"
 297    "background_coloring": "disabled"
 298  },
 299  // Whether the editor will scroll beyond the last line.
 300  "scroll_beyond_last_line": "one_page",
 301  // The number of lines to keep above/below the cursor when scrolling.
 302  "vertical_scroll_margin": 3,
 303  // Whether to scroll when clicking near the edge of the visible text area.
 304  "autoscroll_on_clicks": false,
 305  // Scroll sensitivity multiplier. This multiplier is applied
 306  // to both the horizontal and vertical delta values while scrolling.
 307  "scroll_sensitivity": 1.0,
 308  "relative_line_numbers": false,
 309  // If 'search_wrap' is disabled, search result do not wrap around the end of the file.
 310  "search_wrap": true,
 311  // Search options to enable by default when opening new project and buffer searches.
 312  "search": {
 313    "whole_word": false,
 314    "case_sensitive": false,
 315    "include_ignored": false,
 316    "regex": false
 317  },
 318  // When to populate a new search's query based on the text under the cursor.
 319  // This setting can take the following three values:
 320  //
 321  // 1. Always populate the search query with the word under the cursor (default).
 322  //    "always"
 323  // 2. Only populate the search query when there is text selected
 324  //    "selection"
 325  // 3. Never populate the search query
 326  //    "never"
 327  "seed_search_query_from_cursor": "always",
 328  "use_smartcase_search": false,
 329  // Inlay hint related settings
 330  "inlay_hints": {
 331    // Global switch to toggle hints on and off, switched off by default.
 332    "enabled": false,
 333    // Toggle certain types of hints on and off, all switched on by default.
 334    "show_type_hints": true,
 335    "show_parameter_hints": true,
 336    // Corresponds to null/None LSP hint type value.
 337    "show_other_hints": true,
 338    // Whether to show a background for inlay hints.
 339    //
 340    // If set to `true`, the background will use the `hint.background` color from the current theme.
 341    "show_background": false,
 342    // Time to wait after editing the buffer, before requesting the hints,
 343    // set to 0 to disable debouncing.
 344    "edit_debounce_ms": 700,
 345    // Time to wait after scrolling the buffer, before requesting the hints,
 346    // set to 0 to disable debouncing.
 347    "scroll_debounce_ms": 50
 348  },
 349  "project_panel": {
 350    // Whether to show the project panel button in the status bar
 351    "button": true,
 352    // Default width of the project panel.
 353    "default_width": 240,
 354    // Where to dock the project panel. Can be 'left' or 'right'.
 355    "dock": "left",
 356    // Whether to show file icons in the project panel.
 357    "file_icons": true,
 358    // Whether to show folder icons or chevrons for directories in the project panel.
 359    "folder_icons": true,
 360    // Whether to show the git status in the project panel.
 361    "git_status": true,
 362    // Amount of indentation for nested items.
 363    "indent_size": 20,
 364    // Whether to reveal it in the project panel automatically,
 365    // when a corresponding project entry becomes active.
 366    // Gitignored entries are never auto revealed.
 367    "auto_reveal_entries": true,
 368    // Whether to fold directories automatically and show compact folders
 369    // (e.g. "a/b/c" ) when a directory has only one subdirectory inside.
 370    "auto_fold_dirs": true,
 371    /// Scrollbar-related settings
 372    "scrollbar": {
 373      /// When to show the scrollbar in the project panel.
 374      /// This setting can take four values:
 375      ///
 376      /// 1. null (default): Inherit editor settings
 377      /// 2. Show the scrollbar if there's important information or
 378      ///    follow the system's configured behavior (default):
 379      ///   "auto"
 380      /// 3. Match the system's configured behavior:
 381      ///    "system"
 382      /// 4. Always show the scrollbar:
 383      ///    "always"
 384      /// 5. Never show the scrollbar:
 385      ///    "never"
 386      "show": null
 387    },
 388    /// Which files containing diagnostic errors/warnings to mark in the project panel.
 389    /// This setting can take the following three values:
 390    ///
 391    /// 1. Do not mark any files:
 392    ///    "off"
 393    /// 2. Only mark files with errors:
 394    ///    "errors"
 395    /// 3. Mark files with errors and warnings:
 396    ///    "all"
 397    "show_diagnostics": "all",
 398    // Settings related to indent guides in the project panel.
 399    "indent_guides": {
 400      // When to show indent guides in the project panel.
 401      // This setting can take two values:
 402      //
 403      // 1. Always show indent guides:
 404      //    "always"
 405      // 2. Never show indent guides:
 406      //    "never"
 407      "show": "always"
 408    }
 409  },
 410  "outline_panel": {
 411    // Whether to show the outline panel button in the status bar
 412    "button": true,
 413    // Default width of the outline panel.
 414    "default_width": 300,
 415    // Where to dock the outline panel. Can be 'left' or 'right'.
 416    "dock": "left",
 417    // Whether to show file icons in the outline panel.
 418    "file_icons": true,
 419    // Whether to show folder icons or chevrons for directories in the outline panel.
 420    "folder_icons": true,
 421    // Whether to show the git status in the outline panel.
 422    "git_status": true,
 423    // Amount of indentation for nested items.
 424    "indent_size": 20,
 425    // Whether to reveal it in the outline panel automatically,
 426    // when a corresponding outline entry becomes active.
 427    // Gitignored entries are never auto revealed.
 428    "auto_reveal_entries": true,
 429    /// Whether to fold directories automatically
 430    /// when a directory has only one directory inside.
 431    "auto_fold_dirs": true,
 432    // Settings related to indent guides in the outline panel.
 433    "indent_guides": {
 434      // When to show indent guides in the outline panel.
 435      // This setting can take two values:
 436      //
 437      // 1. Always show indent guides:
 438      //    "always"
 439      // 2. Never show indent guides:
 440      //    "never"
 441      "show": "always"
 442    },
 443    /// Scrollbar-related settings
 444    "scrollbar": {
 445      /// When to show the scrollbar in the project panel.
 446      /// This setting can take four values:
 447      ///
 448      /// 1. null (default): Inherit editor settings
 449      /// 2. Show the scrollbar if there's important information or
 450      ///    follow the system's configured behavior (default):
 451      ///   "auto"
 452      /// 3. Match the system's configured behavior:
 453      ///    "system"
 454      /// 4. Always show the scrollbar:
 455      ///    "always"
 456      /// 5. Never show the scrollbar:
 457      ///    "never"
 458      "show": null
 459    }
 460  },
 461  "collaboration_panel": {
 462    // Whether to show the collaboration panel button in the status bar.
 463    "button": true,
 464    // Where to dock the collaboration panel. Can be 'left' or 'right'.
 465    "dock": "left",
 466    // Default width of the collaboration panel.
 467    "default_width": 240
 468  },
 469  "chat_panel": {
 470    // Whether to show the chat panel button in the status bar.
 471    "button": true,
 472    // Where to the chat panel. Can be 'left' or 'right'.
 473    "dock": "right",
 474    // Default width of the chat panel.
 475    "default_width": 240
 476  },
 477  "git_panel": {
 478    // Whether to show the git panel button in the status bar.
 479    "button": true,
 480    // Where to the git panel. Can be 'left' or 'right'.
 481    "dock": "left",
 482    // Default width of the git panel.
 483    "default_width": 360
 484  },
 485  "message_editor": {
 486    // Whether to automatically replace emoji shortcodes with emoji characters.
 487    // For example: typing `:wave:` gets replaced with `👋`.
 488    "auto_replace_emoji_shortcode": true
 489  },
 490  "notification_panel": {
 491    // Whether to show the notification panel button in the status bar.
 492    "button": true,
 493    // Where to dock the notification panel. Can be 'left' or 'right'.
 494    "dock": "right",
 495    // Default width of the notification panel.
 496    "default_width": 380
 497  },
 498  "assistant": {
 499    // Version of this setting.
 500    "version": "2",
 501    // Whether the assistant is enabled.
 502    "enabled": true,
 503    // Whether to show the assistant panel button in the status bar.
 504    "button": true,
 505    // Where to dock the assistant panel. Can be 'left', 'right' or 'bottom'.
 506    "dock": "right",
 507    // Default width when the assistant is docked to the left or right.
 508    "default_width": 640,
 509    // Default height when the assistant is docked to the bottom.
 510    "default_height": 320,
 511    // The default model to use when creating new chats.
 512    "default_model": {
 513      // The provider to use.
 514      "provider": "zed.dev",
 515      // The model to use.
 516      "model": "claude-3-5-sonnet"
 517    }
 518  },
 519  // The settings for slash commands.
 520  "slash_commands": {
 521    // Settings for the `/docs` slash command.
 522    "docs": {
 523      // Whether `/docs` is enabled.
 524      "enabled": false
 525    },
 526    // Settings for the `/project` slash command.
 527    "project": {
 528      // Whether `/project` is enabled.
 529      "enabled": false
 530    }
 531  },
 532  // Whether the screen sharing icon is shown in the os status bar.
 533  "show_call_status_icon": true,
 534  // Whether to use language servers to provide code intelligence.
 535  "enable_language_server": true,
 536  // Whether to perform linked edits of associated ranges, if the language server supports it.
 537  // For example, when editing opening <html> tag, the contents of the closing </html> tag will be edited as well.
 538  "linked_edits": true,
 539  // The list of language servers to use (or disable) for all languages.
 540  //
 541  // This is typically customized on a per-language basis.
 542  "language_servers": ["..."],
 543  // When to automatically save edited buffers. This setting can
 544  // take four values.
 545  //
 546  // 1. Never automatically save:
 547  //     "autosave": "off",
 548  // 2. Save when changing focus away from the Zed window:
 549  //     "autosave": "on_window_change",
 550  // 3. Save when changing focus away from a specific buffer:
 551  //     "autosave": "on_focus_change",
 552  // 4. Save when idle for a certain amount of time:
 553  //     "autosave": { "after_delay": {"milliseconds": 500} },
 554  "autosave": "off",
 555  // Maximum number of tabs per pane. Unset for unlimited.
 556  "max_tabs": null,
 557  // Settings related to the editor's tab bar.
 558  "tab_bar": {
 559    // Whether or not to show the tab bar in the editor
 560    "show": true,
 561    // Whether or not to show the navigation history buttons.
 562    "show_nav_history_buttons": true
 563  },
 564  // Settings related to the editor's tabs
 565  "tabs": {
 566    // Show git status colors in the editor tabs.
 567    "git_status": false,
 568    // Position of the close button on the editor tabs.
 569    "close_position": "right",
 570    // Whether to show the file icon for a tab.
 571    "file_icons": false,
 572    // Whether to always show the close button on tabs.
 573    "always_show_close_button": false,
 574    // What to do after closing the current tab.
 575    //
 576    // 1. Activate the tab that was open previously (default)
 577    //     "history"
 578    // 2. Activate the right neighbour tab if present
 579    //     "neighbour"
 580    // 3. Activate the left neighbour tab if present
 581    //     "left_neighbour"
 582    "activate_on_close": "history",
 583    /// Which files containing diagnostic errors/warnings to mark in the tabs.
 584    /// Diagnostics are only shown when file icons are also active.
 585    /// This setting only works when can take the following three values:
 586    ///
 587    /// 1. Do not mark any files:
 588    ///    "off"
 589    /// 2. Only mark files with errors:
 590    ///    "errors"
 591    /// 3. Mark files with errors and warnings:
 592    ///    "all"
 593    "show_diagnostics": "off"
 594  },
 595  // Settings related to preview tabs.
 596  "preview_tabs": {
 597    // Whether preview tabs should be enabled.
 598    // Preview tabs allow you to open files in preview mode, where they close automatically
 599    // when you switch to another file unless you explicitly pin them.
 600    // This is useful for quickly viewing files without cluttering your workspace.
 601    "enabled": true,
 602    // Whether to open tabs in preview mode when selected from the file finder.
 603    "enable_preview_from_file_finder": false,
 604    // Whether a preview tab gets replaced when code navigation is used to navigate away from the tab.
 605    "enable_preview_from_code_navigation": false
 606  },
 607  // Settings related to the file finder.
 608  "file_finder": {
 609    // Whether to show file icons in the file finder.
 610    "file_icons": true,
 611    // Determines how much space the file finder can take up in relation to the available window width.
 612    // There are 5 possible width values:
 613    //
 614    // 1. Small: This value is essentially a fixed width.
 615    //    "modal_width": "small"
 616    // 2. Medium:
 617    //    "modal_width": "medium"
 618    // 3. Large:
 619    //    "modal_width": "large"
 620    // 4. Extra Large:
 621    //    "modal_width": "xlarge"
 622    // 5. Fullscreen: This value removes any horizontal padding, as it consumes the whole viewport width.
 623    //    "modal_width": "full"
 624    //
 625    // Default: small
 626    "modal_max_width": "small"
 627  },
 628  // Whether or not to remove any trailing whitespace from lines of a buffer
 629  // before saving it.
 630  "remove_trailing_whitespace_on_save": true,
 631  // Whether to start a new line with a comment when a previous line is a comment as well.
 632  "extend_comment_on_newline": true,
 633  // Whether or not to ensure there's a single newline at the end of a buffer
 634  // when saving it.
 635  "ensure_final_newline_on_save": true,
 636  // Whether or not to perform a buffer format before saving
 637  //
 638  // Keep in mind, if the autosave with delay is enabled, format_on_save will be ignored
 639  "format_on_save": "on",
 640  // How to perform a buffer format. This setting can take 4 values:
 641  //
 642  // 1. Format code using the current language server:
 643  //     "formatter": "language_server"
 644  // 2. Format code using an external command:
 645  //     "formatter": {
 646  //       "external": {
 647  //         "command": "prettier",
 648  //         "arguments": ["--stdin-filepath", "{buffer_path}"]
 649  //       }
 650  //     }
 651  // 3. Format code using Zed's Prettier integration:
 652  //     "formatter": "prettier"
 653  // 4. Default. Format files using Zed's Prettier integration (if applicable),
 654  //    or falling back to formatting via language server:
 655  //     "formatter": "auto"
 656  "formatter": "auto",
 657  // How to soft-wrap long lines of text.
 658  // Possible values:
 659  //
 660  // 1. Prefer a single line generally, unless an overly long line is encountered.
 661  //      "soft_wrap": "none",
 662  //      "soft_wrap": "prefer_line", // (deprecated, same as "none")
 663  // 2. Soft wrap lines that overflow the editor.
 664  //      "soft_wrap": "editor_width",
 665  // 3. Soft wrap lines at the preferred line length.
 666  //      "soft_wrap": "preferred_line_length",
 667  // 4. Soft wrap lines at the preferred line length or the editor width (whichever is smaller).
 668  //      "soft_wrap": "bounded",
 669  "soft_wrap": "none",
 670  // The column at which to soft-wrap lines, for buffers where soft-wrap
 671  // is enabled.
 672  "preferred_line_length": 80,
 673  // Whether to indent lines using tab characters, as opposed to multiple
 674  // spaces.
 675  "hard_tabs": false,
 676  // How many columns a tab should occupy.
 677  "tab_size": 4,
 678  // Control what info is collected by Zed.
 679  "telemetry": {
 680    // Send debug info like crash reports.
 681    "diagnostics": true,
 682    // Send anonymized usage data like what languages you're using Zed with.
 683    "metrics": true
 684  },
 685  // Automatically update Zed. This setting may be ignored on Linux if
 686  // installed through a package manager.
 687  "auto_update": true,
 688  // Diagnostics configuration.
 689  "diagnostics": {
 690    // Whether to show warnings or not by default.
 691    "include_warnings": true
 692  },
 693  // Add files or globs of files that will be excluded by Zed entirely:
 694  // they will be skipped during FS scan(s), file tree and file search
 695  // will lack the corresponding file entries. Overrides `file_scan_inclusions`.
 696  "file_scan_exclusions": [
 697    "**/.git",
 698    "**/.svn",
 699    "**/.hg",
 700    "**/.jj",
 701    "**/CVS",
 702    "**/.DS_Store",
 703    "**/Thumbs.db",
 704    "**/.classpath",
 705    "**/.settings"
 706  ],
 707  // Add files or globs of files that will be included by Zed, even when
 708  // ignored by git. This is useful for files that are not tracked by git,
 709  // but are still important to your project. Note that globs that are
 710  // overly broad can slow down Zed's file scanning. Overridden by `file_scan_exclusions`.
 711  "file_scan_inclusions": [".env*"],
 712  // Git gutter behavior configuration.
 713  "git": {
 714    // Control whether the git gutter is shown. May take 2 values:
 715    // 1. Show the gutter
 716    //      "git_gutter": "tracked_files"
 717    // 2. Hide the gutter
 718    //      "git_gutter": "hide"
 719    "git_gutter": "tracked_files",
 720    // Control whether the git blame information is shown inline,
 721    // in the currently focused line.
 722    "inline_blame": {
 723      "enabled": true
 724      // Sets a delay after which the inline blame information is shown.
 725      // Delay is restarted with every cursor movement.
 726      // "delay_ms": 600
 727      //
 728      // Whether or not do display the git commit summary on the same line.
 729      // "show_commit_summary": false
 730      //
 731      // The minimum column number to show the inline blame information at
 732      // "min_column": 0
 733    }
 734  },
 735  // Configuration for how direnv configuration should be loaded. May take 2 values:
 736  // 1. Load direnv configuration using `direnv export json` directly.
 737  //      "load_direnv": "direct"
 738  // 2. Load direnv configuration through the shell hook, works for POSIX shells and fish.
 739  //      "load_direnv": "shell_hook"
 740  "load_direnv": "direct",
 741  "inline_completions": {
 742    // A list of globs representing files that inline completions should be disabled for.
 743    "disabled_globs": [".env"]
 744  },
 745  // Settings specific to journaling
 746  "journal": {
 747    // The path of the directory where journal entries are stored
 748    "path": "~",
 749    // What format to display the hours in
 750    // May take 2 values:
 751    // 1. hour12
 752    // 2. hour24
 753    "hour_format": "hour12"
 754  },
 755  // Settings specific to the terminal
 756  "terminal": {
 757    // What shell to use when opening a terminal. May take 3 values:
 758    // 1. Use the system's default terminal configuration in /etc/passwd
 759    //      "shell": "system"
 760    // 2. A program:
 761    //      "shell": {
 762    //        "program": "sh"
 763    //      }
 764    // 3. A program with arguments:
 765    //     "shell": {
 766    //         "with_arguments": {
 767    //           "program": "/bin/bash",
 768    //           "args": ["--login"]
 769    //         }
 770    //     }
 771    "shell": "system",
 772    // Where to dock terminals panel. Can be `left`, `right`, `bottom`.
 773    "dock": "bottom",
 774    // Default width when the terminal is docked to the left or right.
 775    "default_width": 640,
 776    // Default height when the terminal is docked to the bottom.
 777    "default_height": 320,
 778    // What working directory to use when launching the terminal.
 779    // May take 4 values:
 780    // 1. Use the current file's project directory.  Will Fallback to the
 781    //    first project directory strategy if unsuccessful
 782    //      "working_directory": "current_project_directory"
 783    // 2. Use the first project in this workspace's directory
 784    //      "working_directory": "first_project_directory"
 785    // 3. Always use this platform's home directory (if we can find it)
 786    //     "working_directory": "always_home"
 787    // 4. Always use a specific directory. This value will be shell expanded.
 788    //    If this path is not a valid directory the terminal will default to
 789    //    this platform's home directory  (if we can find it)
 790    //      "working_directory": {
 791    //        "always": {
 792    //          "directory": "~/zed/projects/"
 793    //        }
 794    //      }
 795    "working_directory": "current_project_directory",
 796    // Set the cursor blinking behavior in the terminal.
 797    // May take 3 values:
 798    //  1. Never blink the cursor, ignoring the terminal mode
 799    //         "blinking": "off",
 800    //  2. Default the cursor blink to off, but allow the terminal to
 801    //     set blinking
 802    //         "blinking": "terminal_controlled",
 803    //  3. Always blink the cursor, ignoring the terminal mode
 804    //         "blinking": "on",
 805    "blinking": "terminal_controlled",
 806    // Default cursor shape for the terminal.
 807    //  1. A block that surrounds the following character
 808    //     "block"
 809    //  2. A vertical bar
 810    //     "bar"
 811    //  3. An underline / underscore that runs along the following character
 812    //     "underline"
 813    //  4. A box drawn around the following character
 814    //     "hollow"
 815    //
 816    // Default: not set, defaults to "block"
 817    "cursor_shape": null,
 818    // Set whether Alternate Scroll mode (code: ?1007) is active by default.
 819    // Alternate Scroll mode converts mouse scroll events into up / down key
 820    // presses when in the alternate screen (e.g. when running applications
 821    // like vim or  less). The terminal can still set and unset this mode.
 822    // May take 2 values:
 823    //  1. Default alternate scroll mode to on
 824    //         "alternate_scroll": "on",
 825    //  2. Default alternate scroll mode to off
 826    //         "alternate_scroll": "off",
 827    "alternate_scroll": "off",
 828    // Set whether the option key behaves as the meta key.
 829    // May take 2 values:
 830    //  1. Rely on default platform handling of option key, on macOS
 831    //     this means generating certain unicode characters
 832    //         "option_as_meta": false,
 833    //  2. Make the option keys behave as a 'meta' key, e.g. for emacs
 834    //         "option_as_meta": true,
 835    "option_as_meta": false,
 836    // Whether or not selecting text in the terminal will automatically
 837    // copy to the system clipboard.
 838    "copy_on_select": false,
 839    // Whether to show the terminal button in the status bar
 840    "button": true,
 841    // Any key-value pairs added to this list will be added to the terminal's
 842    // environment. Use `:` to separate multiple values.
 843    "env": {
 844      // "KEY": "value1:value2"
 845    },
 846    // Set the terminal's line height.
 847    // May take 3 values:
 848    //  1. Use a line height that's comfortable for reading, 1.618
 849    //         "line_height": "comfortable"
 850    //  2. Use a standard line height, 1.3. This option is useful for TUIs,
 851    //      particularly if they use box characters
 852    //         "line_height": "standard",
 853    //  3. Use a custom line height.
 854    //         "line_height": {
 855    //           "custom": 2
 856    //         },
 857    "line_height": "comfortable",
 858    // Activate the python virtual environment, if one is found, in the
 859    // terminal's working directory (as resolved by the working_directory
 860    // setting). Set this to "off" to disable this behavior.
 861    "detect_venv": {
 862      "on": {
 863        // Default directories to search for virtual environments, relative
 864        // to the current working directory. We recommend overriding this
 865        // in your project's settings, rather than globally.
 866        "directories": [".env", "env", ".venv", "venv"],
 867        // Can also be `csh`, `fish`, `nushell` and `power_shell`
 868        "activate_script": "default"
 869      }
 870    },
 871    "toolbar": {
 872      // Whether to display the terminal title in its toolbar's breadcrumbs.
 873      // Only shown if the terminal title is not empty.
 874      //
 875      // The shell running in the terminal needs to be configured to emit the title.
 876      // Example: `echo -e "\e]2;New Title\007";`
 877      "breadcrumbs": true
 878    }
 879    // Set the terminal's font size. If this option is not included,
 880    // the terminal will default to matching the buffer's font size.
 881    // "font_size": 15,
 882    // Set the terminal's font family. If this option is not included,
 883    // the terminal will default to matching the buffer's font family.
 884    // "font_family": "Zed Plex Mono",
 885    // Set the terminal's font fallbacks. If this option is not included,
 886    // the terminal will default to matching the buffer's font fallbacks.
 887    // This will be merged with the platform's default font fallbacks
 888    // "font_fallbacks": ["FiraCode Nerd Fonts"],
 889    // Sets the maximum number of lines in the terminal's scrollback buffer.
 890    // Default: 10_000, maximum: 100_000 (all bigger values set will be treated as 100_000), 0 disables the scrolling.
 891    // Existing terminals will not pick up this change until they are recreated.
 892    // "max_scroll_history_lines": 10000,
 893  },
 894  "code_actions_on_format": {},
 895  /// Settings related to running tasks.
 896  "tasks": {
 897    "variables": {}
 898  },
 899  // An object whose keys are language names, and whose values
 900  // are arrays of filenames or extensions of files that should
 901  // use those languages.
 902  //
 903  // For example, to treat files like `foo.notjs` as JavaScript,
 904  // and `Embargo.lock` as TOML:
 905  //
 906  // {
 907  //   "JavaScript": ["notjs"],
 908  //   "TOML": ["Embargo.lock"]
 909  // }
 910  //
 911  "file_types": {
 912    "Plain Text": ["txt"],
 913    "JSONC": ["**/.zed/**/*.json", "**/zed/**/*.json", "**/Zed/**/*.json", "**/.vscode/**/*.json"],
 914    "Shell Script": [".env.*"]
 915  },
 916  /// By default use a recent system version of node, or install our own.
 917  /// You can override this to use a version of node that is not in $PATH with:
 918  /// {
 919  ///   "node": {
 920  ///     "path": "/path/to/node"
 921  ///     "npm_path": "/path/to/npm" (defaults to node_path/../npm)
 922  ///   }
 923  /// }
 924  /// or to ensure Zed always downloads and installs an isolated version of node:
 925  /// {
 926  ///   "node": {
 927  ///     "ignore_system_version": true,
 928  ///   }
 929  /// NOTE: changing this setting currently requires restarting Zed.
 930  "node": {},
 931  // The extensions that Zed should automatically install on startup.
 932  //
 933  // If you don't want any of these extensions, add this field to your settings
 934  // and change the value to `false`.
 935  "auto_install_extensions": {
 936    "html": true
 937  },
 938  // Different settings for specific languages.
 939  "languages": {
 940    "Astro": {
 941      "language_servers": ["astro-language-server", "..."],
 942      "prettier": {
 943        "allowed": true,
 944        "plugins": ["prettier-plugin-astro"]
 945      }
 946    },
 947    "Blade": {
 948      "prettier": {
 949        "allowed": true
 950      }
 951    },
 952    "C": {
 953      "format_on_save": "off",
 954      "use_on_type_format": false
 955    },
 956    "C++": {
 957      "format_on_save": "off",
 958      "use_on_type_format": false
 959    },
 960    "CSS": {
 961      "prettier": {
 962        "allowed": true
 963      }
 964    },
 965    "Dart": {
 966      "tab_size": 2
 967    },
 968    "Diff": {
 969      "remove_trailing_whitespace_on_save": false,
 970      "ensure_final_newline_on_save": false
 971    },
 972    "Elixir": {
 973      "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
 974    },
 975    "Erlang": {
 976      "language_servers": ["erlang-ls", "!elp", "..."]
 977    },
 978    "Go": {
 979      "code_actions_on_format": {
 980        "source.organizeImports": true
 981      }
 982    },
 983    "GraphQL": {
 984      "prettier": {
 985        "allowed": true
 986      }
 987    },
 988    "HEEX": {
 989      "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
 990    },
 991    "HTML": {
 992      "prettier": {
 993        "allowed": true
 994      }
 995    },
 996    "Java": {
 997      "prettier": {
 998        "allowed": true,
 999        "plugins": ["prettier-plugin-java"]
1000      }
1001    },
1002    "JavaScript": {
1003      "language_servers": ["!typescript-language-server", "vtsls", "..."],
1004      "prettier": {
1005        "allowed": true
1006      }
1007    },
1008    "JSON": {
1009      "prettier": {
1010        "allowed": true
1011      }
1012    },
1013    "JSONC": {
1014      "prettier": {
1015        "allowed": true
1016      }
1017    },
1018    "Markdown": {
1019      "format_on_save": "off",
1020      "use_on_type_format": false,
1021      "prettier": {
1022        "allowed": true
1023      }
1024    },
1025    "PHP": {
1026      "language_servers": ["phpactor", "!intelephense", "..."],
1027      "prettier": {
1028        "allowed": true,
1029        "plugins": ["@prettier/plugin-php"],
1030        "parser": "php"
1031      }
1032    },
1033    "Ruby": {
1034      "language_servers": ["solargraph", "!ruby-lsp", "!rubocop", "..."]
1035    },
1036    "SCSS": {
1037      "prettier": {
1038        "allowed": true
1039      }
1040    },
1041    "SQL": {
1042      "prettier": {
1043        "allowed": true,
1044        "plugins": ["prettier-plugin-sql"]
1045      }
1046    },
1047    "Starlark": {
1048      "language_servers": ["starpls", "!buck2-lsp", "..."]
1049    },
1050    "Svelte": {
1051      "language_servers": ["svelte-language-server", "..."],
1052      "prettier": {
1053        "allowed": true,
1054        "plugins": ["prettier-plugin-svelte"]
1055      }
1056    },
1057    "TSX": {
1058      "language_servers": ["!typescript-language-server", "vtsls", "..."],
1059      "prettier": {
1060        "allowed": true
1061      }
1062    },
1063    "Twig": {
1064      "prettier": {
1065        "allowed": true
1066      }
1067    },
1068    "TypeScript": {
1069      "language_servers": ["!typescript-language-server", "vtsls", "..."],
1070      "prettier": {
1071        "allowed": true
1072      }
1073    },
1074    "Vue.js": {
1075      "language_servers": ["vue-language-server", "..."],
1076      "prettier": {
1077        "allowed": true
1078      }
1079    },
1080    "XML": {
1081      "prettier": {
1082        "allowed": true,
1083        "plugins": ["@prettier/plugin-xml"]
1084      }
1085    },
1086    "YAML": {
1087      "prettier": {
1088        "allowed": true
1089      }
1090    }
1091  },
1092  // Different settings for specific language models.
1093  "language_models": {
1094    "anthropic": {
1095      "version": "1",
1096      "api_url": "https://api.anthropic.com"
1097    },
1098    "google": {
1099      "api_url": "https://generativelanguage.googleapis.com"
1100    },
1101    "ollama": {
1102      "api_url": "http://localhost:11434"
1103    },
1104    "openai": {
1105      "version": "1",
1106      "api_url": "https://api.openai.com/v1"
1107    }
1108  },
1109  // Zed's Prettier integration settings.
1110  // Allows to enable/disable formatting with Prettier
1111  // and configure default Prettier, used when no project-level Prettier installation is found.
1112  "prettier": {
1113    // // Whether to consider prettier formatter or not when attempting to format a file.
1114    // "allowed": false,
1115    //
1116    // // Use regular Prettier json configuration.
1117    // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
1118    // // the project has no other Prettier installed.
1119    // "plugins": [],
1120    //
1121    // // Use regular Prettier json configuration.
1122    // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
1123    // // the project has no other Prettier installed.
1124    // "trailingComma": "es5",
1125    // "tabWidth": 4,
1126    // "semi": false,
1127    // "singleQuote": true
1128  },
1129  // LSP Specific settings.
1130  "lsp": {
1131    // Specify the LSP name as a key here.
1132    // "rust-analyzer": {
1133    //     // These initialization options are merged into Zed's defaults
1134    //     "initialization_options": {
1135    //         "check": {
1136    //             "command": "clippy" // rust-analyzer.check.command (default: "check")
1137    //         }
1138    //     }
1139    // }
1140  },
1141  // Jupyter settings
1142  "jupyter": {
1143    "enabled": true
1144    // Specify the language name as the key and the kernel name as the value.
1145    // "kernel_selections": {
1146    //    "python": "conda-base"
1147    //    "typescript": "deno"
1148    // }
1149  },
1150  // Vim settings
1151  "vim": {
1152    "toggle_relative_line_numbers": false,
1153    "use_system_clipboard": "always",
1154    "use_multiline_find": false,
1155    "use_smartcase_find": false,
1156    "highlight_on_yank_duration": 200,
1157    "custom_digraphs": {}
1158  },
1159  // The server to connect to. If the environment variable
1160  // ZED_SERVER_URL is set, it will override this setting.
1161  "server_url": "https://zed.dev",
1162  // Settings overrides to use when using Zed Preview.
1163  // Mostly useful for developers who are managing multiple instances of Zed.
1164  "preview": {
1165    // "theme": "Andromeda"
1166  },
1167  // Settings overrides to use when using Zed Nightly.
1168  // Mostly useful for developers who are managing multiple instances of Zed.
1169  "nightly": {
1170    // "theme": "Andromeda"
1171  },
1172  // Settings overrides to use when using Zed Stable.
1173  // Mostly useful for developers who are managing multiple instances of Zed.
1174  "stable": {
1175    // "theme": "Andromeda"
1176  },
1177  // Settings overrides to use when using Zed Dev.
1178  // Mostly useful for developers who are managing multiple instances of Zed.
1179  "dev": {
1180    // "theme": "Andromeda"
1181  },
1182  // Task-related settings.
1183  "task": {
1184    // Whether to show task status indicator in the status bar. Default: true
1185    "show_status_indicator": true
1186  },
1187  // Whether to show full labels in line indicator or short ones
1188  //
1189  // Values:
1190  //   - `short`: "2 s, 15 l, 32 c"
1191  //   - `long`: "2 selections, 15 lines, 32 characters"
1192  // Default: long
1193  "line_indicator_format": "long",
1194  // Set a proxy to use. The proxy protocol is specified by the URI scheme.
1195  //
1196  // Supported URI scheme: `http`, `https`, `socks4`, `socks4a`, `socks5`,
1197  // `socks5h`. `http` will be used when no scheme is specified.
1198  //
1199  // By default no proxy will be used, or Zed will try get proxy settings from
1200  // environment variables.
1201  //
1202  // Examples:
1203  //   - "proxy": "socks5h://localhost:10808"
1204  //   - "proxy": "http://127.0.0.1:10809"
1205  "proxy": null,
1206  // Set to configure aliases for the command palette.
1207  // When typing a query which is a key of this object, the value will be used instead.
1208  //
1209  // Examples:
1210  // {
1211  //   "W": "workspace::Save"
1212  // }
1213  "command_aliases": {},
1214  // Whether to show user picture in titlebar.
1215  "show_user_picture": true,
1216  // ssh_connections is an array of ssh connections.
1217  // You can configure these from `project: Open Remote` in the command palette.
1218  // Zed's ssh support will pull configuration from your ~/.ssh too.
1219  // Examples:
1220  // [
1221  //   {
1222  //     "host": "example-box",
1223  //     // "port": 22, "username": "test", "args": ["-i", "/home/user/.ssh/id_rsa"]
1224  //     "projects": [
1225  //       {
1226  //         "paths": ["/home/user/code/zed"]
1227  //       }
1228  //     ]
1229  //   }
1230  // ]
1231  "ssh_connections": [],
1232  // Configures context servers for use in the Assistant.
1233  "context_servers": {}
1234}