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  // Whether to pop the completions menu while typing in an editor without
 148  // explicitly requesting it.
 149  "show_completions_on_input": true,
 150  // Whether to display inline and alongside documentation for items in the
 151  // completions menu
 152  "show_completion_documentation": true,
 153  // The debounce delay before re-querying the language server for completion
 154  // documentation when not included in original completion list.
 155  "completion_documentation_secondary_query_debounce": 300,
 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": true,
 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  // Scroll sensitivity multiplier. This multiplier is applied
 304  // to both the horizontal and vertical delta values while scrolling.
 305  "scroll_sensitivity": 1.0,
 306  "relative_line_numbers": false,
 307  // If 'search_wrap' is disabled, search result do not wrap around the end of the file.
 308  "search_wrap": true,
 309  // Search options to enable by default when opening new project and buffer searches.
 310  "search": {
 311    "whole_word": false,
 312    "case_sensitive": false,
 313    "include_ignored": false,
 314    "regex": false
 315  },
 316  // When to populate a new search's query based on the text under the cursor.
 317  // This setting can take the following three values:
 318  //
 319  // 1. Always populate the search query with the word under the cursor (default).
 320  //    "always"
 321  // 2. Only populate the search query when there is text selected
 322  //    "selection"
 323  // 3. Never populate the search query
 324  //    "never"
 325  "seed_search_query_from_cursor": "always",
 326  "use_smartcase_search": false,
 327  // Inlay hint related settings
 328  "inlay_hints": {
 329    // Global switch to toggle hints on and off, switched off by default.
 330    "enabled": false,
 331    // Toggle certain types of hints on and off, all switched on by default.
 332    "show_type_hints": true,
 333    "show_parameter_hints": true,
 334    // Corresponds to null/None LSP hint type value.
 335    "show_other_hints": true,
 336    // Whether to show a background for inlay hints.
 337    //
 338    // If set to `true`, the background will use the `hint.background` color from the current theme.
 339    "show_background": false,
 340    // Time to wait after editing the buffer, before requesting the hints,
 341    // set to 0 to disable debouncing.
 342    "edit_debounce_ms": 700,
 343    // Time to wait after scrolling the buffer, before requesting the hints,
 344    // set to 0 to disable debouncing.
 345    "scroll_debounce_ms": 50
 346  },
 347  "project_panel": {
 348    // Whether to show the project panel button in the status bar
 349    "button": true,
 350    // Default width of the project panel.
 351    "default_width": 240,
 352    // Where to dock the project panel. Can be 'left' or 'right'.
 353    "dock": "left",
 354    // Whether to show file icons in the project panel.
 355    "file_icons": true,
 356    // Whether to show folder icons or chevrons for directories in the project panel.
 357    "folder_icons": true,
 358    // Whether to show the git status in the project panel.
 359    "git_status": true,
 360    // Amount of indentation for nested items.
 361    "indent_size": 20,
 362    // Whether to reveal it in the project panel automatically,
 363    // when a corresponding project entry becomes active.
 364    // Gitignored entries are never auto revealed.
 365    "auto_reveal_entries": true,
 366    // Whether to fold directories automatically and show compact folders
 367    // (e.g. "a/b/c" ) when a directory has only one subdirectory inside.
 368    "auto_fold_dirs": true,
 369    /// Scrollbar-related settings
 370    "scrollbar": {
 371      /// When to show the scrollbar in the project panel.
 372      /// This setting can take four values:
 373      ///
 374      /// 1. null (default): Inherit editor settings
 375      /// 2. Show the scrollbar if there's important information or
 376      ///    follow the system's configured behavior (default):
 377      ///   "auto"
 378      /// 3. Match the system's configured behavior:
 379      ///    "system"
 380      /// 4. Always show the scrollbar:
 381      ///    "always"
 382      /// 5. Never show the scrollbar:
 383      ///    "never"
 384      "show": null
 385    },
 386    // Settings related to indent guides in the project panel.
 387    "indent_guides": {
 388      // When to show indent guides in the project panel.
 389      // This setting can take two values:
 390      //
 391      // 1. Always show indent guides:
 392      //    "always"
 393      // 2. Never show indent guides:
 394      //    "never"
 395      "show": "always"
 396    }
 397  },
 398  "outline_panel": {
 399    // Whether to show the outline panel button in the status bar
 400    "button": true,
 401    // Default width of the outline panel.
 402    "default_width": 300,
 403    // Where to dock the outline panel. Can be 'left' or 'right'.
 404    "dock": "left",
 405    // Whether to show file icons in the outline panel.
 406    "file_icons": true,
 407    // Whether to show folder icons or chevrons for directories in the outline panel.
 408    "folder_icons": true,
 409    // Whether to show the git status in the outline panel.
 410    "git_status": true,
 411    // Amount of indentation for nested items.
 412    "indent_size": 20,
 413    // Whether to reveal it in the outline panel automatically,
 414    // when a corresponding outline entry becomes active.
 415    // Gitignored entries are never auto revealed.
 416    "auto_reveal_entries": true,
 417    /// Whether to fold directories automatically
 418    /// when a directory has only one directory inside.
 419    "auto_fold_dirs": true,
 420    // Settings related to indent guides in the outline panel.
 421    "indent_guides": {
 422      // When to show indent guides in the outline panel.
 423      // This setting can take two values:
 424      //
 425      // 1. Always show indent guides:
 426      //    "always"
 427      // 2. Never show indent guides:
 428      //    "never"
 429      "show": "always"
 430    },
 431    /// Scrollbar-related settings
 432    "scrollbar": {
 433      /// When to show the scrollbar in the project panel.
 434      /// This setting can take four values:
 435      ///
 436      /// 1. null (default): Inherit editor settings
 437      /// 2. Show the scrollbar if there's important information or
 438      ///    follow the system's configured behavior (default):
 439      ///   "auto"
 440      /// 3. Match the system's configured behavior:
 441      ///    "system"
 442      /// 4. Always show the scrollbar:
 443      ///    "always"
 444      /// 5. Never show the scrollbar:
 445      ///    "never"
 446      "show": null
 447    }
 448  },
 449  "collaboration_panel": {
 450    // Whether to show the collaboration panel button in the status bar.
 451    "button": true,
 452    // Where to dock the collaboration panel. Can be 'left' or 'right'.
 453    "dock": "left",
 454    // Default width of the collaboration panel.
 455    "default_width": 240
 456  },
 457  "chat_panel": {
 458    // Whether to show the chat panel button in the status bar.
 459    "button": true,
 460    // Where to the chat panel. Can be 'left' or 'right'.
 461    "dock": "right",
 462    // Default width of the chat panel.
 463    "default_width": 240
 464  },
 465  "message_editor": {
 466    // Whether to automatically replace emoji shortcodes with emoji characters.
 467    // For example: typing `:wave:` gets replaced with `👋`.
 468    "auto_replace_emoji_shortcode": true
 469  },
 470  "notification_panel": {
 471    // Whether to show the notification panel button in the status bar.
 472    "button": true,
 473    // Where to dock the notification panel. Can be 'left' or 'right'.
 474    "dock": "right",
 475    // Default width of the notification panel.
 476    "default_width": 380
 477  },
 478  "assistant": {
 479    // Version of this setting.
 480    "version": "2",
 481    // Whether the assistant is enabled.
 482    "enabled": true,
 483    // Whether to show the assistant panel button in the status bar.
 484    "button": true,
 485    // Where to dock the assistant panel. Can be 'left', 'right' or 'bottom'.
 486    "dock": "right",
 487    // Default width when the assistant is docked to the left or right.
 488    "default_width": 640,
 489    // Default height when the assistant is docked to the bottom.
 490    "default_height": 320,
 491    // The default model to use when creating new chats.
 492    "default_model": {
 493      // The provider to use.
 494      "provider": "zed.dev",
 495      // The model to use.
 496      "model": "claude-3-5-sonnet"
 497    }
 498  },
 499  // The settings for slash commands.
 500  "slash_commands": {
 501    // Settings for the `/docs` slash command.
 502    "docs": {
 503      // Whether `/docs` is enabled.
 504      "enabled": false
 505    },
 506    // Settings for the `/project` slash command.
 507    "project": {
 508      // Whether `/project` is enabled.
 509      "enabled": false
 510    }
 511  },
 512  // Whether the screen sharing icon is shown in the os status bar.
 513  "show_call_status_icon": true,
 514  // Whether to use language servers to provide code intelligence.
 515  "enable_language_server": true,
 516  // Whether to perform linked edits of associated ranges, if the language server supports it.
 517  // For example, when editing opening <html> tag, the contents of the closing </html> tag will be edited as well.
 518  "linked_edits": true,
 519  // The list of language servers to use (or disable) for all languages.
 520  //
 521  // This is typically customized on a per-language basis.
 522  "language_servers": ["..."],
 523  // When to automatically save edited buffers. This setting can
 524  // take four values.
 525  //
 526  // 1. Never automatically save:
 527  //     "autosave": "off",
 528  // 2. Save when changing focus away from the Zed window:
 529  //     "autosave": "on_window_change",
 530  // 3. Save when changing focus away from a specific buffer:
 531  //     "autosave": "on_focus_change",
 532  // 4. Save when idle for a certain amount of time:
 533  //     "autosave": { "after_delay": {"milliseconds": 500} },
 534  "autosave": "off",
 535  // Settings related to the editor's tab bar.
 536  "tab_bar": {
 537    // Whether or not to show the tab bar in the editor
 538    "show": true,
 539    // Whether or not to show the navigation history buttons.
 540    "show_nav_history_buttons": true
 541  },
 542  // Settings related to the editor's tabs
 543  "tabs": {
 544    // Show git status colors in the editor tabs.
 545    "git_status": false,
 546    // Position of the close button on the editor tabs.
 547    "close_position": "right",
 548    // Whether to show the file icon for a tab.
 549    "file_icons": false,
 550    // What to do after closing the current tab.
 551    //
 552    // 1. Activate the tab that was open previously (default)
 553    //     "History"
 554    // 2. Activate the neighbour tab (prefers the right one, if present)
 555    //     "Neighbour"
 556    "activate_on_close": "history"
 557  },
 558  // Settings related to preview tabs.
 559  "preview_tabs": {
 560    // Whether preview tabs should be enabled.
 561    // Preview tabs allow you to open files in preview mode, where they close automatically
 562    // when you switch to another file unless you explicitly pin them.
 563    // This is useful for quickly viewing files without cluttering your workspace.
 564    "enabled": true,
 565    // Whether to open tabs in preview mode when selected from the file finder.
 566    "enable_preview_from_file_finder": false,
 567    // Whether a preview tab gets replaced when code navigation is used to navigate away from the tab.
 568    "enable_preview_from_code_navigation": false
 569  },
 570  // Settings related to the file finder.
 571  "file_finder": {
 572    // Whether to show file icons in the file finder.
 573    "file_icons": true
 574  },
 575  // Whether or not to remove any trailing whitespace from lines of a buffer
 576  // before saving it.
 577  "remove_trailing_whitespace_on_save": true,
 578  // Whether to start a new line with a comment when a previous line is a comment as well.
 579  "extend_comment_on_newline": true,
 580  // Whether or not to ensure there's a single newline at the end of a buffer
 581  // when saving it.
 582  "ensure_final_newline_on_save": true,
 583  // Whether or not to perform a buffer format before saving
 584  //
 585  // Keep in mind, if the autosave with delay is enabled, format_on_save will be ignored
 586  "format_on_save": "on",
 587  // How to perform a buffer format. This setting can take 4 values:
 588  //
 589  // 1. Format code using the current language server:
 590  //     "formatter": "language_server"
 591  // 2. Format code using an external command:
 592  //     "formatter": {
 593  //       "external": {
 594  //         "command": "prettier",
 595  //         "arguments": ["--stdin-filepath", "{buffer_path}"]
 596  //       }
 597  //     }
 598  // 3. Format code using Zed's Prettier integration:
 599  //     "formatter": "prettier"
 600  // 4. Default. Format files using Zed's Prettier integration (if applicable),
 601  //    or falling back to formatting via language server:
 602  //     "formatter": "auto"
 603  "formatter": "auto",
 604  // How to soft-wrap long lines of text.
 605  // Possible values:
 606  //
 607  // 1. Prefer a single line generally, unless an overly long line is encountered.
 608  //      "soft_wrap": "none",
 609  //      "soft_wrap": "prefer_line", // (deprecated, same as "none")
 610  // 2. Soft wrap lines that overflow the editor.
 611  //      "soft_wrap": "editor_width",
 612  // 3. Soft wrap lines at the preferred line length.
 613  //      "soft_wrap": "preferred_line_length",
 614  // 4. Soft wrap lines at the preferred line length or the editor width (whichever is smaller).
 615  //      "soft_wrap": "bounded",
 616  "soft_wrap": "none",
 617  // The column at which to soft-wrap lines, for buffers where soft-wrap
 618  // is enabled.
 619  "preferred_line_length": 80,
 620  // Whether to indent lines using tab characters, as opposed to multiple
 621  // spaces.
 622  "hard_tabs": false,
 623  // How many columns a tab should occupy.
 624  "tab_size": 4,
 625  // Control what info is collected by Zed.
 626  "telemetry": {
 627    // Send debug info like crash reports.
 628    "diagnostics": true,
 629    // Send anonymized usage data like what languages you're using Zed with.
 630    "metrics": true
 631  },
 632  // Automatically update Zed. This setting may be ignored on Linux if
 633  // installed through a package manager.
 634  "auto_update": true,
 635  // Diagnostics configuration.
 636  "diagnostics": {
 637    // Whether to show warnings or not by default.
 638    "include_warnings": true
 639  },
 640  // Add files or globs of files that will be excluded by Zed entirely:
 641  // they will be skipped during FS scan(s), file tree and file search
 642  // will lack the corresponding file entries.
 643  "file_scan_exclusions": [
 644    "**/.git",
 645    "**/.svn",
 646    "**/.hg",
 647    "**/CVS",
 648    "**/.DS_Store",
 649    "**/Thumbs.db",
 650    "**/.classpath",
 651    "**/.settings"
 652  ],
 653  // Git gutter behavior configuration.
 654  "git": {
 655    // Control whether the git gutter is shown. May take 2 values:
 656    // 1. Show the gutter
 657    //      "git_gutter": "tracked_files"
 658    // 2. Hide the gutter
 659    //      "git_gutter": "hide"
 660    "git_gutter": "tracked_files",
 661    // Control whether the git blame information is shown inline,
 662    // in the currently focused line.
 663    "inline_blame": {
 664      "enabled": true
 665      // Sets a delay after which the inline blame information is shown.
 666      // Delay is restarted with every cursor movement.
 667      // "delay_ms": 600
 668      //
 669      // Whether or not do display the git commit summary on the same line.
 670      // "show_commit_summary": false
 671      //
 672      // The minimum column number to show the inline blame information at
 673      // "min_column": 0
 674    }
 675  },
 676  // Configuration for how direnv configuration should be loaded. May take 2 values:
 677  // 1. Load direnv configuration using `direnv export json` directly.
 678  //      "load_direnv": "direct"
 679  // 2. Load direnv configuration through the shell hook, works for POSIX shells and fish.
 680  //      "load_direnv": "shell_hook"
 681  "load_direnv": "direct",
 682  "inline_completions": {
 683    // A list of globs representing files that inline completions should be disabled for.
 684    "disabled_globs": [".env"]
 685  },
 686  // Settings specific to journaling
 687  "journal": {
 688    // The path of the directory where journal entries are stored
 689    "path": "~",
 690    // What format to display the hours in
 691    // May take 2 values:
 692    // 1. hour12
 693    // 2. hour24
 694    "hour_format": "hour12"
 695  },
 696  // Settings specific to the terminal
 697  "terminal": {
 698    // What shell to use when opening a terminal. May take 3 values:
 699    // 1. Use the system's default terminal configuration in /etc/passwd
 700    //      "shell": "system"
 701    // 2. A program:
 702    //      "shell": {
 703    //        "program": "sh"
 704    //      }
 705    // 3. A program with arguments:
 706    //     "shell": {
 707    //         "with_arguments": {
 708    //           "program": "/bin/bash",
 709    //           "args": ["--login"]
 710    //         }
 711    //     }
 712    "shell": "system",
 713    // Where to dock terminals panel. Can be `left`, `right`, `bottom`.
 714    "dock": "bottom",
 715    // Default width when the terminal is docked to the left or right.
 716    "default_width": 640,
 717    // Default height when the terminal is docked to the bottom.
 718    "default_height": 320,
 719    // What working directory to use when launching the terminal.
 720    // May take 4 values:
 721    // 1. Use the current file's project directory.  Will Fallback to the
 722    //    first project directory strategy if unsuccessful
 723    //      "working_directory": "current_project_directory"
 724    // 2. Use the first project in this workspace's directory
 725    //      "working_directory": "first_project_directory"
 726    // 3. Always use this platform's home directory (if we can find it)
 727    //     "working_directory": "always_home"
 728    // 4. Always use a specific directory. This value will be shell expanded.
 729    //    If this path is not a valid directory the terminal will default to
 730    //    this platform's home directory  (if we can find it)
 731    //      "working_directory": {
 732    //        "always": {
 733    //          "directory": "~/zed/projects/"
 734    //        }
 735    //      }
 736    "working_directory": "current_project_directory",
 737    // Set the cursor blinking behavior in the terminal.
 738    // May take 3 values:
 739    //  1. Never blink the cursor, ignoring the terminal mode
 740    //         "blinking": "off",
 741    //  2. Default the cursor blink to off, but allow the terminal to
 742    //     set blinking
 743    //         "blinking": "terminal_controlled",
 744    //  3. Always blink the cursor, ignoring the terminal mode
 745    //         "blinking": "on",
 746    "blinking": "terminal_controlled",
 747    // Default cursor shape for the terminal.
 748    //  1. A block that surrounds the following character
 749    //     "block"
 750    //  2. A vertical bar
 751    //     "bar"
 752    //  3. An underline / underscore that runs along the following character
 753    //     "underline"
 754    //  4. A box drawn around the following character
 755    //     "hollow"
 756    //
 757    // Default: not set, defaults to "block"
 758    "cursor_shape": null,
 759    // Set whether Alternate Scroll mode (code: ?1007) is active by default.
 760    // Alternate Scroll mode converts mouse scroll events into up / down key
 761    // presses when in the alternate screen (e.g. when running applications
 762    // like vim or  less). The terminal can still set and unset this mode.
 763    // May take 2 values:
 764    //  1. Default alternate scroll mode to on
 765    //         "alternate_scroll": "on",
 766    //  2. Default alternate scroll mode to off
 767    //         "alternate_scroll": "off",
 768    "alternate_scroll": "off",
 769    // Set whether the option key behaves as the meta key.
 770    // May take 2 values:
 771    //  1. Rely on default platform handling of option key, on macOS
 772    //     this means generating certain unicode characters
 773    //         "option_as_meta": false,
 774    //  2. Make the option keys behave as a 'meta' key, e.g. for emacs
 775    //         "option_as_meta": true,
 776    "option_as_meta": false,
 777    // Whether or not selecting text in the terminal will automatically
 778    // copy to the system clipboard.
 779    "copy_on_select": false,
 780    // Whether to show the terminal button in the status bar
 781    "button": true,
 782    // Any key-value pairs added to this list will be added to the terminal's
 783    // environment. Use `:` to separate multiple values.
 784    "env": {
 785      // "KEY": "value1:value2"
 786    },
 787    // Set the terminal's line height.
 788    // May take 3 values:
 789    //  1. Use a line height that's comfortable for reading, 1.618
 790    //         "line_height": "comfortable"
 791    //  2. Use a standard line height, 1.3. This option is useful for TUIs,
 792    //      particularly if they use box characters
 793    //         "line_height": "standard",
 794    //  3. Use a custom line height.
 795    //         "line_height": {
 796    //           "custom": 2
 797    //         },
 798    "line_height": "comfortable",
 799    // Activate the python virtual environment, if one is found, in the
 800    // terminal's working directory (as resolved by the working_directory
 801    // setting). Set this to "off" to disable this behavior.
 802    "detect_venv": {
 803      "on": {
 804        // Default directories to search for virtual environments, relative
 805        // to the current working directory. We recommend overriding this
 806        // in your project's settings, rather than globally.
 807        "directories": [".env", "env", ".venv", "venv"],
 808        // Can also be `csh`, `fish`, `nushell` and `power_shell`
 809        "activate_script": "default"
 810      }
 811    },
 812    "toolbar": {
 813      // Whether to display the terminal title in its toolbar.
 814      "title": true
 815    }
 816    // Set the terminal's font size. If this option is not included,
 817    // the terminal will default to matching the buffer's font size.
 818    // "font_size": 15,
 819    // Set the terminal's font family. If this option is not included,
 820    // the terminal will default to matching the buffer's font family.
 821    // "font_family": "Zed Plex Mono",
 822    // Set the terminal's font fallbacks. If this option is not included,
 823    // the terminal will default to matching the buffer's font fallbacks.
 824    // This will be merged with the platform's default font fallbacks
 825    // "font_fallbacks": ["FiraCode Nerd Fonts"],
 826    // Sets the maximum number of lines in the terminal's scrollback buffer.
 827    // Default: 10_000, maximum: 100_000 (all bigger values set will be treated as 100_000), 0 disables the scrolling.
 828    // Existing terminals will not pick up this change until they are recreated.
 829    // "max_scroll_history_lines": 10000,
 830  },
 831  "code_actions_on_format": {},
 832  /// Settings related to running tasks.
 833  "tasks": {
 834    "variables": {}
 835  },
 836  // An object whose keys are language names, and whose values
 837  // are arrays of filenames or extensions of files that should
 838  // use those languages.
 839  //
 840  // For example, to treat files like `foo.notjs` as JavaScript,
 841  // and `Embargo.lock` as TOML:
 842  //
 843  // {
 844  //   "JavaScript": ["notjs"],
 845  //   "TOML": ["Embargo.lock"]
 846  // }
 847  //
 848  "file_types": {
 849    "Plain Text": ["txt"],
 850    "JSON": ["flake.lock"],
 851    "JSONC": [
 852      "**/.zed/**/*.json",
 853      "**/zed/**/*.json",
 854      "**/Zed/**/*.json",
 855      "tsconfig.json",
 856      "pyrightconfig.json"
 857    ],
 858    "TOML": ["uv.lock"]
 859  },
 860  /// By default use a recent system version of node, or install our own.
 861  /// You can override this to use a version of node that is not in $PATH with:
 862  /// {
 863  ///   "node": {
 864  ///     "path": "/path/to/node"
 865  ///     "npm_path": "/path/to/npm" (defaults to node_path/../npm)
 866  ///   }
 867  /// }
 868  /// or to ensure Zed always downloads and installs an isolated version of node:
 869  /// {
 870  ///   "node": {
 871  ///     "ignore_system_version": true,
 872  ///   }
 873  /// NOTE: changing this setting currently requires restarting Zed.
 874  "node": {},
 875  // The extensions that Zed should automatically install on startup.
 876  //
 877  // If you don't want any of these extensions, add this field to your settings
 878  // and change the value to `false`.
 879  "auto_install_extensions": {
 880    "html": true
 881  },
 882  // Different settings for specific languages.
 883  "languages": {
 884    "Astro": {
 885      "language_servers": ["astro-language-server", "..."],
 886      "prettier": {
 887        "allowed": true,
 888        "plugins": ["prettier-plugin-astro"]
 889      }
 890    },
 891    "Blade": {
 892      "prettier": {
 893        "allowed": true
 894      }
 895    },
 896    "C": {
 897      "format_on_save": "off",
 898      "use_on_type_format": false
 899    },
 900    "C++": {
 901      "format_on_save": "off",
 902      "use_on_type_format": false
 903    },
 904    "CSS": {
 905      "prettier": {
 906        "allowed": true
 907      }
 908    },
 909    "Dart": {
 910      "tab_size": 2
 911    },
 912    "Diff": {
 913      "remove_trailing_whitespace_on_save": false,
 914      "ensure_final_newline_on_save": false
 915    },
 916    "Elixir": {
 917      "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
 918    },
 919    "Erlang": {
 920      "language_servers": ["erlang-ls", "!elp", "..."]
 921    },
 922    "Go": {
 923      "code_actions_on_format": {
 924        "source.organizeImports": true
 925      }
 926    },
 927    "GraphQL": {
 928      "prettier": {
 929        "allowed": true
 930      }
 931    },
 932    "HEEX": {
 933      "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
 934    },
 935    "HTML": {
 936      "prettier": {
 937        "allowed": true
 938      }
 939    },
 940    "Java": {
 941      "prettier": {
 942        "allowed": true,
 943        "plugins": ["prettier-plugin-java"]
 944      }
 945    },
 946    "JavaScript": {
 947      "language_servers": ["!typescript-language-server", "vtsls", "..."],
 948      "prettier": {
 949        "allowed": true
 950      }
 951    },
 952    "JSON": {
 953      "prettier": {
 954        "allowed": true
 955      }
 956    },
 957    "JSONC": {
 958      "prettier": {
 959        "allowed": true
 960      }
 961    },
 962    "Markdown": {
 963      "format_on_save": "off",
 964      "use_on_type_format": false,
 965      "prettier": {
 966        "allowed": true
 967      }
 968    },
 969    "PHP": {
 970      "language_servers": ["phpactor", "!intelephense", "..."],
 971      "prettier": {
 972        "allowed": true,
 973        "plugins": ["@prettier/plugin-php"],
 974        "parser": "php"
 975      }
 976    },
 977    "Ruby": {
 978      "language_servers": ["solargraph", "!ruby-lsp", "!rubocop", "..."]
 979    },
 980    "SCSS": {
 981      "prettier": {
 982        "allowed": true
 983      }
 984    },
 985    "SQL": {
 986      "prettier": {
 987        "allowed": true,
 988        "plugins": ["prettier-plugin-sql"]
 989      }
 990    },
 991    "Starlark": {
 992      "language_servers": ["starpls", "!buck2-lsp", "..."]
 993    },
 994    "Svelte": {
 995      "language_servers": ["svelte-language-server", "..."],
 996      "prettier": {
 997        "allowed": true,
 998        "plugins": ["prettier-plugin-svelte"]
 999      }
1000    },
1001    "TSX": {
1002      "language_servers": ["!typescript-language-server", "vtsls", "..."],
1003      "prettier": {
1004        "allowed": true
1005      }
1006    },
1007    "Twig": {
1008      "prettier": {
1009        "allowed": true
1010      }
1011    },
1012    "TypeScript": {
1013      "language_servers": ["!typescript-language-server", "vtsls", "..."],
1014      "prettier": {
1015        "allowed": true
1016      }
1017    },
1018    "Vue.js": {
1019      "language_servers": ["vue-language-server", "..."],
1020      "prettier": {
1021        "allowed": true
1022      }
1023    },
1024    "XML": {
1025      "prettier": {
1026        "allowed": true,
1027        "plugins": ["@prettier/plugin-xml"]
1028      }
1029    },
1030    "YAML": {
1031      "prettier": {
1032        "allowed": true
1033      }
1034    }
1035  },
1036  // Different settings for specific language models.
1037  "language_models": {
1038    "anthropic": {
1039      "version": "1",
1040      "api_url": "https://api.anthropic.com"
1041    },
1042    "google": {
1043      "api_url": "https://generativelanguage.googleapis.com"
1044    },
1045    "ollama": {
1046      "api_url": "http://localhost:11434",
1047      "low_speed_timeout_in_seconds": 60
1048    },
1049    "openai": {
1050      "version": "1",
1051      "api_url": "https://api.openai.com/v1",
1052      "low_speed_timeout_in_seconds": 600
1053    }
1054  },
1055  // Zed's Prettier integration settings.
1056  // Allows to enable/disable formatting with Prettier
1057  // and configure default Prettier, used when no project-level Prettier installation is found.
1058  "prettier": {
1059    // // Whether to consider prettier formatter or not when attempting to format a file.
1060    // "allowed": false,
1061    //
1062    // // Use regular Prettier json configuration.
1063    // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
1064    // // the project has no other Prettier installed.
1065    // "plugins": [],
1066    //
1067    // // Use regular Prettier json configuration.
1068    // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
1069    // // the project has no other Prettier installed.
1070    // "trailingComma": "es5",
1071    // "tabWidth": 4,
1072    // "semi": false,
1073    // "singleQuote": true
1074  },
1075  // LSP Specific settings.
1076  "lsp": {
1077    // Specify the LSP name as a key here.
1078    // "rust-analyzer": {
1079    //     // These initialization options are merged into Zed's defaults
1080    //     "initialization_options": {
1081    //         "check": {
1082    //             "command": "clippy" // rust-analyzer.check.command (default: "check")
1083    //         }
1084    //     }
1085    // }
1086  },
1087  // Jupyter settings
1088  "jupyter": {
1089    "enabled": true
1090    // Specify the language name as the key and the kernel name as the value.
1091    // "kernel_selections": {
1092    //    "python": "conda-base"
1093    //    "typescript": "deno"
1094    // }
1095  },
1096  // Vim settings
1097  "vim": {
1098    "toggle_relative_line_numbers": false,
1099    "use_system_clipboard": "always",
1100    "use_multiline_find": false,
1101    "use_smartcase_find": false,
1102    "custom_digraphs": {}
1103  },
1104  // The server to connect to. If the environment variable
1105  // ZED_SERVER_URL is set, it will override this setting.
1106  "server_url": "https://zed.dev",
1107  // Settings overrides to use when using Zed Preview.
1108  // Mostly useful for developers who are managing multiple instances of Zed.
1109  "preview": {
1110    // "theme": "Andromeda"
1111  },
1112  // Settings overrides to use when using Zed Nightly.
1113  // Mostly useful for developers who are managing multiple instances of Zed.
1114  "nightly": {
1115    // "theme": "Andromeda"
1116  },
1117  // Settings overrides to use when using Zed Stable.
1118  // Mostly useful for developers who are managing multiple instances of Zed.
1119  "stable": {
1120    // "theme": "Andromeda"
1121  },
1122  // Settings overrides to use when using Zed Dev.
1123  // Mostly useful for developers who are managing multiple instances of Zed.
1124  "dev": {
1125    // "theme": "Andromeda"
1126  },
1127  // Task-related settings.
1128  "task": {
1129    // Whether to show task status indicator in the status bar. Default: true
1130    "show_status_indicator": true
1131  },
1132  // Whether to show full labels in line indicator or short ones
1133  //
1134  // Values:
1135  //   - `short`: "2 s, 15 l, 32 c"
1136  //   - `long`: "2 selections, 15 lines, 32 characters"
1137  // Default: long
1138  "line_indicator_format": "long",
1139  // Set a proxy to use. The proxy protocol is specified by the URI scheme.
1140  //
1141  // Supported URI scheme: `http`, `https`, `socks4`, `socks4a`, `socks5`,
1142  // `socks5h`. `http` will be used when no scheme is specified.
1143  //
1144  // By default no proxy will be used, or Zed will try get proxy settings from
1145  // environment variables.
1146  //
1147  // Examples:
1148  //   - "proxy": "socks5h://localhost:10808"
1149  //   - "proxy": "http://127.0.0.1:10809"
1150  "proxy": null,
1151  // Set to configure aliases for the command palette.
1152  // When typing a query which is a key of this object, the value will be used instead.
1153  //
1154  // Examples:
1155  // {
1156  //   "W": "workspace::Save"
1157  // }
1158  "command_aliases": {},
1159  // ssh_connections is an array of ssh connections.
1160  // You can configure these from `project: Open Remote` in the command palette.
1161  // Zed's ssh support will pull configuration from your ~/.ssh too.
1162  // Examples:
1163  // [
1164  //   {
1165  //     "host": "example-box",
1166  //     // "port": 22, "username": "test", "args": ["-i", "/home/user/.ssh/id_rsa"]
1167  //     "projects": [
1168  //       {
1169  //         "paths": ["/home/user/code/zed"]
1170  //       }
1171  //     ]
1172  //   }
1173  // ]
1174  "ssh_connections": [],
1175  // Configures the Context Server Protocol binaries
1176  //
1177  // Examples:
1178  // {
1179  //   "id": "server-1",
1180  //   "executable": "/path",
1181  //   "args": ['arg1", "args2"]
1182  // }
1183  "experimental.context_servers": {
1184    "servers": []
1185  }
1186}