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