default.json

   1{
   2  "$schema": "zed://schemas/settings",
   3  /// The displayed name of this project. If not set or null, the root directory name
   4  /// will be displayed.
   5  "project_name": null,
   6  // The name of the Zed theme to use for the UI.
   7  //
   8  // `mode` is one of:
   9  // - "system": Use the theme that corresponds to the system's appearance
  10  // - "light": Use the theme indicated by the "light" field
  11  // - "dark": Use the theme indicated by the "dark" field
  12  "theme": {
  13    "mode": "system",
  14    "light": "One Light",
  15    "dark": "One Dark",
  16  },
  17  "icon_theme": "Zed (Default)",
  18  // The name of a base set of key bindings to use.
  19  // This setting can take six values, each named after another
  20  // text editor:
  21  //
  22  // 1. "VSCode"
  23  // 2. "Atom"
  24  // 3. "JetBrains"
  25  // 4. "None"
  26  // 5. "SublimeText"
  27  // 6. "TextMate"
  28  "base_keymap": "VSCode",
  29  // Features that can be globally enabled or disabled
  30  "features": {
  31    // Which edit prediction provider to use.
  32    "edit_prediction_provider": "zed",
  33  },
  34  // The name of a font to use for rendering text in the editor
  35  // ".ZedMono" currently aliases to Lilex
  36  // but this may change in the future.
  37  "buffer_font_family": ".ZedMono",
  38  // Set the buffer text's font fallbacks, this will be merged with
  39  // the platform's default fallbacks.
  40  "buffer_font_fallbacks": null,
  41  // The OpenType features to enable for text in the editor.
  42  "buffer_font_features": {
  43    // Disable ligatures:
  44    // "calt": false
  45  },
  46  // The default font size for text in the editor
  47  "buffer_font_size": 15,
  48  // The weight of the editor font in standard CSS units from 100 to 900.
  49  "buffer_font_weight": 400,
  50  // Set the buffer's line height.
  51  // May take 3 values:
  52  //  1. Use a line height that's comfortable for reading (1.618)
  53  //         "buffer_line_height": "comfortable"
  54  //  2. Use a standard line height, (1.3)
  55  //         "buffer_line_height": "standard",
  56  //  3. Use a custom line height
  57  //         "buffer_line_height": {
  58  //           "custom": 2
  59  //         },
  60  "buffer_line_height": "comfortable",
  61  // The name of a font to use for rendering text in the UI
  62  // You can set this to ".SystemUIFont" to use the system font
  63  // ".ZedSans" currently aliases to "IBM Plex Sans", but this may
  64  // change in the future
  65  "ui_font_family": ".ZedSans",
  66  // Set the UI's font fallbacks, this will be merged with the platform's
  67  // default font fallbacks.
  68  "ui_font_fallbacks": null,
  69  // The OpenType features to enable for text in the UI
  70  "ui_font_features": {
  71    // Disable ligatures:
  72    "calt": false,
  73  },
  74  // The weight of the UI font in standard CSS units from 100 to 900.
  75  "ui_font_weight": 400,
  76  // The default font size for text in the UI
  77  "ui_font_size": 16,
  78  // The default font size for agent responses in the agent panel. Falls back to the UI font size if unset.
  79  "agent_ui_font_size": null,
  80  // The default font size for user messages in the agent panel.
  81  "agent_buffer_font_size": 12,
  82  // How much to fade out unused code.
  83  "unnecessary_code_fade": 0.3,
  84  // Active pane styling settings.
  85  "active_pane_modifiers": {
  86    // Inset border size of the active pane, in pixels.
  87    "border_size": 0.0,
  88    // Opacity of the inactive panes. 0 means transparent, 1 means opaque.
  89    // Values are clamped to the [0.0, 1.0] range.
  90    "inactive_opacity": 1.0,
  91  },
  92  // Layout mode of the bottom dock. Defaults to "contained"
  93  //   choices: contained, full, left_aligned, right_aligned
  94  "bottom_dock_layout": "contained",
  95  // The direction that you want to split panes horizontally. Defaults to "down"
  96  "pane_split_direction_horizontal": "down",
  97  // The direction that you want to split panes vertically. Defaults to "right"
  98  "pane_split_direction_vertical": "right",
  99  // Centered layout related settings.
 100  "centered_layout": {
 101    // The relative width of the left padding of the central pane from the
 102    // workspace when the centered layout is used.
 103    "left_padding": 0.2,
 104    // The relative width of the right padding of the central pane from the
 105    // workspace when the centered layout is used.
 106    "right_padding": 0.2,
 107  },
 108  // Image viewer settings
 109  "image_viewer": {
 110    // The unit for image file sizes: "binary" (KiB, MiB) or decimal (KB, MB)
 111    "unit": "binary",
 112  },
 113  // Determines the modifier to be used to add multiple cursors with the mouse. The open hover link mouse gestures will adapt such that it do not conflict with the multicursor modifier.
 114  //
 115  // 1. Maps to `Alt` on Linux and Windows and to `Option` on MacOS:
 116  //    "alt"
 117  // 2. Maps `Control` on Linux and Windows and to `Command` on MacOS:
 118  //    "cmd_or_ctrl" (alias: "cmd", "ctrl")
 119  "multi_cursor_modifier": "alt",
 120  // Whether to enable vim modes and key bindings.
 121  "vim_mode": false,
 122  // Whether to enable helix mode and key bindings.
 123  // Enabling this mode will automatically enable vim mode.
 124  "helix_mode": false,
 125  // Whether to show the informational hover box when moving the mouse
 126  // over symbols in the editor.
 127  "hover_popover_enabled": true,
 128  // Time to wait in milliseconds before showing the informational hover box.
 129  "hover_popover_delay": 300,
 130  // Whether to confirm before quitting Zed.
 131  "confirm_quit": false,
 132  // Whether to restore last closed project when fresh Zed instance is opened
 133  // May take 3 values:
 134  //  1. All workspaces open during last session
 135  //         "restore_on_startup": "last_session"
 136  //  2. The workspace opened
 137  //         "restore_on_startup": "last_workspace",
 138  //  3. Do not restore previous workspaces
 139  //         "restore_on_startup": "none",
 140  "restore_on_startup": "last_session",
 141  // Whether to attempt to restore previous file's state when opening it again.
 142  // The state is stored per pane.
 143  // When disabled, defaults are applied instead of the state restoration.
 144  //
 145  // E.g. for editors, selections, folds and scroll positions are restored, if the same file is closed and, later, opened again in the same pane.
 146  // When disabled, a single selection in the very beginning of the file, zero scroll position and no folds state is used as a default.
 147  //
 148  // Default: true
 149  "restore_on_file_reopen": true,
 150  // Whether to automatically close files that have been deleted on disk.
 151  "close_on_file_delete": false,
 152  // Relative size of the drop target in the editor that will open dropped file as a split pane (0-0.5)
 153  // E.g. 0.25 == If you drop onto the top/bottom quarter of the pane a new vertical split will be used
 154  //              If you drop onto the left/right quarter of the pane a new horizontal split will be used
 155  "drop_target_size": 0.2,
 156  // Whether the window should be closed when using 'close active item' on a window with no tabs.
 157  // May take 3 values:
 158  //  1. Use the current platform's convention
 159  //         "when_closing_with_no_tabs": "platform_default"
 160  //  2. Always close the window:
 161  //         "when_closing_with_no_tabs": "close_window",
 162  //  3. Never close the window
 163  //         "when_closing_with_no_tabs": "keep_window_open",
 164  "when_closing_with_no_tabs": "platform_default",
 165  // What to do when the last window is closed.
 166  // May take 2 values:
 167  //  1. Use the current platform's convention
 168  //         "on_last_window_closed": "platform_default"
 169  //  2. Always quit the application
 170  //         "on_last_window_closed": "quit_app",
 171  "on_last_window_closed": "platform_default",
 172  // Whether to show padding for zoomed panels.
 173  // When enabled, zoomed center panels (e.g. code editor) will have padding all around,
 174  // while zoomed bottom/left/right panels will have padding to the top/right/left (respectively).
 175  //
 176  // Default: true
 177  "zoomed_padding": true,
 178  // What draws Zed's window decorations (titlebar):
 179  // 1. Client application (Zed) draws its own window decorations
 180  //    "client"
 181  // 2. Display server draws the window decorations. Not supported by GNOME Wayland.
 182  //    "server"
 183  //
 184  // This requires restarting Zed for changes to take effect.
 185  //
 186  // Default: "client"
 187  "window_decorations": "client",
 188  // Whether to use the system provided dialogs for Open and Save As.
 189  // When set to false, Zed will use the built-in keyboard-first pickers.
 190  "use_system_path_prompts": true,
 191  // Whether to use the system provided dialogs for prompts, such as confirmation
 192  // prompts.
 193  // When set to false, Zed will use its built-in prompts. Note that on Linux,
 194  // this option is ignored and Zed will always use the built-in prompts.
 195  "use_system_prompts": true,
 196  // Whether the cursor blinks in the editor.
 197  "cursor_blink": true,
 198  // Cursor shape for the default editor.
 199  //  1. A vertical bar
 200  //     "bar"
 201  //  2. A block that surrounds the following character
 202  //     "block"
 203  //  3. An underline / underscore that runs along the following character
 204  //     "underline"
 205  //  4. A box drawn around the following character
 206  //     "hollow"
 207  //
 208  // Default: "bar"
 209  "cursor_shape": "bar",
 210  // Determines when the mouse cursor should be hidden in an editor or input box.
 211  //
 212  // 1. Never hide the mouse cursor:
 213  //    "never"
 214  // 2. Hide only when typing:
 215  //    "on_typing"
 216  // 3. Hide on both typing and cursor movement:
 217  //    "on_typing_and_movement"
 218  "hide_mouse": "on_typing_and_movement",
 219  // Determines how snippets are sorted relative to other completion items.
 220  //
 221  // 1. Place snippets at the top of the completion list:
 222  //    "top"
 223  // 2. Place snippets normally without any preference:
 224  //    "inline"
 225  // 3. Place snippets at the bottom of the completion list:
 226  //    "bottom"
 227  // 4. Do not show snippets in the completion list:
 228  //    "none"
 229  "snippet_sort_order": "inline",
 230  // How to highlight the current line in the editor.
 231  //
 232  // 1. Don't highlight the current line:
 233  //    "none"
 234  // 2. Highlight the gutter area:
 235  //    "gutter"
 236  // 3. Highlight the editor area:
 237  //    "line"
 238  // 4. Highlight the full line (default):
 239  //    "all"
 240  "current_line_highlight": "all",
 241  // Whether to highlight all occurrences of the selected text in an editor.
 242  "selection_highlight": true,
 243  // Whether the text selection should have rounded corners.
 244  "rounded_selection": true,
 245  // The debounce delay before querying highlights from the language
 246  // server based on the current cursor location.
 247  "lsp_highlight_debounce": 75,
 248  // The minimum APCA perceptual contrast between foreground and background colors.
 249  // APCA (Accessible Perceptual Contrast Algorithm) is more accurate than WCAG 2.x,
 250  // especially for dark mode. Values range from 0 to 106.
 251  //
 252  // Based on APCA Readability Criterion (ARC) Bronze Simple Mode:
 253  // https://readtech.org/ARC/tests/bronze-simple-mode/
 254  // - 0: No contrast adjustment
 255  // - 45: Minimum for large fluent text (36px+)
 256  // - 60: Minimum for other content text
 257  // - 75: Minimum for body text
 258  // - 90: Preferred for body text
 259  //
 260  // This only affects text drawn over highlight backgrounds in the editor.
 261  "minimum_contrast_for_highlights": 45,
 262  // Whether to pop the completions menu while typing in an editor without
 263  // explicitly requesting it.
 264  "show_completions_on_input": true,
 265  // Whether to display inline and alongside documentation for items in the
 266  // completions menu
 267  "show_completion_documentation": true,
 268  // Whether to colorize brackets in the editor.
 269  // (also known as "rainbow brackets")
 270  //
 271  // The colors that are used for different indentation levels are defined in the theme (theme key: `accents`).
 272  // They can be customized by using theme overrides.
 273  "colorize_brackets": false,
 274  // When to show the scrollbar in the completion menu.
 275  // This setting can take four values:
 276  //
 277  // 1. Show the scrollbar if there's important information or
 278  //    follow the system's configured behavior
 279  //   "auto"
 280  // 2. Match the system's configured behavior:
 281  //    "system"
 282  // 3. Always show the scrollbar:
 283  //    "always"
 284  // 4. Never show the scrollbar:
 285  //    "never" (default)
 286  "completion_menu_scrollbar": "never",
 287  // Show method signatures in the editor, when inside parentheses.
 288  "auto_signature_help": false,
 289  // Whether to show the signature help after completion or a bracket pair inserted.
 290  // If `auto_signature_help` is enabled, this setting will be treated as enabled also.
 291  "show_signature_help_after_edits": false,
 292  // Whether to show code action button at start of buffer line.
 293  "inline_code_actions": true,
 294  // Whether to allow drag and drop text selection in buffer.
 295  "drag_and_drop_selection": {
 296    // When true, enables drag and drop text selection in buffer.
 297    "enabled": true,
 298    // The delay in milliseconds that must elapse before drag and drop is allowed. Otherwise, a new text selection is created.
 299    "delay": 300,
 300  },
 301  // What to do when go to definition yields no results.
 302  //
 303  // 1. Do nothing: `none`
 304  // 2. Find references for the same symbol: `find_all_references` (default)
 305  "go_to_definition_fallback": "find_all_references",
 306  // Which level to use to filter out diagnostics displayed in the editor.
 307  //
 308  // Affects the editor rendering only, and does not interrupt
 309  // the functionality of diagnostics fetching and project diagnostics editor.
 310  // Which files containing diagnostic errors/warnings to mark in the tabs.
 311  // Diagnostics are only shown when file icons are also active.
 312  // This setting only works when can take the following three values:
 313  //
 314  // Which diagnostic indicators to show in the scrollbar, their level should be more or equal to the specified severity level.
 315  // Possible values:
 316  //  - "off" — no diagnostics are allowed
 317  //  - "error"
 318  //  - "warning"
 319  //  - "info"
 320  //  - "hint"
 321  //  - "all" — allow all diagnostics (default)
 322  "diagnostics_max_severity": "all",
 323  // Whether to show wrap guides (vertical rulers) in the editor.
 324  // Setting this to true will show a guide at the 'preferred_line_length' value
 325  // if 'soft_wrap' is set to 'preferred_line_length', and will show any
 326  // additional guides as specified by the 'wrap_guides' setting.
 327  "show_wrap_guides": true,
 328  // Character counts at which to show wrap guides in the editor.
 329  "wrap_guides": [],
 330  // Hide the values of in variables from visual display in private files
 331  "redact_private_values": false,
 332  // The default number of lines to expand excerpts in the multibuffer by.
 333  "expand_excerpt_lines": 5,
 334  // The default number of context lines shown in multibuffer excerpts.
 335  "excerpt_context_lines": 2,
 336  // Globs to match against file paths to determine if a file is private.
 337  "private_files": ["**/.env*", "**/*.pem", "**/*.key", "**/*.cert", "**/*.crt", "**/secrets.yml"],
 338  // Whether to use additional LSP queries to format (and amend) the code after
 339  // every "trigger" symbol input, defined by LSP server capabilities.
 340  "use_on_type_format": true,
 341  // Whether to automatically add matching closing characters when typing
 342  // opening parenthesis, bracket, brace, single or double quote characters.
 343  // For example, when you type '(', Zed will add a closing ) at the correct position.
 344  "use_autoclose": true,
 345  // Whether to automatically surround selected text when typing opening parenthesis,
 346  // bracket, brace, single or double quote characters.
 347  // For example, when you select text and type '(', Zed will surround the text with ().
 348  "use_auto_surround": true,
 349  // Whether indentation should be adjusted based on the context whilst typing.
 350  "auto_indent": true,
 351  // Whether indentation of pasted content should be adjusted based on the context.
 352  "auto_indent_on_paste": true,
 353  // Controls how the editor handles the autoclosed characters.
 354  // When set to `false`(default), skipping over and auto-removing of the closing characters
 355  // happen only for auto-inserted characters.
 356  // Otherwise(when `true`), the closing characters are always skipped over and auto-removed
 357  // no matter how they were inserted.
 358  "always_treat_brackets_as_autoclosed": false,
 359  // Controls where the `editor::Rewrap` action is allowed in the current language scope.
 360  //
 361  // This setting can take three values:
 362  //
 363  // 1. Only allow rewrapping in comments:
 364  //    "in_comments"
 365  // 2. Only allow rewrapping in the current selection(s):
 366  //    "in_selections"
 367  // 3. Allow rewrapping anywhere:
 368  //    "anywhere"
 369  //
 370  // When using values other than `in_comments`, it is possible for the rewrapping to produce code
 371  // that is syntactically invalid. Keep this in mind when selecting which behavior you would like
 372  // to use.
 373  //
 374  // Note: This setting has no effect in Vim mode, as rewrap is already allowed everywhere.
 375  "allow_rewrap": "in_comments",
 376  // Controls whether edit predictions are shown immediately (true)
 377  // or manually by triggering `editor::ShowEditPrediction` (false).
 378  "show_edit_predictions": true,
 379  // Controls whether edit predictions are shown in a given language scope.
 380  // Example: ["string", "comment"]
 381  "edit_predictions_disabled_in": [],
 382  // Whether to show tabs and spaces in the editor.
 383  // This setting can take four values:
 384  //
 385  // 1. Draw tabs and spaces only for the selected text (default):
 386  //    "selection"
 387  // 2. Do not draw any tabs or spaces:
 388  //    "none"
 389  // 3. Draw all invisible symbols:
 390  //    "all"
 391  // 4. Draw whitespaces at boundaries only:
 392  //    "boundary"
 393  // 5. Draw whitespaces only after non-whitespace characters:
 394  //    "trailing"
 395  // For a whitespace to be on a boundary, any of the following conditions need to be met:
 396  // - It is a tab
 397  // - It is adjacent to an edge (start or end)
 398  // - It is adjacent to a whitespace (left or right)
 399  "show_whitespaces": "selection",
 400  // Visible characters used to render whitespace when show_whitespaces is enabled.
 401  "whitespace_map": {
 402    "space": "•",
 403    "tab": "→",
 404  },
 405  // Settings related to calls in Zed
 406  "calls": {
 407    // Join calls with the microphone live by default
 408    "mute_on_join": false,
 409    // Share your project when you are the first to join a channel
 410    "share_on_join": false,
 411  },
 412  // Toolbar related settings
 413  "toolbar": {
 414    // Whether to show breadcrumbs.
 415    "breadcrumbs": true,
 416    // Whether to show quick action buttons.
 417    "quick_actions": true,
 418    // Whether to show the Selections menu in the editor toolbar.
 419    "selections_menu": true,
 420    // Whether to show agent review buttons in the editor toolbar.
 421    "agent_review": true,
 422    // Whether to show code action buttons in the editor toolbar.
 423    "code_actions": false,
 424  },
 425  // Whether to allow windows to tab together based on the user’s tabbing preference (macOS only).
 426  "use_system_window_tabs": false,
 427  // Titlebar related settings
 428  "title_bar": {
 429    // Whether to show the branch icon beside branch switcher in the titlebar.
 430    "show_branch_icon": false,
 431    // Whether to show the branch name button in the titlebar.
 432    "show_branch_name": true,
 433    // Whether to show the project host and name in the titlebar.
 434    "show_project_items": true,
 435    // Whether to show onboarding banners in the titlebar.
 436    "show_onboarding_banner": true,
 437    // Whether to show user picture in the titlebar.
 438    "show_user_picture": true,
 439    // Whether to show the user menu in the titlebar.
 440    "show_user_menu": true,
 441    // Whether to show the sign in button in the titlebar.
 442    "show_sign_in": true,
 443    // Whether to show the menus in the titlebar.
 444    "show_menus": false,
 445  },
 446  "audio": {
 447    // Opt into the new audio system.
 448    "experimental.rodio_audio": false,
 449    // Requires 'rodio_audio: true'
 450    //
 451    // Automatically increase or decrease you microphone's volume. This affects how
 452    // loud you sound to others.
 453    //
 454    // Recommended: off (default)
 455    // Microphones are too quite in zed, until everyone is on experimental
 456    // audio and has auto speaker volume on this will make you very loud
 457    // compared to other speakers.
 458    "experimental.auto_microphone_volume": false,
 459    // Requires 'rodio_audio: true'
 460    //
 461    // Automatically increate or decrease the volume of other call members.
 462    // This only affects how things sound for you.
 463    "experimental.auto_speaker_volume": true,
 464    // Requires 'rodio_audio: true'
 465    //
 466    // Remove background noises. Works great for typing, cars, dogs, AC. Does
 467    // not work well on music.
 468    "experimental.denoise": true,
 469    // Requires 'rodio_audio: true'
 470    //
 471    // Use audio parameters compatible with the previous versions of
 472    // experimental audio and non-experimental audio. When this is false you
 473    // will sound strange to anyone not on the latest experimental audio. In
 474    // the future we will migrate by setting this to false
 475    //
 476    // You need to rejoin a call for this setting to apply
 477    "experimental.legacy_audio_compatible": true,
 478  },
 479  // Scrollbar related settings
 480  "scrollbar": {
 481    // When to show the scrollbar in the editor.
 482    // This setting can take four values:
 483    //
 484    // 1. Show the scrollbar if there's important information or
 485    //    follow the system's configured behavior (default):
 486    //   "auto"
 487    // 2. Match the system's configured behavior:
 488    //    "system"
 489    // 3. Always show the scrollbar:
 490    //    "always"
 491    // 4. Never show the scrollbar:
 492    //    "never"
 493    "show": "auto",
 494    // Whether to show cursor positions in the scrollbar.
 495    "cursors": true,
 496    // Whether to show git diff indicators in the scrollbar.
 497    "git_diff": true,
 498    // Whether to show buffer search results in the scrollbar.
 499    "search_results": true,
 500    // Whether to show selected text occurrences in the scrollbar.
 501    "selected_text": true,
 502    // Whether to show selected symbol occurrences in the scrollbar.
 503    "selected_symbol": true,
 504    // Which diagnostic indicators to show in the scrollbar:
 505    //  - "none" or false: do not show diagnostics
 506    //  - "error": show only errors
 507    //  - "warning": show only errors and warnings
 508    //  - "information": show only errors, warnings, and information
 509    //  - "all" or true: show all diagnostics
 510    "diagnostics": "all",
 511    // Forcefully enable or disable the scrollbar for each axis
 512    "axes": {
 513      // When false, forcefully disables the horizontal scrollbar. Otherwise, obey other settings.
 514      "horizontal": true,
 515      // When false, forcefully disables the vertical scrollbar. Otherwise, obey other settings.
 516      "vertical": true,
 517    },
 518  },
 519  // Minimap related settings
 520  "minimap": {
 521    // When to show the minimap in the editor.
 522    // This setting can take three values:
 523    // 1. Show the minimap if the editor's scrollbar is visible:
 524    //    "auto"
 525    // 2. Always show the minimap:
 526    //    "always"
 527    // 3. Never show the minimap:
 528    //    "never" (default)
 529    "show": "never",
 530    // Where to show the minimap in the editor.
 531    // This setting can take two values:
 532    // 1. Show the minimap on the focused editor only:
 533    //    "active_editor" (default)
 534    // 2. Show the minimap on all open editors:
 535    //    "all_editors"
 536    "display_in": "active_editor",
 537    // When to show the minimap thumb.
 538    // This setting can take two values:
 539    // 1. Show the minimap thumb if the mouse is over the minimap:
 540    //    "hover"
 541    // 2. Always show the minimap thumb:
 542    //    "always" (default)
 543    "thumb": "always",
 544    // How the minimap thumb border should look.
 545    // This setting can take five values:
 546    // 1. Display a border on all sides of the thumb:
 547    //    "thumb_border": "full"
 548    // 2. Display a border on all sides except the left side of the thumb:
 549    //    "thumb_border": "left_open" (default)
 550    // 3. Display a border on all sides except the right side of the thumb:
 551    //    "thumb_border": "right_open"
 552    // 4. Display a border only on the left side of the thumb:
 553    //    "thumb_border": "left_only"
 554    // 5. Display the thumb without any border:
 555    //    "thumb_border": "none"
 556    "thumb_border": "left_open",
 557    // How to highlight the current line in the minimap.
 558    // This setting can take the following values:
 559    //
 560    // 1. `null` to inherit the editor `current_line_highlight` setting (default)
 561    // 2. "line" or "all" to highlight the current line in the minimap.
 562    // 3. "gutter" or "none" to not highlight the current line in the minimap.
 563    "current_line_highlight": null,
 564    // Maximum number of columns to display in the minimap.
 565    "max_width_columns": 80,
 566  },
 567  // Enable middle-click paste on Linux.
 568  "middle_click_paste": true,
 569  // What to do when multibuffer is double clicked in some of its excerpts
 570  // (parts of singleton buffers).
 571  // May take 2 values:
 572  //  1. Behave as a regular buffer and select the whole word (default).
 573  //         "double_click_in_multibuffer": "select"
 574  //  2. Open the excerpt clicked as a new buffer in the new tab.
 575  //         "double_click_in_multibuffer": "open",
 576  // For the case of "open", regular selection behavior can be achieved by holding `alt` when double clicking.
 577  "double_click_in_multibuffer": "select",
 578  "gutter": {
 579    // Whether to show line numbers in the gutter.
 580    "line_numbers": true,
 581    // Whether to show runnables buttons in the gutter.
 582    "runnables": true,
 583    // Whether to show breakpoints in the gutter.
 584    "breakpoints": true,
 585    // Whether to show fold buttons in the gutter.
 586    "folds": true,
 587    // Minimum number of characters to reserve space for in the gutter.
 588    "min_line_number_digits": 4,
 589  },
 590  "indent_guides": {
 591    // Whether to show indent guides in the editor.
 592    "enabled": true,
 593    // The width of the indent guides in pixels, between 1 and 10.
 594    "line_width": 1,
 595    // The width of the active indent guide in pixels, between 1 and 10.
 596    "active_line_width": 1,
 597    // Determines how indent guides are colored.
 598    // This setting can take the following three values:
 599    //
 600    // 1. "disabled"
 601    // 2. "fixed"
 602    // 3. "indent_aware"
 603    "coloring": "fixed",
 604    // Determines how indent guide backgrounds are colored.
 605    // This setting can take the following two values:
 606    //
 607    // 1. "disabled"
 608    // 2. "indent_aware"
 609    "background_coloring": "disabled",
 610  },
 611  // Whether the editor will scroll beyond the last line.
 612  "scroll_beyond_last_line": "one_page",
 613  // The number of lines to keep above/below the cursor when scrolling with the keyboard
 614  "vertical_scroll_margin": 3,
 615  // Whether to scroll when clicking near the edge of the visible text area.
 616  "autoscroll_on_clicks": false,
 617  // The number of characters to keep on either side when scrolling with the mouse
 618  "horizontal_scroll_margin": 5,
 619  // Scroll sensitivity multiplier. This multiplier is applied
 620  // to both the horizontal and vertical delta values while scrolling.
 621  "scroll_sensitivity": 1.0,
 622  // Scroll sensitivity multiplier for fast scrolling. This multiplier is applied
 623  // to both the horizontal and vertical delta values while scrolling. Fast scrolling
 624  // happens when a user holds the alt or option key while scrolling.
 625  "fast_scroll_sensitivity": 4.0,
 626  "sticky_scroll": {
 627    // Whether to stick scopes to the top of the editor.
 628    "enabled": false,
 629  },
 630  "relative_line_numbers": "disabled",
 631  // If 'search_wrap' is disabled, search result do not wrap around the end of the file.
 632  "search_wrap": true,
 633  // Search options to enable by default when opening new project and buffer searches.
 634  "search": {
 635    // Whether to show the project search button in the status bar.
 636    "button": true,
 637    // Whether to only match on whole words.
 638    "whole_word": false,
 639    // Whether to match case sensitively.
 640    "case_sensitive": false,
 641    // Whether to include gitignored files in search results.
 642    "include_ignored": false,
 643    // Whether to interpret the search query as a regular expression.
 644    "regex": false,
 645    // Whether to center the cursor on each search match when navigating.
 646    "center_on_match": false,
 647  },
 648  // When to populate a new search's query based on the text under the cursor.
 649  // This setting can take the following three values:
 650  //
 651  // 1. Always populate the search query with the word under the cursor (default).
 652  //    "always"
 653  // 2. Only populate the search query when there is text selected
 654  //    "selection"
 655  // 3. Never populate the search query
 656  //    "never"
 657  "seed_search_query_from_cursor": "always",
 658  // When enabled, automatically adjusts search case sensitivity based on your query.
 659  // If your search query contains any uppercase letters, the search becomes case-sensitive;
 660  // if it contains only lowercase letters, the search becomes case-insensitive.
 661  "use_smartcase_search": false,
 662  // Inlay hint related settings
 663  "inlay_hints": {
 664    // Global switch to toggle hints on and off, switched off by default.
 665    "enabled": false,
 666    // Toggle certain types of hints on and off, all switched on by default.
 667    "show_type_hints": true,
 668    "show_parameter_hints": true,
 669    "show_value_hints": true,
 670    // Corresponds to null/None LSP hint type value.
 671    "show_other_hints": true,
 672    // Whether to show a background for inlay hints.
 673    //
 674    // If set to `true`, the background will use the `hint.background` color from the current theme.
 675    "show_background": false,
 676    // Time to wait after editing the buffer, before requesting the hints,
 677    // set to 0 to disable debouncing.
 678    "edit_debounce_ms": 700,
 679    // Time to wait after scrolling the buffer, before requesting the hints,
 680    // set to 0 to disable debouncing.
 681    "scroll_debounce_ms": 50,
 682    // A set of modifiers which, when pressed, will toggle the visibility of inlay hints.
 683    // If the set if empty or not all the modifiers specified are pressed, inlay hints will not be toggled.
 684    "toggle_on_modifiers_press": {
 685      "control": false,
 686      "shift": false,
 687      "alt": false,
 688      "platform": false,
 689      "function": false,
 690    },
 691  },
 692  // Whether to resize all the panels in a dock when resizing the dock.
 693  // Can be a combination of "left", "right" and "bottom".
 694  "resize_all_panels_in_dock": ["left"],
 695  "project_panel": {
 696    // Whether to show the project panel button in the status bar
 697    "button": true,
 698    // Whether to hide the gitignore entries in the project panel.
 699    "hide_gitignore": false,
 700    // Default width of the project panel.
 701    "default_width": 240,
 702    // Where to dock the project panel. Can be 'left' or 'right'.
 703    "dock": "left",
 704    // Spacing between worktree entries in the project panel. Can be 'comfortable' or 'standard'.
 705    "entry_spacing": "comfortable",
 706    // Whether to show file icons in the project panel.
 707    "file_icons": true,
 708    // Whether to show folder icons or chevrons for directories in the project panel.
 709    "folder_icons": true,
 710    // Whether to show the git status in the project panel.
 711    "git_status": true,
 712    // Amount of indentation for nested items.
 713    "indent_size": 20,
 714    // Whether to reveal it in the project panel automatically,
 715    // when a corresponding project entry becomes active.
 716    // Gitignored entries are never auto revealed.
 717    "auto_reveal_entries": true,
 718    // Whether the project panel should open on startup.
 719    "starts_open": true,
 720    // Whether to fold directories automatically and show compact folders
 721    // (e.g. "a/b/c" ) when a directory has only one subdirectory inside.
 722    "auto_fold_dirs": true,
 723    // Scrollbar-related settings
 724    "scrollbar": {
 725      // When to show the scrollbar in the project panel.
 726      // This setting can take five values:
 727      //
 728      // 1. null (default): Inherit editor settings
 729      // 2. Show the scrollbar if there's important information or
 730      //    follow the system's configured behavior (default):
 731      //   "auto"
 732      // 3. Match the system's configured behavior:
 733      //    "system"
 734      // 4. Always show the scrollbar:
 735      //    "always"
 736      // 5. Never show the scrollbar:
 737      //    "never"
 738      "show": null,
 739    },
 740    // Which files containing diagnostic errors/warnings to mark in the project panel.
 741    // This setting can take the following three values:
 742    //
 743    // 1. Do not mark any files:
 744    //    "off"
 745    // 2. Only mark files with errors:
 746    //    "errors"
 747    // 3. Mark files with errors and warnings:
 748    //    "all"
 749    "show_diagnostics": "all",
 750    // Whether to stick parent directories at top of the project panel.
 751    "sticky_scroll": true,
 752    // Settings related to indent guides in the project panel.
 753    "indent_guides": {
 754      // When to show indent guides in the project panel.
 755      // This setting can take two values:
 756      //
 757      // 1. Always show indent guides:
 758      //    "always"
 759      // 2. Never show indent guides:
 760      //    "never"
 761      "show": "always",
 762    },
 763    // Sort order for entries in the project panel.
 764    // This setting can take three values:
 765    //
 766    // 1. Show directories first, then files:
 767    //    "directories_first"
 768    // 2. Mix directories and files together:
 769    //    "mixed"
 770    // 3. Show files first, then directories:
 771    //    "files_first"
 772    "sort_mode": "directories_first",
 773    // Whether to enable drag-and-drop operations in the project panel.
 774    "drag_and_drop": true,
 775    // Whether to hide the root entry when only one folder is open in the window.
 776    "hide_root": false,
 777    // Whether to hide the hidden entries in the project panel.
 778    "hide_hidden": false,
 779    // Settings for automatically opening files.
 780    "auto_open": {
 781      // Whether to automatically open newly created files in the editor.
 782      "on_create": true,
 783      // Whether to automatically open files after pasting or duplicating them.
 784      "on_paste": true,
 785      // Whether to automatically open files dropped from external sources.
 786      "on_drop": true,
 787    },
 788  },
 789  "outline_panel": {
 790    // Whether to show the outline panel button in the status bar
 791    "button": true,
 792    // Default width of the outline panel.
 793    "default_width": 300,
 794    // Where to dock the outline panel. Can be 'left' or 'right'.
 795    "dock": "left",
 796    // Whether to show file icons in the outline panel.
 797    "file_icons": true,
 798    // Whether to show folder icons or chevrons for directories in the outline panel.
 799    "folder_icons": true,
 800    // Whether to show the git status in the outline panel.
 801    "git_status": true,
 802    // Amount of indentation for nested items.
 803    "indent_size": 20,
 804    // Whether to reveal it in the outline panel automatically,
 805    // when a corresponding outline entry becomes active.
 806    // Gitignored entries are never auto revealed.
 807    "auto_reveal_entries": true,
 808    // Whether to fold directories automatically
 809    // when a directory has only one directory inside.
 810    "auto_fold_dirs": true,
 811    // Settings related to indent guides in the outline panel.
 812    "indent_guides": {
 813      // When to show indent guides in the outline panel.
 814      // This setting can take two values:
 815      //
 816      // 1. Always show indent guides:
 817      //    "always"
 818      // 2. Never show indent guides:
 819      //    "never"
 820      "show": "always",
 821    },
 822    // Scrollbar-related settings
 823    "scrollbar": {
 824      // When to show the scrollbar in the project panel.
 825      // This setting can take five values:
 826      //
 827      // 1. null (default): Inherit editor settings
 828      // 2. Show the scrollbar if there's important information or
 829      //    follow the system's configured behavior (default):
 830      //   "auto"
 831      // 3. Match the system's configured behavior:
 832      //    "system"
 833      // 4. Always show the scrollbar:
 834      //    "always"
 835      // 5. Never show the scrollbar:
 836      //    "never"
 837      "show": null,
 838    },
 839    // Default depth to expand outline items in the current file.
 840    // Set to 0 to collapse all items that have children, 1 or higher to collapse items at that depth or deeper.
 841    "expand_outlines_with_depth": 100,
 842  },
 843  "collaboration_panel": {
 844    // Whether to show the collaboration panel button in the status bar.
 845    "button": true,
 846    // Where to dock the collaboration panel. Can be 'left' or 'right'.
 847    "dock": "left",
 848    // Default width of the collaboration panel.
 849    "default_width": 240,
 850  },
 851  "git_panel": {
 852    // Whether to show the git panel button in the status bar.
 853    "button": true,
 854    // Where to dock the git panel. Can be 'left' or 'right'.
 855    "dock": "left",
 856    // Default width of the git panel.
 857    "default_width": 360,
 858    // Style of the git status indicator in the panel.
 859    //
 860    // Choices: label_color, icon
 861    // Default: icon
 862    "status_style": "icon",
 863    // What branch name to use if `init.defaultBranch` is not set
 864    //
 865    // Default: main
 866    "fallback_branch_name": "main",
 867    // Whether to sort entries in the panel by path or by status (the default).
 868    //
 869    // Default: false
 870    "sort_by_path": false,
 871    // Whether to collapse untracked files in the diff panel.
 872    //
 873    // Default: false
 874    "collapse_untracked_diff": false,
 875    /// Whether to show entries with tree or flat view in the panel
 876    ///
 877    /// Default: false
 878    "tree_view": false,
 879    "scrollbar": {
 880      // When to show the scrollbar in the git panel.
 881      //
 882      // Choices: always, auto, never, system
 883      // Default: inherits editor scrollbar settings
 884      // "show": null
 885    },
 886  },
 887  "message_editor": {
 888    // Whether to automatically replace emoji shortcodes with emoji characters.
 889    // For example: typing `:wave:` gets replaced with `👋`.
 890    "auto_replace_emoji_shortcode": true,
 891  },
 892  "notification_panel": {
 893    // Whether to show the notification panel button in the status bar.
 894    "button": true,
 895    // Where to dock the notification panel. Can be 'left' or 'right'.
 896    "dock": "right",
 897    // Default width of the notification panel.
 898    "default_width": 380,
 899  },
 900  "agent": {
 901    // Whether the inline assistant should use streaming tools, when available
 902    "inline_assistant_use_streaming_tools": true,
 903    // Whether the agent is enabled.
 904    "enabled": true,
 905    // What completion mode to start new threads in, if available. Can be 'normal' or 'burn'.
 906    "preferred_completion_mode": "normal",
 907    // Whether to show the agent panel button in the status bar.
 908    "button": true,
 909    // Where to dock the agent panel. Can be 'left', 'right' or 'bottom'.
 910    "dock": "right",
 911    // Where to dock the agents panel. Can be 'left' or 'right'.
 912    "agents_panel_dock": "left",
 913    // Default width when the agent panel is docked to the left or right.
 914    "default_width": 640,
 915    // Default height when the agent panel is docked to the bottom.
 916    "default_height": 320,
 917    // The view to use by default (thread, or text_thread)
 918    "default_view": "thread",
 919    // The default model to use when creating new threads.
 920    "default_model": {
 921      // The provider to use.
 922      "provider": "zed.dev",
 923      // The model to use.
 924      "model": "claude-sonnet-4",
 925    },
 926    // Additional parameters for language model requests. When making a request to a model, parameters will be taken
 927    // from the last entry in this list that matches the model's provider and name. In each entry, both provider
 928    // and model are optional, so that you can specify parameters for either one.
 929    "model_parameters": [
 930      // To set parameters for all requests to OpenAI models:
 931      // {
 932      //   "provider": "openai",
 933      //   "temperature": 0.5
 934      // }
 935      //
 936      // To set parameters for all requests in general:
 937      // {
 938      //   "temperature": 0
 939      // }
 940      //
 941      // To set parameters for a specific provider and model:
 942      // {
 943      //   "provider": "zed.dev",
 944      //   "model": "claude-sonnet-4",
 945      //   "temperature": 1.0
 946      // }
 947    ],
 948    // When enabled, the agent can run potentially destructive actions without asking for your confirmation.
 949    //
 950    // Note: This setting has no effect on external agents that support permission modes, such as Claude Code.
 951    //       You can set `agent_servers.claude.default_mode` to `bypassPermissions` to skip all permission requests.
 952    "always_allow_tool_actions": false,
 953    // When enabled, agent edits will be displayed in single-file editors for review
 954    "single_file_review": true,
 955    // When enabled, show voting thumbs for feedback on agent edits.
 956    "enable_feedback": true,
 957    "default_profile": "write",
 958    "profiles": {
 959      "write": {
 960        "name": "Write",
 961        "enable_all_context_servers": true,
 962        "tools": {
 963          "copy_path": true,
 964          "create_directory": true,
 965          "delete_path": true,
 966          "diagnostics": true,
 967          "edit_file": true,
 968          "fetch": true,
 969          "list_directory": true,
 970          "project_notifications": false,
 971          "move_path": true,
 972          "now": true,
 973          "find_path": true,
 974          "read_file": true,
 975          "open": true,
 976          "grep": true,
 977          "terminal": true,
 978          "thinking": true,
 979          "web_search": true,
 980        },
 981      },
 982      "ask": {
 983        "name": "Ask",
 984        // We don't know which of the context server tools are safe for the "Ask" profile, so we don't enable them by default.
 985        // "enable_all_context_servers": true,
 986        "tools": {
 987          "diagnostics": true,
 988          "fetch": true,
 989          "list_directory": true,
 990          "project_notifications": false,
 991          "now": true,
 992          "find_path": true,
 993          "read_file": true,
 994          "open": true,
 995          "grep": true,
 996          "thinking": true,
 997          "web_search": true,
 998        },
 999      },
1000      "minimal": {
1001        "name": "Minimal",
1002        "enable_all_context_servers": false,
1003        "tools": {},
1004      },
1005    },
1006    // Where to show notifications when the agent has either completed
1007    // its response, or else needs confirmation before it can run a
1008    // tool action.
1009    // "primary_screen" - Show the notification only on your primary screen (default)
1010    // "all_screens" - Show these notifications on all screens
1011    // "never" - Never show these notifications
1012    "notify_when_agent_waiting": "primary_screen",
1013    // Whether to play a sound when the agent has either completed
1014    // its response, or needs user input.
1015
1016    // Default: false
1017    "play_sound_when_agent_done": false,
1018    // Whether to have edit cards in the agent panel expanded, showing a preview of the full diff.
1019    //
1020    // Default: true
1021    "expand_edit_card": true,
1022    // Whether to have terminal cards in the agent panel expanded, showing the whole command output.
1023    //
1024    // Default: true
1025    "expand_terminal_card": true,
1026    // Whether to always use cmd-enter (or ctrl-enter on Linux or Windows) to send messages in the agent panel.
1027    //
1028    // Default: false
1029    "use_modifier_to_send": false,
1030    // Minimum number of lines to display in the agent message editor.
1031    //
1032    // Default: 4
1033    "message_editor_min_lines": 4,
1034  },
1035  // Whether the screen sharing icon is shown in the os status bar.
1036  "show_call_status_icon": true,
1037  // Whether to use language servers to provide code intelligence.
1038  "enable_language_server": true,
1039  // Whether to perform linked edits of associated ranges, if the language server supports it.
1040  // For example, when editing opening <html> tag, the contents of the closing </html> tag will be edited as well.
1041  "linked_edits": true,
1042  // The list of language servers to use (or disable) for all languages.
1043  //
1044  // This is typically customized on a per-language basis.
1045  "language_servers": ["..."],
1046
1047  // When to automatically save edited buffers. This setting can
1048  // take four values.
1049  //
1050  // 1. Never automatically save:
1051  //     "autosave": "off",
1052  // 2. Save when changing focus away from the Zed window:
1053  //     "autosave": "on_window_change",
1054  // 3. Save when changing focus away from a specific buffer:
1055  //     "autosave": "on_focus_change",
1056  // 4. Save when idle for a certain amount of time:
1057  //     "autosave": { "after_delay": {"milliseconds": 500} },
1058  "autosave": "off",
1059  // Maximum number of tabs per pane. Unset for unlimited.
1060  "max_tabs": null,
1061  // Settings related to the editor's tab bar.
1062  "tab_bar": {
1063    // Whether or not to show the tab bar in the editor
1064    "show": true,
1065    // Whether or not to show the navigation history buttons.
1066    "show_nav_history_buttons": true,
1067    // Whether or not to show the tab bar buttons.
1068    "show_tab_bar_buttons": true,
1069  },
1070  // Settings related to the editor's tabs
1071  "tabs": {
1072    // Show git status colors in the editor tabs.
1073    "git_status": false,
1074    // Position of the close button on the editor tabs.
1075    // One of: ["right", "left"]
1076    "close_position": "right",
1077    // Whether to show the file icon for a tab.
1078    "file_icons": false,
1079    // Controls the appearance behavior of the tab's close button.
1080    //
1081    // 1. Show it just upon hovering the tab. (default)
1082    //     "hover"
1083    // 2. Show it persistently.
1084    //     "always"
1085    // 3. Never show it, even if hovering it.
1086    //     "hidden"
1087    "show_close_button": "hover",
1088    // What to do after closing the current tab.
1089    //
1090    // 1. Activate the tab that was open previously (default)
1091    //     "history"
1092    // 2. Activate the right neighbour tab if present
1093    //     "neighbour"
1094    // 3. Activate the left neighbour tab if present
1095    //     "left_neighbour"
1096    "activate_on_close": "history",
1097    // Which files containing diagnostic errors/warnings to mark in the tabs.
1098    // Diagnostics are only shown when file icons are also active.
1099    // This setting only works when can take the following three values:
1100    //
1101    // 1. Do not mark any files:
1102    //    "off"
1103    // 2. Only mark files with errors:
1104    //    "errors"
1105    // 3. Mark files with errors and warnings:
1106    //    "all"
1107    "show_diagnostics": "off",
1108  },
1109  // Settings related to preview tabs.
1110  "preview_tabs": {
1111    // Whether preview tabs should be enabled.
1112    // Preview tabs allow you to open files in preview mode, where they close automatically
1113    // when you open another preview tab.
1114    // This is useful for quickly viewing files without cluttering your workspace.
1115    "enabled": true,
1116    // Whether to open tabs in preview mode when opened from the project panel with a single click.
1117    "enable_preview_from_project_panel": true,
1118    // Whether to open tabs in preview mode when selected from the file finder.
1119    "enable_preview_from_file_finder": false,
1120    // Whether to open tabs in preview mode when opened from a multibuffer.
1121    "enable_preview_from_multibuffer": true,
1122    // Whether to open tabs in preview mode when code navigation is used to open a multibuffer.
1123    "enable_preview_multibuffer_from_code_navigation": false,
1124    // Whether to open tabs in preview mode when code navigation is used to open a single file.
1125    "enable_preview_file_from_code_navigation": true,
1126    // Whether to keep tabs in preview mode when code navigation is used to navigate away from them.
1127    // If `enable_preview_file_from_code_navigation` or `enable_preview_multibuffer_from_code_navigation` is also true, the new tab may replace the existing one.
1128    "enable_keep_preview_on_code_navigation": false,
1129  },
1130  // Settings related to the file finder.
1131  "file_finder": {
1132    // Whether to show file icons in the file finder.
1133    "file_icons": true,
1134    // Determines how much space the file finder can take up in relation to the available window width.
1135    // There are 5 possible width values:
1136    //
1137    // 1. Small: This value is essentially a fixed width.
1138    //    "modal_max_width": "small"
1139    // 2. Medium:
1140    //    "modal_max_width": "medium"
1141    // 3. Large:
1142    //    "modal_max_width": "large"
1143    // 4. Extra Large:
1144    //    "modal_max_width": "xlarge"
1145    // 5. Fullscreen: This value removes any horizontal padding, as it consumes the whole viewport width.
1146    //    "modal_max_width": "full"
1147    //
1148    // Default: small
1149    "modal_max_width": "small",
1150    // Determines whether the file finder should skip focus for the active file in search results.
1151    // There are 2 possible values:
1152    //
1153    // 1. true: When searching for files, if the currently active file appears as the first result,
1154    //    auto-focus will skip it and focus the second result instead.
1155    //    "skip_focus_for_active_in_search": true
1156    //
1157    // 2. false: When searching for files, the first result will always receive focus,
1158    //    even if it's the currently active file.
1159    //    "skip_focus_for_active_in_search": false
1160    //
1161    // Default: true
1162    "skip_focus_for_active_in_search": true,
1163    // Whether to show the git status in the file finder.
1164    "git_status": true,
1165    // Whether to use gitignored files when searching.
1166    // Only the file Zed had indexed will be used, not necessary all the gitignored files.
1167    //
1168    // Can accept 3 values:
1169    //   * "all": Use all gitignored files
1170    //   * "indexed": Use only the files Zed had indexed
1171    //   * "smart": Be smart and search for ignored when called from a gitignored worktree
1172    "include_ignored": "smart",
1173  },
1174  // Whether or not to remove any trailing whitespace from lines of a buffer
1175  // before saving it.
1176  "remove_trailing_whitespace_on_save": true,
1177  // Whether to start a new line with a comment when a previous line is a comment as well.
1178  "extend_comment_on_newline": true,
1179  // Removes any lines containing only whitespace at the end of the file and
1180  // ensures just one newline at the end.
1181  "ensure_final_newline_on_save": true,
1182  // Whether or not to perform a buffer format before saving: [on, off]
1183  // Keep in mind, if the autosave with delay is enabled, format_on_save will be ignored
1184  "format_on_save": "on",
1185  // How to perform a buffer format. This setting can take multiple values:
1186  //
1187  // 1. Default. Format files using Zed's Prettier integration (if applicable),
1188  //    or falling back to formatting via language server:
1189  //     "formatter": "auto"
1190  // 2. Format code using the current language server:
1191  //     "formatter": "language_server"
1192  // 3. Format code using a specific language server:
1193  //     "formatter": {"language_server": {"name": "ruff"}}
1194  // 4. Format code using an external command:
1195  //     "formatter": {
1196  //       "external": {
1197  //         "command": "prettier",
1198  //         "arguments": ["--stdin-filepath", "{buffer_path}"]
1199  //       }
1200  //     }
1201  // 5. Format code using Zed's Prettier integration:
1202  //     "formatter": "prettier"
1203  // 6. Format code using a code action
1204  //     "formatter": {"code_action": "source.fixAll.eslint"}
1205  // 7. An array of any format step specified above to apply in order
1206  //     "formatter": [{"code_action": "source.fixAll.eslint"}, "prettier"]
1207  "formatter": "auto",
1208  // How to soft-wrap long lines of text.
1209  // Possible values:
1210  //
1211  // 1. Prefer a single line generally, unless an overly long line is encountered.
1212  //      "soft_wrap": "none",
1213  //      "soft_wrap": "prefer_line", // (deprecated, same as "none")
1214  // 2. Soft wrap lines that overflow the editor.
1215  //      "soft_wrap": "editor_width",
1216  // 3. Soft wrap lines at the preferred line length.
1217  //      "soft_wrap": "preferred_line_length",
1218  // 4. Soft wrap lines at the preferred line length or the editor width (whichever is smaller).
1219  //      "soft_wrap": "bounded",
1220  "soft_wrap": "none",
1221  // The column at which to soft-wrap lines, for buffers where soft-wrap
1222  // is enabled.
1223  "preferred_line_length": 80,
1224  // Whether to indent lines using tab characters, as opposed to multiple
1225  // spaces.
1226  "hard_tabs": false,
1227  // How many columns a tab should occupy.
1228  "tab_size": 4,
1229  // What debuggers are preferred by default for all languages.
1230  "debuggers": [],
1231  // Whether to enable word diff highlighting in the editor.
1232  //
1233  // When enabled, changed words within modified lines are highlighted
1234  // to show exactly what changed.
1235  //
1236  // Default: true
1237  "word_diff_enabled": true,
1238  // Control what info is collected by Zed.
1239  "telemetry": {
1240    // Send debug info like crash reports.
1241    "diagnostics": true,
1242    // Send anonymized usage data like what languages you're using Zed with.
1243    "metrics": true,
1244  },
1245  // Whether to disable all AI features in Zed.
1246  //
1247  // Default: false
1248  "disable_ai": false,
1249  // Automatically update Zed. This setting may be ignored on Linux if
1250  // installed through a package manager.
1251  "auto_update": true,
1252  // How to render LSP `textDocument/documentColor` colors in the editor.
1253  //
1254  // Possible values:
1255  //
1256  // 1. Do not query and render document colors.
1257  //      "lsp_document_colors": "none",
1258  // 2. Render document colors as inlay hints near the color text (default).
1259  //      "lsp_document_colors": "inlay",
1260  // 3. Draw a border around the color text.
1261  //      "lsp_document_colors": "border",
1262  // 4. Draw a background behind the color text..
1263  //      "lsp_document_colors": "background",
1264  "lsp_document_colors": "inlay",
1265  // Diagnostics configuration.
1266  "diagnostics": {
1267    // Whether to show the project diagnostics button in the status bar.
1268    "button": true,
1269    // Whether to show warnings or not by default.
1270    "include_warnings": true,
1271    // Settings for using LSP pull diagnostics mechanism in Zed.
1272    "lsp_pull_diagnostics": {
1273      // Whether to pull for diagnostics or not.
1274      "enabled": true,
1275      // Minimum time to wait before pulling diagnostics from the language server(s).
1276      // 0 turns the debounce off.
1277      "debounce_ms": 50,
1278    },
1279    // Settings for inline diagnostics
1280    "inline": {
1281      // Whether to show diagnostics inline or not
1282      "enabled": false,
1283      // The delay in milliseconds to show inline diagnostics after the
1284      // last diagnostic update.
1285      "update_debounce_ms": 150,
1286      // The amount of padding between the end of the source line and the start
1287      // of the inline diagnostic in units of em widths.
1288      "padding": 4,
1289      // The minimum column to display inline diagnostics. This setting can be
1290      // used to horizontally align inline diagnostics at some column. Lines
1291      // longer than this value will still push diagnostics further to the right.
1292      "min_column": 0,
1293      // The minimum severity of the diagnostics to show inline.
1294      // Inherits editor's diagnostics' max severity settings when `null`.
1295      "max_severity": null,
1296    },
1297  },
1298  // Files or globs of files that will be excluded by Zed entirely. They will be skipped during file
1299  // scans, file searches, and not be displayed in the project file tree. Takes precedence over `file_scan_inclusions`.
1300  "file_scan_exclusions": [
1301    "**/.git",
1302    "**/.svn",
1303    "**/.hg",
1304    "**/.jj",
1305    "**/.repo",
1306    "**/CVS",
1307    "**/.DS_Store",
1308    "**/Thumbs.db",
1309    "**/.classpath",
1310    "**/.settings",
1311  ],
1312  // Files or globs of files that will be included by Zed, even when ignored by git. This is useful
1313  // for files that are not tracked by git, but are still important to your project. Note that globs
1314  // that are overly broad can slow down Zed's file scanning. `file_scan_exclusions` takes
1315  // precedence over these inclusions.
1316  "file_scan_inclusions": [".env*"],
1317  // Globs to match files that will be considered "hidden". These files can be hidden from the
1318  // project panel by toggling the "hide_hidden" setting.
1319  "hidden_files": ["**/.*"],
1320  // Git gutter behavior configuration.
1321  "git": {
1322    // Control whether the git gutter is shown. May take 2 values:
1323    // 1. Show the gutter
1324    //      "git_gutter": "tracked_files"
1325    // 2. Hide the gutter
1326    //      "git_gutter": "hide"
1327    "git_gutter": "tracked_files",
1328    /// Sets the debounce threshold (in milliseconds) after which changes are reflected in the git gutter.
1329    ///
1330    /// Default: 0
1331    "gutter_debounce": 0,
1332    // Control whether the git blame information is shown inline,
1333    // in the currently focused line.
1334    "inline_blame": {
1335      "enabled": true,
1336      // Sets a delay after which the inline blame information is shown.
1337      // Delay is restarted with every cursor movement.
1338      "delay_ms": 0,
1339      // The amount of padding between the end of the source line and the start
1340      // of the inline blame in units of em widths.
1341      "padding": 7,
1342      // Whether or not to display the git commit summary on the same line.
1343      "show_commit_summary": false,
1344      // The minimum column number to show the inline blame information at
1345      "min_column": 0,
1346    },
1347    "blame": {
1348      "show_avatar": true,
1349    },
1350    // Control which information is shown in the branch picker.
1351    "branch_picker": {
1352      "show_author_name": true,
1353    },
1354    // How git hunks are displayed visually in the editor.
1355    // This setting can take two values:
1356    //
1357    // 1. Show unstaged hunks filled and staged hunks hollow:
1358    //    "hunk_style": "staged_hollow"
1359    // 2. Show unstaged hunks hollow and staged hunks filled:
1360    //    "hunk_style": "unstaged_hollow"
1361    "hunk_style": "staged_hollow",
1362    // Should the name or path be displayed first in the git view.
1363    // "path_style": "file_name_first" or "file_path_first"
1364    "path_style": "file_name_first",
1365  },
1366  // The list of custom Git hosting providers.
1367  "git_hosting_providers": [
1368    // {
1369    //   "provider": "github",
1370    //   "name": "BigCorp GitHub",
1371    //   "base_url": "https://code.big-corp.com"
1372    // }
1373  ],
1374  // Configuration for how direnv configuration should be loaded. May take 2 values:
1375  // 1. Load direnv configuration using `direnv export json` directly.
1376  //      "load_direnv": "direct"
1377  // 2. Load direnv configuration through the shell hook, works for POSIX shells and fish.
1378  //      "load_direnv": "shell_hook"
1379  // 3. Don't load direnv configuration at all.
1380  //      "load_direnv": "disabled"
1381  "load_direnv": "direct",
1382  "edit_predictions": {
1383    // A list of globs representing files that edit predictions should be disabled for.
1384    // There's a sensible default list of globs already included.
1385    // Any addition to this list will be merged with the default list.
1386    // Globs are matched relative to the worktree root,
1387    // except when starting with a slash (/) or equivalent in Windows.
1388    "disabled_globs": [
1389      "**/.env*",
1390      "**/*.pem",
1391      "**/*.key",
1392      "**/*.cert",
1393      "**/*.crt",
1394      "**/.dev.vars",
1395      "**/secrets.yml",
1396      "**/.zed/settings.json", // zed project settings
1397      "/**/zed/settings.json", // zed user settings
1398      "/**/zed/keymap.json",
1399    ],
1400    // When to show edit predictions previews in buffer.
1401    // This setting takes two possible values:
1402    // 1. Display predictions inline when there are no language server completions available.
1403    //     "mode": "eager"
1404    // 2. Display predictions inline only when holding a modifier key (alt by default).
1405    //     "mode": "subtle"
1406    "mode": "eager",
1407    // Copilot-specific settings
1408    // "copilot": {
1409    //   "enterprise_uri": "",
1410    //   "proxy": "",
1411    //   "proxy_no_verify": false
1412    // },
1413    "copilot": {
1414      "enterprise_uri": null,
1415      "proxy": null,
1416      "proxy_no_verify": null,
1417    },
1418    "codestral": {
1419      "api_url": "https://codestral.mistral.ai",
1420      "model": "codestral-latest",
1421      "max_tokens": 150,
1422    },
1423    // Whether edit predictions are enabled when editing text threads in the agent panel.
1424    // This setting has no effect if globally disabled.
1425    "enabled_in_text_threads": true,
1426  },
1427  // Settings specific to journaling
1428  "journal": {
1429    // The path of the directory where journal entries are stored
1430    "path": "~",
1431    // What format to display the hours in
1432    // May take 2 values:
1433    // 1. hour12
1434    // 2. hour24
1435    "hour_format": "hour12",
1436  },
1437  // Status bar-related settings.
1438  "status_bar": {
1439    // Whether to show the status bar.
1440    "experimental.show": true,
1441    // Whether to show the active language button in the status bar.
1442    "active_language_button": true,
1443    // Whether to show the cursor position button in the status bar.
1444    "cursor_position_button": true,
1445    // Whether to show active line endings button in the status bar.
1446    "line_endings_button": false,
1447  },
1448  // Settings specific to the terminal
1449  "terminal": {
1450    // What shell to use when opening a terminal. May take 3 values:
1451    // 1. Use the system's default terminal configuration in /etc/passwd
1452    //      "shell": "system"
1453    // 2. A program:
1454    //      "shell": {
1455    //        "program": "sh"
1456    //      }
1457    // 3. A program with arguments:
1458    //     "shell": {
1459    //         "with_arguments": {
1460    //           "program": "/bin/bash",
1461    //           "args": ["--login"]
1462    //         }
1463    //     }
1464    "shell": "system",
1465    // Where to dock terminals panel. Can be `left`, `right`, `bottom`.
1466    "dock": "bottom",
1467    // Default width when the terminal is docked to the left or right.
1468    "default_width": 640,
1469    // Default height when the terminal is docked to the bottom.
1470    "default_height": 320,
1471    // What working directory to use when launching the terminal.
1472    // May take 4 values:
1473    // 1. Use the current file's project directory. Fallback to the
1474    //    first project directory strategy if unsuccessful
1475    //      "working_directory": "current_project_directory"
1476    // 2. Use the first project in this workspace's directory
1477    //      "working_directory": "first_project_directory"
1478    // 3. Always use this platform's home directory (if we can find it)
1479    //     "working_directory": "always_home"
1480    // 4. Always use a specific directory. This value will be shell expanded.
1481    //    If this path is not a valid directory the terminal will default to
1482    //    this platform's home directory  (if we can find it)
1483    //      "working_directory": {
1484    //        "always": {
1485    //          "directory": "~/zed/projects/"
1486    //        }
1487    //      }
1488    "working_directory": "current_project_directory",
1489    // Set the cursor blinking behavior in the terminal.
1490    // May take 3 values:
1491    //  1. Never blink the cursor, ignoring the terminal mode
1492    //         "blinking": "off",
1493    //  2. Default the cursor blink to off, but allow the terminal to
1494    //     set blinking
1495    //         "blinking": "terminal_controlled",
1496    //  3. Always blink the cursor, ignoring the terminal mode
1497    //         "blinking": "on",
1498    "blinking": "terminal_controlled",
1499    // Default cursor shape for the terminal.
1500    //  1. A block that surrounds the following character
1501    //     "block"
1502    //  2. A vertical bar
1503    //     "bar"
1504    //  3. An underline / underscore that runs along the following character
1505    //     "underline"
1506    //  4. A box drawn around the following character
1507    //     "hollow"
1508    //
1509    // Default: "block"
1510    "cursor_shape": "block",
1511    // Set whether Alternate Scroll mode (code: ?1007) is active by default.
1512    // Alternate Scroll mode converts mouse scroll events into up / down key
1513    // presses when in the alternate screen (e.g. when running applications
1514    // like vim or  less). The terminal can still set and unset this mode.
1515    // May take 2 values:
1516    //  1. Default alternate scroll mode to on
1517    //         "alternate_scroll": "on",
1518    //  2. Default alternate scroll mode to off
1519    //         "alternate_scroll": "off",
1520    "alternate_scroll": "on",
1521    // Set whether the option key behaves as the meta key.
1522    // May take 2 values:
1523    //  1. Rely on default platform handling of option key, on macOS
1524    //     this means generating certain unicode characters
1525    //         "option_as_meta": false,
1526    //  2. Make the option keys behave as a 'meta' key, e.g. for emacs
1527    //         "option_as_meta": true,
1528    "option_as_meta": false,
1529    // Whether or not selecting text in the terminal will automatically
1530    // copy to the system clipboard.
1531    "copy_on_select": false,
1532    // Whether to keep the text selection after copying it to the clipboard.
1533    "keep_selection_on_copy": true,
1534    // Whether to show the terminal button in the status bar
1535    "button": true,
1536    // Any key-value pairs added to this list will be added to the terminal's
1537    // environment. Use `:` to separate multiple values.
1538    "env": {
1539      // "KEY": "value1:value2"
1540    },
1541    // Set the terminal's line height.
1542    // May take 3 values:
1543    //  1. Use a line height that's comfortable for reading, 1.618
1544    //         "line_height": "comfortable"
1545    //  2. Use a standard line height, 1.3. This option is useful for TUIs,
1546    //      particularly if they use box characters
1547    //         "line_height": "standard",
1548    //  3. Use a custom line height.
1549    //         "line_height": {
1550    //           "custom": 2
1551    //         },
1552    "line_height": "standard",
1553    // Activate the python virtual environment, if one is found, in the
1554    // terminal's working directory (as resolved by the working_directory
1555    // setting). Set this to "off" to disable this behavior.
1556    "detect_venv": {
1557      "on": {
1558        // Default directories to search for virtual environments, relative
1559        // to the current working directory. We recommend overriding this
1560        // in your project's settings, rather than globally.
1561        "directories": [".env", "env", ".venv", "venv"],
1562        // Can also be `csh`, `fish`, `nushell` and `power_shell`
1563        "activate_script": "default",
1564        // Preferred Conda manager to use when activating Conda environments.
1565        // Values: "auto", "conda", "mamba", "micromamba"
1566        // Default: "auto"
1567        "conda_manager": "auto",
1568      },
1569    },
1570    "toolbar": {
1571      // Whether to display the terminal title in its toolbar's breadcrumbs.
1572      // Only shown if the terminal title is not empty.
1573      //
1574      // The shell running in the terminal needs to be configured to emit the title.
1575      // Example: `echo -e "\e]2;New Title\007";`
1576      "breadcrumbs": false,
1577    },
1578    // Scrollbar-related settings
1579    "scrollbar": {
1580      // When to show the scrollbar in the terminal.
1581      // This setting can take five values:
1582      //
1583      // 1. null (default): Inherit editor settings
1584      // 2. Show the scrollbar if there's important information or
1585      //    follow the system's configured behavior (default):
1586      //   "auto"
1587      // 3. Match the system's configured behavior:
1588      //    "system"
1589      // 4. Always show the scrollbar:
1590      //    "always"
1591      // 5. Never show the scrollbar:
1592      //    "never"
1593      "show": null,
1594    },
1595    // Set the terminal's font size. If this option is not included,
1596    // the terminal will default to matching the buffer's font size.
1597    // "font_size": 15,
1598    // Set the terminal's font family. If this option is not included,
1599    // the terminal will default to matching the buffer's font family.
1600    // "font_family": ".ZedMono",
1601    // Set the terminal's font fallbacks. If this option is not included,
1602    // the terminal will default to matching the buffer's font fallbacks.
1603    // This will be merged with the platform's default font fallbacks
1604    // "font_fallbacks": ["FiraCode Nerd Fonts"],
1605    // The weight of the editor font in standard CSS units from 100 to 900.
1606    "font_weight": 400,
1607    // Sets the maximum number of lines in the terminal's scrollback buffer.
1608    // Default: 10_000, maximum: 100_000 (all bigger values set will be treated as 100_000), 0 disables the scrolling.
1609    // Existing terminals will not pick up this change until they are recreated.
1610    "max_scroll_history_lines": 10000,
1611    // The multiplier for scrolling speed in the terminal.
1612    "scroll_multiplier": 1.0,
1613    // The minimum APCA perceptual contrast between foreground and background colors.
1614    // APCA (Accessible Perceptual Contrast Algorithm) is more accurate than WCAG 2.x,
1615    // especially for dark mode. Values range from 0 to 106.
1616    //
1617    // Based on APCA Readability Criterion (ARC) Bronze Simple Mode:
1618    // https://readtech.org/ARC/tests/bronze-simple-mode/
1619    // - 0: No contrast adjustment
1620    // - 45: Minimum for large fluent text (36px+)
1621    // - 60: Minimum for other content text
1622    // - 75: Minimum for body text
1623    // - 90: Preferred for body text
1624    //
1625    // Most terminal themes have APCA values of 40-70.
1626    // A value of 45 preserves colorful themes while ensuring legibility.
1627    "minimum_contrast": 45,
1628    // Regexes used to identify paths for hyperlink navigation. Supports optional named capture
1629    // groups `path`, `line`, `column`, and `link`. If none of these are present, the entire match
1630    // is the hyperlink target. If `path` is present, it is the hyperlink target, along with `line`
1631    // and `column` if present. `link` may be used to customize what text in terminal is part of the
1632    // hyperlink. If `link` is not present, the text of the entire match is used. If `line` and
1633    // `column` are not present, the default built-in line and column suffix processing is used
1634    // which parses `line:column` and `(line,column)` variants. The default value handles Python
1635    // diagnostics and common path, line, column syntaxes. This can be extended or replaced to
1636    // handle specific scenarios. For example, to enable support for hyperlinking paths which
1637    // contain spaces in rust output,
1638    //
1639    // [
1640    //   "\\s+(-->|:::|at) (?<link>(?<path>.+?))(:$|$)",
1641    //   "\\s+(Compiling|Checking|Documenting) [^(]+\\((?<link>(?<path>.+))\\)"
1642    // ],
1643    //
1644    // could be used. Processing stops at the first regex with a match, even if no link is
1645    // produced which is the case when the cursor is not over the hyperlinked text. For best
1646    // performance it is recommended to order regexes from most common to least common. For
1647    // readability and documentation, each regex may be an array of strings which are collected
1648    // into one multi-line regex string for use in terminal path hyperlink detection.
1649    "path_hyperlink_regexes": [
1650      // Python-style diagnostics
1651      "File \"(?<path>[^\"]+)\", line (?<line>[0-9]+)",
1652      // Common path syntax with optional line, column, description, trailing punctuation, or
1653      // surrounding symbols or quotes
1654      [
1655        "(?x)",
1656        "(?<path>",
1657        "    (",
1658        "        # multi-char path: first char (not opening delimiter or space)",
1659        "        [^({\\[<\"'`\\ ]",
1660        "        # middle chars: non-space, and colon/paren only if not followed by digit/paren",
1661        "        ([^\\ :(]|[:(][^0-9()])*",
1662        "        # last char: not closing delimiter or colon",
1663        "        [^()}\\]>\"'`.,;:\\ ]",
1664        "    |",
1665        "        # single-char path: not delimiter, punctuation, or space",
1666        "        [^(){}\\[\\]<>\"'`.,;:\\ ]",
1667        "    )",
1668        "    # optional line/column suffix (included in path for PathWithPosition::parse_str)",
1669        "    (:+[0-9]+(:[0-9]+)?|:?\\([0-9]+([,:]?[0-9]+)?\\))?",
1670        ")",
1671      ],
1672    ],
1673    // Timeout for hover and Cmd-click path hyperlink discovery in milliseconds. Specifying a
1674    // timeout of `0` will disable path hyperlinking in terminal.
1675    "path_hyperlink_timeout_ms": 1,
1676  },
1677  "code_actions_on_format": {},
1678  // Settings related to running tasks.
1679  "tasks": {
1680    "variables": {},
1681    "enabled": true,
1682    // Use LSP tasks over Zed language extension ones.
1683    // If no LSP tasks are returned due to error/timeout or regular execution,
1684    // Zed language extension tasks will be used instead.
1685    //
1686    // Other Zed tasks will still be shown:
1687    // * Zed task from either of the task config file
1688    // * Zed task from history (e.g. one-off task was spawned before)
1689    //
1690    // Default: true
1691    "prefer_lsp": true,
1692  },
1693  // An object whose keys are language names, and whose values
1694  // are arrays of filenames or extensions of files that should
1695  // use those languages.
1696  //
1697  // For example, to treat files like `foo.notjs` as JavaScript,
1698  // and `Embargo.lock` as TOML:
1699  //
1700  // {
1701  //   "JavaScript": ["notjs"],
1702  //   "TOML": ["Embargo.lock"]
1703  // }
1704  //
1705  "file_types": {
1706    "JSONC": ["**/.zed/**/*.json", "**/zed/**/*.json", "**/Zed/**/*.json", "**/.vscode/**/*.json", "tsconfig*.json"],
1707    "Markdown": [".rules", ".cursorrules", ".windsurfrules", ".clinerules"],
1708    "Shell Script": [".env.*"],
1709  },
1710  // Settings for which version of Node.js and NPM to use when installing
1711  // language servers and Copilot.
1712  //
1713  // Note: changing this setting currently requires restarting Zed.
1714  "node": {
1715    // By default, Zed will look for `node` and `npm` on your `$PATH`, and use the
1716    // existing executables if their version is recent enough. Set this to `true`
1717    // to prevent this, and force Zed to always download and install its own
1718    // version of Node.
1719    "ignore_system_version": false,
1720    // You can also specify alternative paths to Node and NPM. If you specify
1721    // `path`, but not `npm_path`, Zed will assume that `npm` is located at
1722    // `${path}/../npm`.
1723    "path": null,
1724    "npm_path": null,
1725  },
1726  // The extensions that Zed should automatically install on startup.
1727  //
1728  // If you don't want any of these extensions, add this field to your settings
1729  // and change the value to `false`.
1730  "auto_install_extensions": {
1731    "html": true,
1732  },
1733  // The capabilities granted to extensions.
1734  //
1735  // This list can be customized to restrict what extensions are able to do.
1736  "granted_extension_capabilities": [
1737    { "kind": "process:exec", "command": "*", "args": ["**"] },
1738    { "kind": "download_file", "host": "*", "path": ["**"] },
1739    { "kind": "npm:install", "package": "*" },
1740  ],
1741  // Controls how completions are processed for this language.
1742  "completions": {
1743    // Controls how words are completed.
1744    // For large documents, not all words may be fetched for completion.
1745    //
1746    // May take 3 values:
1747    // 1. "enabled"
1748    //   Always fetch document's words for completions along with LSP completions.
1749    // 2. "fallback"
1750    //   Only if LSP response errors or times out, use document's words to show completions.
1751    // 3. "disabled"
1752    //   Never fetch or complete document's words for completions.
1753    //   (Word-based completions can still be queried via a separate action)
1754    //
1755    // Default: fallback
1756    "words": "fallback",
1757    // Minimum number of characters required to automatically trigger word-based completions.
1758    // Before that value, it's still possible to trigger the words-based completion manually with the corresponding editor command.
1759    //
1760    // Default: 3
1761    "words_min_length": 3,
1762    // Whether to fetch LSP completions or not.
1763    //
1764    // Default: true
1765    "lsp": true,
1766    // When fetching LSP completions, determines how long to wait for a response of a particular server.
1767    // When set to 0, waits indefinitely.
1768    //
1769    // Default: 0
1770    "lsp_fetch_timeout_ms": 0,
1771    // Controls what range to replace when accepting LSP completions.
1772    //
1773    // When LSP servers give an `InsertReplaceEdit` completion, they provides two ranges: `insert` and `replace`. Usually, `insert`
1774    // contains the word prefix before your cursor and `replace` contains the whole word.
1775    //
1776    // Effectively, this setting just changes whether Zed will use the received range for `insert` or `replace`, so the results may
1777    // differ depending on the underlying LSP server.
1778    //
1779    // Possible values:
1780    // 1. "insert"
1781    //   Replaces text before the cursor, using the `insert` range described in the LSP specification.
1782    // 2. "replace"
1783    //   Replaces text before and after the cursor, using the `replace` range described in the LSP specification.
1784    // 3. "replace_subsequence"
1785    //   Behaves like `"replace"` if the text that would be replaced is a subsequence of the completion text,
1786    //   and like `"insert"` otherwise.
1787    // 4. "replace_suffix"
1788    //   Behaves like `"replace"` if the text after the cursor is a suffix of the completion, and like
1789    //   `"insert"` otherwise.
1790    "lsp_insert_mode": "replace_suffix",
1791  },
1792  // Different settings for specific languages.
1793  "languages": {
1794    "Astro": {
1795      "language_servers": ["astro-language-server", "..."],
1796      "prettier": {
1797        "allowed": true,
1798        "plugins": ["prettier-plugin-astro"],
1799      },
1800    },
1801    "Blade": {
1802      "prettier": {
1803        "allowed": true,
1804      },
1805    },
1806    "C": {
1807      "format_on_save": "off",
1808      "use_on_type_format": false,
1809      "prettier": {
1810        "allowed": false,
1811      },
1812    },
1813    "C++": {
1814      "format_on_save": "off",
1815      "use_on_type_format": false,
1816      "prettier": {
1817        "allowed": false,
1818      },
1819    },
1820    "CSharp": {
1821      "language_servers": ["roslyn", "!omnisharp", "..."],
1822    },
1823    "CSS": {
1824      "prettier": {
1825        "allowed": true,
1826      },
1827    },
1828    "Dart": {
1829      "tab_size": 2,
1830    },
1831    "Diff": {
1832      "show_edit_predictions": false,
1833      "remove_trailing_whitespace_on_save": false,
1834      "ensure_final_newline_on_save": false,
1835    },
1836    "Elixir": {
1837      "language_servers": ["elixir-ls", "!expert", "!next-ls", "!lexical", "..."],
1838    },
1839    "Elm": {
1840      "tab_size": 4,
1841    },
1842    "Erlang": {
1843      "language_servers": ["erlang-ls", "!elp", "..."],
1844    },
1845    "Git Commit": {
1846      "allow_rewrap": "anywhere",
1847      "soft_wrap": "editor_width",
1848      "preferred_line_length": 72,
1849    },
1850    "Go": {
1851      "hard_tabs": true,
1852      "code_actions_on_format": {
1853        "source.organizeImports": true,
1854      },
1855      "debuggers": ["Delve"],
1856    },
1857    "GraphQL": {
1858      "prettier": {
1859        "allowed": true,
1860      },
1861    },
1862    "HEEX": {
1863      "language_servers": ["elixir-ls", "!expert", "!next-ls", "!lexical", "..."],
1864    },
1865    "HTML": {
1866      "prettier": {
1867        "allowed": true,
1868      },
1869    },
1870    "HTML+ERB": {
1871      "language_servers": ["herb", "!ruby-lsp", "..."],
1872    },
1873    "Java": {
1874      "prettier": {
1875        "allowed": true,
1876        "plugins": ["prettier-plugin-java"],
1877      },
1878    },
1879    "JavaScript": {
1880      "language_servers": ["!typescript-language-server", "vtsls", "..."],
1881      "prettier": {
1882        "allowed": true,
1883      },
1884    },
1885    "JSON": {
1886      "prettier": {
1887        "allowed": true,
1888      },
1889    },
1890    "JSONC": {
1891      "prettier": {
1892        "allowed": true,
1893      },
1894    },
1895    "JS+ERB": {
1896      "language_servers": ["!ruby-lsp", "..."],
1897    },
1898    "Kotlin": {
1899      "language_servers": ["!kotlin-language-server", "kotlin-lsp", "..."],
1900    },
1901    "LaTeX": {
1902      "formatter": "language_server",
1903      "language_servers": ["texlab", "..."],
1904      "prettier": {
1905        "allowed": true,
1906        "plugins": ["prettier-plugin-latex"],
1907      },
1908    },
1909    "Markdown": {
1910      "format_on_save": "off",
1911      "use_on_type_format": false,
1912      "remove_trailing_whitespace_on_save": false,
1913      "allow_rewrap": "anywhere",
1914      "soft_wrap": "editor_width",
1915      "completions": {
1916        "words": "disabled",
1917      },
1918      "prettier": {
1919        "allowed": true,
1920      },
1921    },
1922    "PHP": {
1923      "language_servers": ["phpactor", "!intelephense", "!phptools", "..."],
1924      "prettier": {
1925        "allowed": true,
1926        "plugins": ["@prettier/plugin-php"],
1927        "parser": "php",
1928      },
1929    },
1930    "Plain Text": {
1931      "allow_rewrap": "anywhere",
1932      "soft_wrap": "editor_width",
1933      "completions": {
1934        "words": "disabled",
1935      },
1936    },
1937    "Proto": {
1938      "language_servers": ["buf", "!protols", "!protobuf-language-server", "..."],
1939    },
1940    "Python": {
1941      "code_actions_on_format": {
1942        "source.organizeImports.ruff": true,
1943      },
1944      "formatter": {
1945        "language_server": {
1946          "name": "ruff",
1947        },
1948      },
1949      "debuggers": ["Debugpy"],
1950      "language_servers": ["basedpyright", "ruff", "!ty", "!pyrefly", "!pyright", "!pylsp", "..."],
1951    },
1952    "Ruby": {
1953      "language_servers": ["solargraph", "!ruby-lsp", "!rubocop", "!sorbet", "!steep", "..."],
1954    },
1955    "Rust": {
1956      "debuggers": ["CodeLLDB"],
1957    },
1958    "SCSS": {
1959      "prettier": {
1960        "allowed": true,
1961      },
1962    },
1963    "Starlark": {
1964      "language_servers": ["starpls", "!buck2-lsp", "..."],
1965    },
1966    "Svelte": {
1967      "language_servers": ["svelte-language-server", "..."],
1968      "prettier": {
1969        "allowed": true,
1970        "plugins": ["prettier-plugin-svelte"],
1971      },
1972    },
1973    "TSX": {
1974      "language_servers": ["!typescript-language-server", "vtsls", "..."],
1975      "prettier": {
1976        "allowed": true,
1977      },
1978    },
1979    "Twig": {
1980      "prettier": {
1981        "allowed": true,
1982      },
1983    },
1984    "TypeScript": {
1985      "language_servers": ["!typescript-language-server", "vtsls", "..."],
1986      "prettier": {
1987        "allowed": true,
1988      },
1989    },
1990    "SystemVerilog": {
1991      "format_on_save": "off",
1992      "language_servers": ["!slang", "..."],
1993      "use_on_type_format": false,
1994    },
1995    "Vue.js": {
1996      "language_servers": ["vue-language-server", "vtsls", "..."],
1997      "prettier": {
1998        "allowed": true,
1999      },
2000    },
2001    "XML": {
2002      "prettier": {
2003        "allowed": true,
2004        "plugins": ["@prettier/plugin-xml"],
2005      },
2006    },
2007    "YAML": {
2008      "prettier": {
2009        "allowed": true,
2010      },
2011    },
2012    "YAML+ERB": {
2013      "language_servers": ["!ruby-lsp", "..."],
2014    },
2015    "Zig": {
2016      "language_servers": ["zls", "..."],
2017    },
2018  },
2019  // Different settings for specific language models.
2020  "language_models": {
2021    "anthropic": {
2022      "api_url": "https://api.anthropic.com",
2023    },
2024    "bedrock": {},
2025    "google": {
2026      "api_url": "https://generativelanguage.googleapis.com",
2027    },
2028    "ollama": {
2029      "api_url": "http://localhost:11434",
2030    },
2031    "openai": {
2032      "api_url": "https://api.openai.com/v1",
2033    },
2034    "openai_compatible": {},
2035    "open_router": {
2036      "api_url": "https://openrouter.ai/api/v1",
2037    },
2038    "lmstudio": {
2039      "api_url": "http://localhost:1234/api/v0",
2040    },
2041    "deepseek": {
2042      "api_url": "https://api.deepseek.com/v1",
2043    },
2044    "mistral": {
2045      "api_url": "https://api.mistral.ai/v1",
2046    },
2047    "vercel": {
2048      "api_url": "https://api.v0.dev/v1",
2049    },
2050    "x_ai": {
2051      "api_url": "https://api.x.ai/v1",
2052    },
2053    "zed.dev": {},
2054  },
2055  "session": {
2056    // Whether or not to restore unsaved buffers on restart.
2057    //
2058    // If this is true, user won't be prompted whether to save/discard
2059    // dirty files when closing the application.
2060    //
2061    // Default: true
2062    "restore_unsaved_buffers": true,
2063  },
2064  // Zed's Prettier integration settings.
2065  // Allows to enable/disable formatting with Prettier
2066  // and configure default Prettier, used when no project-level Prettier installation is found.
2067  "prettier": {
2068    // Enables or disables formatting with Prettier for any given language.
2069    "allowed": false,
2070    // Forces Prettier integration to use a specific parser name when formatting files with the language.
2071    "plugins": [],
2072    // Default Prettier options, in the format as in package.json section for Prettier.
2073    // If project installs Prettier via its package.json, these options will be ignored.
2074    // "trailingComma": "es5",
2075    // "tabWidth": 4,
2076    // "semi": false,
2077    // "singleQuote": true
2078    // Forces Prettier integration to use a specific parser name when formatting files with the language
2079    // when set to a non-empty string.
2080    "parser": "",
2081  },
2082  // Settings for auto-closing of JSX tags.
2083  "jsx_tag_auto_close": {
2084    "enabled": true,
2085  },
2086  // LSP Specific settings.
2087  "lsp": {
2088    // Specify the LSP name as a key here.
2089    // "rust-analyzer": {
2090    //     // A special flag for rust-analyzer integration, to use server-provided tasks
2091    //     enable_lsp_tasks": true,
2092    //     // These initialization options are merged into Zed's defaults
2093    //     "initialization_options": {
2094    //         "check": {
2095    //             "command": "clippy" // rust-analyzer.check.command (default: "check")
2096    //         }
2097    //     }
2098    // }
2099  },
2100  // DAP Specific settings.
2101  "dap": {
2102    // Specify the DAP name as a key here.
2103    "CodeLLDB": {
2104      "env": {
2105        "RUST_LOG": "info",
2106      },
2107    },
2108  },
2109  // Common language server settings.
2110  "global_lsp_settings": {
2111    // Whether to show the LSP servers button in the status bar.
2112    "button": true,
2113  },
2114  // Jupyter settings
2115  "jupyter": {
2116    "enabled": true,
2117    "kernel_selections": {},
2118    // Specify the language name as the key and the kernel name as the value.
2119    // "kernel_selections": {
2120    //    "python": "conda-base"
2121    //    "typescript": "deno"
2122    // }
2123  },
2124  // REPL settings.
2125  "repl": {
2126    // Maximum number of columns to keep in REPL's scrollback buffer.
2127    // Clamped with [20, 512] range.
2128    "max_columns": 128,
2129    // Maximum number of lines to keep in REPL's scrollback buffer.
2130    // Clamped with [4, 256] range.
2131    "max_lines": 32,
2132  },
2133  // Vim settings
2134  "vim": {
2135    "default_mode": "normal",
2136    "toggle_relative_line_numbers": false,
2137    "use_system_clipboard": "always",
2138    "use_smartcase_find": false,
2139    "highlight_on_yank_duration": 200,
2140    "custom_digraphs": {},
2141    // Cursor shape for the each mode.
2142    // Specify the mode as the key and the shape as the value.
2143    // The mode can be one of the following: "normal", "replace", "insert", "visual".
2144    // The shape can be one of the following: "block", "bar", "underline", "hollow".
2145    "cursor_shape": {},
2146  },
2147  // The server to connect to. If the environment variable
2148  // ZED_SERVER_URL is set, it will override this setting.
2149  "server_url": "https://zed.dev",
2150  // Settings overrides to use when using Zed Preview.
2151  // Mostly useful for developers who are managing multiple instances of Zed.
2152  "preview": {
2153    // "theme": "Andromeda"
2154  },
2155  // Settings overrides to use when using Zed Nightly.
2156  // Mostly useful for developers who are managing multiple instances of Zed.
2157  "nightly": {
2158    // "theme": "Andromeda"
2159  },
2160  // Settings overrides to use when using Zed Stable.
2161  // Mostly useful for developers who are managing multiple instances of Zed.
2162  "stable": {
2163    // "theme": "Andromeda"
2164  },
2165  // Settings overrides to use when using Zed Dev.
2166  // Mostly useful for developers who are managing multiple instances of Zed.
2167  "dev": {
2168    // "theme": "Andromeda"
2169  },
2170  // Settings overrides to use when using Linux.
2171  "linux": {},
2172  // Settings overrides to use when using macOS.
2173  "macos": {},
2174  // Settings overrides to use when using Windows.
2175  "windows": {
2176    "languages": {
2177      "PHP": {
2178        "language_servers": ["intelephense", "!phpactor", "!phptools", "..."],
2179      },
2180    },
2181  },
2182  // Whether to show full labels in line indicator or short ones
2183  //
2184  // Values:
2185  //   - `short`: "2 s, 15 l, 32 c"
2186  //   - `long`: "2 selections, 15 lines, 32 characters"
2187  // Default: long
2188  "line_indicator_format": "long",
2189  // Set a proxy to use. The proxy protocol is specified by the URI scheme.
2190  //
2191  // Supported URI scheme: `http`, `https`, `socks4`, `socks4a`, `socks5`,
2192  // `socks5h`. `http` will be used when no scheme is specified.
2193  //
2194  // By default no proxy will be used, or Zed will try get proxy settings from
2195  // environment variables. If certain hosts should not be proxied,
2196  // set the `no_proxy` environment variable and provide a comma-separated list.
2197  //
2198  // Examples:
2199  //   - "proxy": "socks5h://localhost:10808"
2200  //   - "proxy": "http://127.0.0.1:10809"
2201  "proxy": null,
2202  // Set to configure aliases for the command palette.
2203  // When typing a query which is a key of this object, the value will be used instead.
2204  //
2205  // Examples:
2206  // {
2207  //   "W": "workspace::Save"
2208  // }
2209  "command_aliases": {},
2210  // ssh_connections is an array of ssh connections.
2211  // You can configure these from `project: Open Remote` in the command palette.
2212  // Zed's ssh support will pull configuration from your ~/.ssh too.
2213  // Examples:
2214  // [
2215  //   {
2216  //     "host": "example-box",
2217  //     // "port": 22, "username": "test", "args": ["-i", "/home/user/.ssh/id_rsa"]
2218  //     "projects": [
2219  //       {
2220  //         "paths": ["/home/user/code/zed"]
2221  //       }
2222  //     ]
2223  //   }
2224  // ]
2225  "ssh_connections": [],
2226  // Whether to read ~/.ssh/config for ssh connection sources.
2227  "read_ssh_config": true,
2228  // Configures context servers for use by the agent.
2229  "context_servers": {},
2230  // Configures agent servers available in the agent panel.
2231  "agent_servers": {},
2232  "debugger": {
2233    "stepping_granularity": "line",
2234    "save_breakpoints": true,
2235    "timeout": 2000,
2236    "dock": "bottom",
2237    "log_dap_communications": true,
2238    "format_dap_log_messages": true,
2239    "button": true,
2240  },
2241  // Configures any number of settings profiles that are temporarily applied on
2242  // top of your existing user settings when selected from
2243  // `settings profile selector: toggle`.
2244  // Examples:
2245  // "profiles": {
2246  //   "Presenting": {
2247  //     "agent_ui_font_size": 20.0,
2248  //     "buffer_font_size": 20.0,
2249  //     "theme": "One Light",
2250  //     "ui_font_size": 20.0
2251  //   },
2252  //   "Python (ty)": {
2253  //     "languages": {
2254  //       "Python": {
2255  //         "language_servers": ["ty"]
2256  //       }
2257  //     }
2258  //   }
2259  // }
2260  "profiles": {},
2261
2262  // A map of log scopes to the desired log level.
2263  // Useful for filtering out noisy logs or enabling more verbose logging.
2264  //
2265  // Example: {"log": {"client": "warn"}}
2266  "log": {},
2267}