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