default.json

   1{
   2  // The name of the Zed theme to use for the UI.
   3  //
   4  // `mode` is one of:
   5  // - "system": Use the theme that corresponds to the system's appearance
   6  // - "light": Use the theme indicated by the "light" field
   7  // - "dark": Use the theme indicated by the "dark" field
   8  "theme": {
   9    "mode": "system",
  10    "light": "One Light",
  11    "dark": "One Dark"
  12  },
  13  "icon_theme": "Zed (Default)",
  14  // The name of a base set of key bindings to use.
  15  // This setting can take six values, each named after another
  16  // text editor:
  17  //
  18  // 1. "VSCode"
  19  // 2. "Atom"
  20  // 3. "JetBrains"
  21  // 4. "None"
  22  // 5. "SublimeText"
  23  // 6. "TextMate"
  24  "base_keymap": "VSCode",
  25  // Features that can be globally enabled or disabled
  26  "features": {
  27    // Which edit prediction provider to use.
  28    "edit_prediction_provider": "zed"
  29  },
  30  // The name of a font to use for rendering text in the editor
  31  "buffer_font_family": "Zed Plex Mono",
  32  // Set the buffer text's font fallbacks, this will be merged with
  33  // the platform's default fallbacks.
  34  "buffer_font_fallbacks": null,
  35  // The OpenType features to enable for text in the editor.
  36  "buffer_font_features": {
  37    // Disable ligatures:
  38    // "calt": false
  39  },
  40  // The default font size for text in the editor
  41  "buffer_font_size": 15,
  42  // The weight of the editor font in standard CSS units from 100 to 900.
  43  "buffer_font_weight": 400,
  44  // Set the buffer's line height.
  45  // May take 3 values:
  46  //  1. Use a line height that's comfortable for reading (1.618)
  47  //         "buffer_line_height": "comfortable"
  48  //  2. Use a standard line height, (1.3)
  49  //         "buffer_line_height": "standard",
  50  //  3. Use a custom line height
  51  //         "buffer_line_height": {
  52  //           "custom": 2
  53  //         },
  54  "buffer_line_height": "comfortable",
  55  // The name of a font to use for rendering text in the UI
  56  // You can set this to ".SystemUIFont" to use the system font
  57  "ui_font_family": "Zed Plex Sans",
  58  // Set the UI's font fallbacks, this will be merged with the platform's
  59  // default font fallbacks.
  60  "ui_font_fallbacks": null,
  61  // The OpenType features to enable for text in the UI
  62  "ui_font_features": {
  63    // Disable ligatures:
  64    "calt": false
  65  },
  66  // The weight of the UI font in standard CSS units from 100 to 900.
  67  "ui_font_weight": 400,
  68  // The default font size for text in the UI
  69  "ui_font_size": 16,
  70  // How much to fade out unused code.
  71  "unnecessary_code_fade": 0.3,
  72  // Active pane styling settings.
  73  "active_pane_modifiers": {
  74    // The factor to grow the active pane by. Defaults to 1.0
  75    // which gives the same size as all other panes.
  76    "magnification": 1.0,
  77    // Inset border size of the active pane, in pixels.
  78    "border_size": 0.0,
  79    // Opacity of the inactive panes. 0 means transparent, 1 means opaque.
  80    // Values are clamped to the [0.0, 1.0] range.
  81    "inactive_opacity": 1.0
  82  },
  83  // Layout mode of the bottom dock. Defaults to "contained"
  84  "bottom_dock_layout": "contained",
  85  // The direction that you want to split panes horizontally. Defaults to "up"
  86  "pane_split_direction_horizontal": "up",
  87  // The direction that you want to split panes horizontally. Defaults to "left"
  88  "pane_split_direction_vertical": "left",
  89  // Centered layout related settings.
  90  "centered_layout": {
  91    // The relative width of the left padding of the central pane from the
  92    // workspace when the centered layout is used.
  93    "left_padding": 0.2,
  94    // The relative width of the right padding of the central pane from the
  95    // workspace when the centered layout is used.
  96    "right_padding": 0.2
  97  },
  98  // All settings related to the image viewer.
  99  "image_viewer": {
 100    // The unit for image file sizes.
 101    // By default we're setting it to binary.
 102    // The second option is decimal.
 103    "unit": "binary"
 104  },
 105  // The key to use for adding multiple cursors
 106  // Currently "alt" or "cmd_or_ctrl"  (also aliased as
 107  // "cmd" and "ctrl") are supported.
 108  "multi_cursor_modifier": "alt",
 109  // Whether to enable vim modes and key bindings.
 110  "vim_mode": false,
 111  // Whether to show the informational hover box when moving the mouse
 112  // over symbols in the editor.
 113  "hover_popover_enabled": true,
 114  // Time to wait before showing the informational hover box
 115  "hover_popover_delay": 350,
 116  // Whether to confirm before quitting Zed.
 117  "confirm_quit": false,
 118  // Whether to restore last closed project when fresh Zed instance is opened.
 119  "restore_on_startup": "last_session",
 120  // Whether to attempt to restore previous file's state when opening it again.
 121  // The state is stored per pane.
 122  // When disabled, defaults are applied instead of the state restoration.
 123  //
 124  // 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.
 125  // When disabled, a single selection in the very beginning of the file, zero scroll position and no folds state is used as a default.
 126  //
 127  // Default: true
 128  "restore_on_file_reopen": true,
 129  // Size of the drop target in the editor.
 130  "drop_target_size": 0.2,
 131  // Whether the window should be closed when using 'close active item' on a window with no tabs.
 132  // May take 3 values:
 133  //  1. Use the current platform's convention
 134  //         "when_closing_with_no_tabs": "platform_default"
 135  //  2. Always close the window:
 136  //         "when_closing_with_no_tabs": "close_window",
 137  //  3. Never close the window
 138  //         "when_closing_with_no_tabs": "keep_window_open",
 139  "when_closing_with_no_tabs": "platform_default",
 140  // What to do when the last window is closed.
 141  // May take 2 values:
 142  //  1. Use the current platform's convention
 143  //         "on_last_window_closed": "platform_default"
 144  //  2. Always quit the application
 145  //         "on_last_window_closed": "quit_app",
 146  "on_last_window_closed": "platform_default",
 147  // Whether to use the system provided dialogs for Open and Save As.
 148  // When set to false, Zed will use the built-in keyboard-first pickers.
 149  "use_system_path_prompts": true,
 150  // Whether to use the system provided dialogs for prompts, such as confirmation
 151  // prompts.
 152  // When set to false, Zed will use its built-in prompts. Note that on Linux,
 153  // this option is ignored and Zed will always use the built-in prompts.
 154  "use_system_prompts": true,
 155  // Whether the cursor blinks in the editor.
 156  "cursor_blink": true,
 157  // Cursor shape for the default editor.
 158  //  1. A vertical bar
 159  //     "bar"
 160  //  2. A block that surrounds the following character
 161  //     "block"
 162  //  3. An underline / underscore that runs along the following character
 163  //     "underline"
 164  //  4. A box drawn around the following character
 165  //     "hollow"
 166  //
 167  // Default: not set, defaults to "bar"
 168  "cursor_shape": null,
 169  // Determines when the mouse cursor should be hidden in an editor or input box.
 170  "hide_mouse": "on_typing_and_movement",
 171  // How to highlight the current line in the editor.
 172  //
 173  // 1. Don't highlight the current line:
 174  //    "none"
 175  // 2. Highlight the gutter area:
 176  //    "gutter"
 177  // 3. Highlight the editor area:
 178  //    "line"
 179  // 4. Highlight the full line (default):
 180  //    "all"
 181  "current_line_highlight": "all",
 182  // Whether to highlight all occurrences of the selected text in an editor.
 183  "selection_highlight": true,
 184  // The debounce delay before querying highlights based on the selected text.
 185  "selection_highlight_debounce": 50,
 186  // The debounce delay before querying highlights from the language
 187  // server based on the current cursor location.
 188  "lsp_highlight_debounce": 75,
 189  // Whether to pop the completions menu while typing in an editor without
 190  // explicitly requesting it.
 191  "show_completions_on_input": true,
 192  // Whether to display inline and alongside documentation for items in the
 193  // completions menu
 194  "show_completion_documentation": true,
 195  // Show method signatures in the editor, when inside parentheses.
 196  "auto_signature_help": false,
 197  // Whether to show the signature help after completion or a bracket pair inserted.
 198  // If `auto_signature_help` is enabled, this setting will be treated as enabled also.
 199  "show_signature_help_after_edits": false,
 200  // What to do when go to definition yields no results.
 201  //
 202  // 1. Do nothing: `none`
 203  // 2. Find references for the same symbol: `find_all_references` (default)
 204  "go_to_definition_fallback": "find_all_references",
 205  // Whether to show wrap guides (vertical rulers) in the editor.
 206  // Setting this to true will show a guide at the 'preferred_line_length' value
 207  // if 'soft_wrap' is set to 'preferred_line_length', and will show any
 208  // additional guides as specified by the 'wrap_guides' setting.
 209  "show_wrap_guides": true,
 210  // Character counts at which to show wrap guides in the editor.
 211  "wrap_guides": [],
 212  // Hide the values of in variables from visual display in private files
 213  "redact_private_values": false,
 214  // The default number of lines to expand excerpts in the multibuffer by.
 215  "expand_excerpt_lines": 3,
 216  // Globs to match against file paths to determine if a file is private.
 217  "private_files": [
 218    "**/.env*",
 219    "**/*.pem",
 220    "**/*.key",
 221    "**/*.cert",
 222    "**/*.crt",
 223    "**/secrets.yml"
 224  ],
 225  // Whether to use additional LSP queries to format (and amend) the code after
 226  // every "trigger" symbol input, defined by LSP server capabilities.
 227  "use_on_type_format": true,
 228  // Whether to automatically add matching closing characters when typing
 229  // opening parenthesis, bracket, brace, single or double quote characters.
 230  // For example, when you type (, Zed will add a closing ) at the correct position.
 231  "use_autoclose": true,
 232  // Whether to automatically surround selected text when typing opening parenthesis,
 233  // bracket, brace, single or double quote characters.
 234  // For example, when you select text and type (, Zed will surround the text with ().
 235  "use_auto_surround": true,
 236  // Whether indentation of pasted content should be adjusted based on the context.
 237  "auto_indent_on_paste": true,
 238  // Controls how the editor handles the autoclosed characters.
 239  // When set to `false`(default), skipping over and auto-removing of the closing characters
 240  // happen only for auto-inserted characters.
 241  // Otherwise(when `true`), the closing characters are always skipped over and auto-removed
 242  // no matter how they were inserted.
 243  "always_treat_brackets_as_autoclosed": false,
 244  // Controls where the `editor::Rewrap` action is allowed in the current language scope.
 245  //
 246  // This setting can take three values:
 247  //
 248  // 1. Only allow rewrapping in comments:
 249  //    "in_comments"
 250  // 2. Only allow rewrapping in the current selection(s):
 251  //    "in_selections"
 252  // 3. Allow rewrapping anywhere:
 253  //    "anywhere"
 254  //
 255  // When using values other than `in_comments`, it is possible for the rewrapping to produce code
 256  // that is syntactically invalid. Keep this in mind when selecting which behavior you would like
 257  // to use.
 258  //
 259  // Note: This setting has no effect in Vim mode, as rewrap is already allowed everywhere.
 260  "allow_rewrap": "in_comments",
 261  // Controls whether edit predictions are shown immediately (true)
 262  // or manually by triggering `editor::ShowEditPrediction` (false).
 263  "show_edit_predictions": true,
 264  // Controls whether edit predictions are shown in a given language scope.
 265  // Example: ["string", "comment"]
 266  "edit_predictions_disabled_in": [],
 267  // Whether to show tabs and spaces in the editor.
 268  // This setting can take four values:
 269  //
 270  // 1. Draw tabs and spaces only for the selected text (default):
 271  //    "selection"
 272  // 2. Do not draw any tabs or spaces:
 273  //    "none"
 274  // 3. Draw all invisible symbols:
 275  //    "all"
 276  // 4. Draw whitespaces at boundaries only:
 277  //    "boundary"
 278  // For a whitespace to be on a boundary, any of the following conditions need to be met:
 279  // - It is a tab
 280  // - It is adjacent to an edge (start or end)
 281  // - It is adjacent to a whitespace (left or right)
 282  "show_whitespaces": "selection",
 283  // Settings related to calls in Zed
 284  "calls": {
 285    // Join calls with the microphone live by default
 286    "mute_on_join": false,
 287    // Share your project when you are the first to join a channel
 288    "share_on_join": false
 289  },
 290  // Toolbar related settings
 291  "toolbar": {
 292    // Whether to show breadcrumbs.
 293    "breadcrumbs": true,
 294    // Whether to show quick action buttons.
 295    "quick_actions": true,
 296    // Whether to show the Selections menu in the editor toolbar
 297    "selections_menu": true
 298  },
 299  // Scrollbar related settings
 300  "scrollbar": {
 301    // When to show the scrollbar in the editor.
 302    // This setting can take four values:
 303    //
 304    // 1. Show the scrollbar if there's important information or
 305    //    follow the system's configured behavior (default):
 306    //   "auto"
 307    // 2. Match the system's configured behavior:
 308    //    "system"
 309    // 3. Always show the scrollbar:
 310    //    "always"
 311    // 4. Never show the scrollbar:
 312    //    "never"
 313    "show": "auto",
 314    // Whether to show cursor positions in the scrollbar.
 315    "cursors": true,
 316    // Whether to show git diff indicators in the scrollbar.
 317    "git_diff": true,
 318    // Whether to show buffer search results in the scrollbar.
 319    "search_results": true,
 320    // Whether to show selected text occurrences in the scrollbar.
 321    "selected_text": true,
 322    // Whether to show selected symbol occurrences in the scrollbar.
 323    "selected_symbol": true,
 324    // Which diagnostic indicators to show in the scrollbar:
 325    //  - "none" or false: do not show diagnostics
 326    //  - "error": show only errors
 327    //  - "warning": show only errors and warnings
 328    //  - "information": show only errors, warnings, and information
 329    //  - "all" or true: show all diagnostics
 330    "diagnostics": "all",
 331    // Forcefully enable or disable the scrollbar for each axis
 332    "axes": {
 333      // When false, forcefully disables the horizontal scrollbar. Otherwise, obey other settings.
 334      "horizontal": true,
 335      // When false, forcefully disables the vertical scrollbar. Otherwise, obey other settings.
 336      "vertical": true
 337    }
 338  },
 339  // Enable middle-click paste on Linux.
 340  "middle_click_paste": true,
 341  // What to do when multibuffer is double clicked in some of its excerpts
 342  // (parts of singleton buffers).
 343  // May take 2 values:
 344  //  1. Behave as a regular buffer and select the whole word (default).
 345  //         "double_click_in_multibuffer": "select"
 346  //  2. Open the excerpt clicked as a new buffer in the new tab.
 347  //         "double_click_in_multibuffer": "open",
 348  // For the case of "open", regular selection behavior can be achieved by holding `alt` when double clicking.
 349  "double_click_in_multibuffer": "select",
 350  "gutter": {
 351    // Whether to show line numbers in the gutter.
 352    "line_numbers": true,
 353    // Whether to show code action buttons in the gutter.
 354    "code_actions": true,
 355    // Whether to show runnables buttons in the gutter.
 356    "runnables": true,
 357    // Whether to show breakpoints in the gutter.
 358    "breakpoints": true,
 359    // Whether to show fold buttons in the gutter.
 360    "folds": true
 361  },
 362  "indent_guides": {
 363    // Whether to show indent guides in the editor.
 364    "enabled": true,
 365    // The width of the indent guides in pixels, between 1 and 10.
 366    "line_width": 1,
 367    // The width of the active indent guide in pixels, between 1 and 10.
 368    "active_line_width": 1,
 369    // Determines how indent guides are colored.
 370    // This setting can take the following three values:
 371    //
 372    // 1. "disabled"
 373    // 2. "fixed"
 374    // 3. "indent_aware"
 375    "coloring": "fixed",
 376    // Determines how indent guide backgrounds are colored.
 377    // This setting can take the following two values:
 378    //
 379    // 1. "disabled"
 380    // 2. "indent_aware"
 381    "background_coloring": "disabled"
 382  },
 383  // Whether the editor will scroll beyond the last line.
 384  "scroll_beyond_last_line": "one_page",
 385  // The number of lines to keep above/below the cursor when scrolling.
 386  "vertical_scroll_margin": 3,
 387  // Whether to scroll when clicking near the edge of the visible text area.
 388  "autoscroll_on_clicks": false,
 389  // The number of characters to keep on either side when scrolling with the mouse
 390  "horizontal_scroll_margin": 5,
 391  // Scroll sensitivity multiplier. This multiplier is applied
 392  // to both the horizontal and vertical delta values while scrolling.
 393  "scroll_sensitivity": 1.0,
 394  "relative_line_numbers": false,
 395  // If 'search_wrap' is disabled, search result do not wrap around the end of the file.
 396  "search_wrap": true,
 397  // Search options to enable by default when opening new project and buffer searches.
 398  "search": {
 399    "whole_word": false,
 400    "case_sensitive": false,
 401    "include_ignored": false,
 402    "regex": false
 403  },
 404  // When to populate a new search's query based on the text under the cursor.
 405  // This setting can take the following three values:
 406  //
 407  // 1. Always populate the search query with the word under the cursor (default).
 408  //    "always"
 409  // 2. Only populate the search query when there is text selected
 410  //    "selection"
 411  // 3. Never populate the search query
 412  //    "never"
 413  "seed_search_query_from_cursor": "always",
 414  // When enabled, automatically adjusts search case sensitivity based on your query.
 415  // If your search query contains any uppercase letters, the search becomes case-sensitive;
 416  // if it contains only lowercase letters, the search becomes case-insensitive.
 417  "use_smartcase_search": false,
 418  // Inlay hint related settings
 419  "inlay_hints": {
 420    // Global switch to toggle hints on and off, switched off by default.
 421    "enabled": false,
 422    // Toggle certain types of hints on and off, all switched on by default.
 423    "show_type_hints": true,
 424    "show_parameter_hints": true,
 425    // Corresponds to null/None LSP hint type value.
 426    "show_other_hints": true,
 427    // Whether to show a background for inlay hints.
 428    //
 429    // If set to `true`, the background will use the `hint.background` color from the current theme.
 430    "show_background": false,
 431    // Time to wait after editing the buffer, before requesting the hints,
 432    // set to 0 to disable debouncing.
 433    "edit_debounce_ms": 700,
 434    // Time to wait after scrolling the buffer, before requesting the hints,
 435    // set to 0 to disable debouncing.
 436    "scroll_debounce_ms": 50,
 437    // A set of modifiers which, when pressed, will toggle the visibility of inlay hints.
 438    // If the set if empty or not all the modifiers specified are pressed, inlay hints will not be toggled.
 439    "toggle_on_modifiers_press": {
 440      "control": false,
 441      "shift": false,
 442      "alt": false,
 443      "platform": false,
 444      "function": false
 445    }
 446  },
 447  "project_panel": {
 448    // Whether to show the project panel button in the status bar
 449    "button": true,
 450    // Whether to hide the gitignore entries in the project panel.
 451    "hide_gitignore": false,
 452    // Default width of the project panel.
 453    "default_width": 240,
 454    // Where to dock the project panel. Can be 'left' or 'right'.
 455    "dock": "left",
 456    // Spacing between worktree entries in the project panel. Can be 'comfortable' or 'standard'.
 457    "entry_spacing": "comfortable",
 458    // Whether to show file icons in the project panel.
 459    "file_icons": true,
 460    // Whether to show folder icons or chevrons for directories in the project panel.
 461    "folder_icons": true,
 462    // Whether to show the git status in the project panel.
 463    "git_status": true,
 464    // Amount of indentation for nested items.
 465    "indent_size": 20,
 466    // Whether to reveal it in the project panel automatically,
 467    // when a corresponding project entry becomes active.
 468    // Gitignored entries are never auto revealed.
 469    "auto_reveal_entries": true,
 470    // Whether to fold directories automatically and show compact folders
 471    // (e.g. "a/b/c" ) when a directory has only one subdirectory inside.
 472    "auto_fold_dirs": true,
 473    // Scrollbar-related settings
 474    "scrollbar": {
 475      // When to show the scrollbar in the project panel.
 476      // This setting can take five values:
 477      //
 478      // 1. null (default): Inherit editor settings
 479      // 2. Show the scrollbar if there's important information or
 480      //    follow the system's configured behavior (default):
 481      //   "auto"
 482      // 3. Match the system's configured behavior:
 483      //    "system"
 484      // 4. Always show the scrollbar:
 485      //    "always"
 486      // 5. Never show the scrollbar:
 487      //    "never"
 488      "show": null
 489    },
 490    // Which files containing diagnostic errors/warnings to mark in the project panel.
 491    // This setting can take the following three values:
 492    //
 493    // 1. Do not mark any files:
 494    //    "off"
 495    // 2. Only mark files with errors:
 496    //    "errors"
 497    // 3. Mark files with errors and warnings:
 498    //    "all"
 499    "show_diagnostics": "all",
 500    // Settings related to indent guides in the project panel.
 501    "indent_guides": {
 502      // When to show indent guides in the project panel.
 503      // This setting can take two values:
 504      //
 505      // 1. Always show indent guides:
 506      //    "always"
 507      // 2. Never show indent guides:
 508      //    "never"
 509      "show": "always"
 510    }
 511  },
 512  "outline_panel": {
 513    // Whether to show the outline panel button in the status bar
 514    "button": true,
 515    // Default width of the outline panel.
 516    "default_width": 300,
 517    // Where to dock the outline panel. Can be 'left' or 'right'.
 518    "dock": "left",
 519    // Whether to show file icons in the outline panel.
 520    "file_icons": true,
 521    // Whether to show folder icons or chevrons for directories in the outline panel.
 522    "folder_icons": true,
 523    // Whether to show the git status in the outline panel.
 524    "git_status": true,
 525    // Amount of indentation for nested items.
 526    "indent_size": 20,
 527    // Whether to reveal it in the outline panel automatically,
 528    // when a corresponding outline entry becomes active.
 529    // Gitignored entries are never auto revealed.
 530    "auto_reveal_entries": true,
 531    // Whether to fold directories automatically
 532    // when a directory has only one directory inside.
 533    "auto_fold_dirs": true,
 534    // Settings related to indent guides in the outline panel.
 535    "indent_guides": {
 536      // When to show indent guides in the outline panel.
 537      // This setting can take two values:
 538      //
 539      // 1. Always show indent guides:
 540      //    "always"
 541      // 2. Never show indent guides:
 542      //    "never"
 543      "show": "always"
 544    },
 545    // Scrollbar-related settings
 546    "scrollbar": {
 547      // When to show the scrollbar in the project panel.
 548      // This setting can take five values:
 549      //
 550      // 1. null (default): Inherit editor settings
 551      // 2. Show the scrollbar if there's important information or
 552      //    follow the system's configured behavior (default):
 553      //   "auto"
 554      // 3. Match the system's configured behavior:
 555      //    "system"
 556      // 4. Always show the scrollbar:
 557      //    "always"
 558      // 5. Never show the scrollbar:
 559      //    "never"
 560      "show": null
 561    }
 562  },
 563  "collaboration_panel": {
 564    // Whether to show the collaboration panel button in the status bar.
 565    "button": true,
 566    // Where to dock the collaboration panel. Can be 'left' or 'right'.
 567    "dock": "left",
 568    // Default width of the collaboration panel.
 569    "default_width": 240
 570  },
 571  "chat_panel": {
 572    // When to show the chat panel button in the status bar.
 573    // Can be 'never', 'always', or 'when_in_call',
 574    // or a boolean (interpreted as 'never'/'always').
 575    "button": "when_in_call",
 576    // Where to the chat panel. Can be 'left' or 'right'.
 577    "dock": "right",
 578    // Default width of the chat panel.
 579    "default_width": 240
 580  },
 581  "git_panel": {
 582    // Whether to show the git panel button in the status bar.
 583    "button": true,
 584    // Where to show the git panel. Can be 'left' or 'right'.
 585    "dock": "left",
 586    // Default width of the git panel.
 587    "default_width": 360,
 588    // Style of the git status indicator in the panel.
 589    //
 590    // Default: icon
 591    "status_style": "icon",
 592    // What branch name to use if init.defaultBranch
 593    // is not set
 594    //
 595    // Default: main
 596    "fallback_branch_name": "main",
 597    "scrollbar": {
 598      // When to show the scrollbar in the git panel.
 599      //
 600      // Default: inherits editor scrollbar settings
 601      "show": null
 602    }
 603  },
 604  "message_editor": {
 605    // Whether to automatically replace emoji shortcodes with emoji characters.
 606    // For example: typing `:wave:` gets replaced with `👋`.
 607    "auto_replace_emoji_shortcode": true
 608  },
 609  "notification_panel": {
 610    // Whether to show the notification panel button in the status bar.
 611    "button": true,
 612    // Where to dock the notification panel. Can be 'left' or 'right'.
 613    "dock": "right",
 614    // Default width of the notification panel.
 615    "default_width": 380
 616  },
 617  "assistant": {
 618    // Version of this setting.
 619    "version": "2",
 620    // Whether the assistant is enabled.
 621    "enabled": true,
 622    // Whether to show the assistant panel button in the status bar.
 623    "button": true,
 624    // Where to dock the assistant panel. Can be 'left', 'right' or 'bottom'.
 625    "dock": "right",
 626    // Default width when the assistant is docked to the left or right.
 627    "default_width": 640,
 628    // Default height when the assistant is docked to the bottom.
 629    "default_height": 320,
 630    // The default model to use when creating new chats.
 631    "default_model": {
 632      // The provider to use.
 633      "provider": "zed.dev",
 634      // The model to use.
 635      "model": "claude-3-7-sonnet-latest"
 636    },
 637    // The model to use when applying edits from the assistant.
 638    "editor_model": {
 639      // The provider to use.
 640      "provider": "zed.dev",
 641      // The model to use.
 642      "model": "claude-3-7-sonnet-latest"
 643    },
 644    // When enabled, the agent can run potentially destructive actions without asking for your confirmation.
 645    "always_allow_tool_actions": false,
 646    "default_profile": "write",
 647    "profiles": {
 648      "ask": {
 649        "name": "Ask",
 650        // We don't know which of the context server tools are safe for the "Ask" profile, so we don't enable them by default.
 651        // "enable_all_context_servers": true,
 652        "tools": {
 653          "contents": true,
 654          "diagnostics": true,
 655          "fetch": true,
 656          "list_directory": false,
 657          "now": true,
 658          "path_search": true,
 659          "read_file": true,
 660          "regex_search": true,
 661          "thinking": true,
 662          "web_search": true
 663        }
 664      },
 665      "write": {
 666        "name": "Write",
 667        "enable_all_context_servers": true,
 668        "tools": {
 669          "batch_tool": false,
 670          "code_actions": false,
 671          "code_symbols": false,
 672          "contents": false,
 673          "copy_path": false,
 674          "create_file": true,
 675          "delete_path": false,
 676          "diagnostics": true,
 677          "edit_file": true,
 678          "fetch": true,
 679          "list_directory": true,
 680          "move_path": false,
 681          "now": false,
 682          "path_search": true,
 683          "read_file": true,
 684          "regex_search": true,
 685          "rename": false,
 686          "symbol_info": false,
 687          "terminal": true,
 688          "thinking": true,
 689          "web_search": true
 690        }
 691      }
 692    },
 693    // Where to show notifications when an agent has either completed
 694    // its response, or else needs confirmation before it can run a
 695    // tool action.
 696    // "primary_screen" - Show the notification only on your primary screen (default)
 697    // "all_screens" - Show these notifications on all screens
 698    // "never" - Never show these notifications
 699    "notify_when_agent_waiting": "primary_screen"
 700  },
 701  // The settings for slash commands.
 702  "slash_commands": {
 703    // Settings for the `/docs` slash command.
 704    "docs": {
 705      // Whether `/docs` is enabled.
 706      "enabled": false
 707    },
 708    // Settings for the `/project` slash command.
 709    "project": {
 710      // Whether `/project` is enabled.
 711      "enabled": false
 712    }
 713  },
 714  // Whether the screen sharing icon is shown in the os status bar.
 715  "show_call_status_icon": true,
 716  // Whether to use language servers to provide code intelligence.
 717  "enable_language_server": true,
 718  // Whether to perform linked edits of associated ranges, if the language server supports it.
 719  // For example, when editing opening <html> tag, the contents of the closing </html> tag will be edited as well.
 720  "linked_edits": true,
 721  // The list of language servers to use (or disable) for all languages.
 722  //
 723  // This is typically customized on a per-language basis.
 724  "language_servers": [
 725    "..."
 726  ],
 727  // When to automatically save edited buffers. This setting can
 728  // take four values.
 729  //
 730  // 1. Never automatically save:
 731  //     "autosave": "off",
 732  // 2. Save when changing focus away from the Zed window:
 733  //     "autosave": "on_window_change",
 734  // 3. Save when changing focus away from a specific buffer:
 735  //     "autosave": "on_focus_change",
 736  // 4. Save when idle for a certain amount of time:
 737  //     "autosave": { "after_delay": {"milliseconds": 500} },
 738  "autosave": "off",
 739  // Maximum number of tabs per pane. Unset for unlimited.
 740  "max_tabs": null,
 741  // Settings related to the editor's tab bar.
 742  "tab_bar": {
 743    // Whether or not to show the tab bar in the editor
 744    "show": true,
 745    // Whether or not to show the navigation history buttons.
 746    "show_nav_history_buttons": true,
 747    // Whether or not to show the tab bar buttons.
 748    "show_tab_bar_buttons": true
 749  },
 750  // Settings related to the editor's tabs
 751  "tabs": {
 752    // Show git status colors in the editor tabs.
 753    "git_status": false,
 754    // Position of the close button on the editor tabs.
 755    // One of: ["right", "left", "hidden"]
 756    "close_position": "right",
 757    // Whether to show the file icon for a tab.
 758    "file_icons": false,
 759    // Controls the appearance behavior of the tab's close button.
 760    //
 761    // 1. Show it just upon hovering the tab. (default)
 762    //     "hover"
 763    // 2. Show it persistently.
 764    //     "always"
 765    // 3. Never show it, even if hovering it.
 766    //     "hidden"
 767    "show_close_button": "hover",
 768    // What to do after closing the current tab.
 769    //
 770    // 1. Activate the tab that was open previously (default)
 771    //     "history"
 772    // 2. Activate the right neighbour tab if present
 773    //     "neighbour"
 774    // 3. Activate the left neighbour tab if present
 775    //     "left_neighbour"
 776    "activate_on_close": "history",
 777    // Which files containing diagnostic errors/warnings to mark in the tabs.
 778    // Diagnostics are only shown when file icons are also active.
 779    // This setting only works when can take the following three values:
 780    //
 781    // 1. Do not mark any files:
 782    //    "off"
 783    // 2. Only mark files with errors:
 784    //    "errors"
 785    // 3. Mark files with errors and warnings:
 786    //    "all"
 787    "show_diagnostics": "off"
 788  },
 789  // Settings related to preview tabs.
 790  "preview_tabs": {
 791    // Whether preview tabs should be enabled.
 792    // Preview tabs allow you to open files in preview mode, where they close automatically
 793    // when you switch to another file unless you explicitly pin them.
 794    // This is useful for quickly viewing files without cluttering your workspace.
 795    "enabled": true,
 796    // Whether to open tabs in preview mode when selected from the file finder.
 797    "enable_preview_from_file_finder": false,
 798    // Whether a preview tab gets replaced when code navigation is used to navigate away from the tab.
 799    "enable_preview_from_code_navigation": false
 800  },
 801  // Settings related to the file finder.
 802  "file_finder": {
 803    // Whether to show file icons in the file finder.
 804    "file_icons": true,
 805    // Determines how much space the file finder can take up in relation to the available window width.
 806    // There are 5 possible width values:
 807    //
 808    // 1. Small: This value is essentially a fixed width.
 809    //    "modal_max_width": "small"
 810    // 2. Medium:
 811    //    "modal_max_width": "medium"
 812    // 3. Large:
 813    //    "modal_max_width": "large"
 814    // 4. Extra Large:
 815    //    "modal_max_width": "xlarge"
 816    // 5. Fullscreen: This value removes any horizontal padding, as it consumes the whole viewport width.
 817    //    "modal_max_width": "full"
 818    //
 819    // Default: small
 820    "modal_max_width": "small"
 821  },
 822  // Whether or not to remove any trailing whitespace from lines of a buffer
 823  // before saving it.
 824  "remove_trailing_whitespace_on_save": true,
 825  // Whether to start a new line with a comment when a previous line is a comment as well.
 826  "extend_comment_on_newline": true,
 827  // Removes any lines containing only whitespace at the end of the file and
 828  // ensures just one newline at the end.
 829  "ensure_final_newline_on_save": true,
 830  // Whether or not to perform a buffer format before saving
 831  //
 832  // Keep in mind, if the autosave with delay is enabled, format_on_save will be ignored
 833  "format_on_save": "on",
 834  // How to perform a buffer format. This setting can take 4 values:
 835  //
 836  // 1. Format code using the current language server:
 837  //     "formatter": "language_server"
 838  // 2. Format code using an external command:
 839  //     "formatter": {
 840  //       "external": {
 841  //         "command": "prettier",
 842  //         "arguments": ["--stdin-filepath", "{buffer_path}"]
 843  //       }
 844  //     }
 845  // 3. Format code using Zed's Prettier integration:
 846  //     "formatter": "prettier"
 847  // 4. Default. Format files using Zed's Prettier integration (if applicable),
 848  //    or falling back to formatting via language server:
 849  //     "formatter": "auto"
 850  "formatter": "auto",
 851  // How to soft-wrap long lines of text.
 852  // Possible values:
 853  //
 854  // 1. Prefer a single line generally, unless an overly long line is encountered.
 855  //      "soft_wrap": "none",
 856  //      "soft_wrap": "prefer_line", // (deprecated, same as "none")
 857  // 2. Soft wrap lines that overflow the editor.
 858  //      "soft_wrap": "editor_width",
 859  // 3. Soft wrap lines at the preferred line length.
 860  //      "soft_wrap": "preferred_line_length",
 861  // 4. Soft wrap lines at the preferred line length or the editor width (whichever is smaller).
 862  //      "soft_wrap": "bounded",
 863  "soft_wrap": "none",
 864  // The column at which to soft-wrap lines, for buffers where soft-wrap
 865  // is enabled.
 866  "preferred_line_length": 80,
 867  // Whether to indent lines using tab characters, as opposed to multiple
 868  // spaces.
 869  "hard_tabs": false,
 870  // How many columns a tab should occupy.
 871  "tab_size": 4,
 872  // Control what info is collected by Zed.
 873  "telemetry": {
 874    // Send debug info like crash reports.
 875    "diagnostics": true,
 876    // Send anonymized usage data like what languages you're using Zed with.
 877    "metrics": true
 878  },
 879  // Automatically update Zed. This setting may be ignored on Linux if
 880  // installed through a package manager.
 881  "auto_update": true,
 882  // Diagnostics configuration.
 883  "diagnostics": {
 884    // Whether to show warnings or not by default.
 885    "include_warnings": true,
 886    // Settings for inline diagnostics
 887    "inline": {
 888      // Whether to show diagnostics inline or not
 889      "enabled": false,
 890      // The delay in milliseconds to show inline diagnostics after the
 891      // last diagnostic update.
 892      "update_debounce_ms": 150,
 893      // The amount of padding between the end of the source line and the start
 894      // of the inline diagnostic in units of em widths.
 895      "padding": 4,
 896      // The minimum column to display inline diagnostics. This setting can be
 897      // used to horizontally align inline diagnostics at some column. Lines
 898      // longer than this value will still push diagnostics further to the right.
 899      "min_column": 0,
 900      // The minimum severity of the diagnostics to show inline.
 901      // Shows all diagnostics when not specified.
 902      "max_severity": null
 903    }
 904  },
 905  // Files or globs of files that will be excluded by Zed entirely. They will be skipped during file
 906  // scans, file searches, and not be displayed in the project file tree. Takes precedence over `file_scan_inclusions`.
 907  "file_scan_exclusions": [
 908    "**/.git",
 909    "**/.svn",
 910    "**/.hg",
 911    "**/.jj",
 912    "**/CVS",
 913    "**/.DS_Store",
 914    "**/Thumbs.db",
 915    "**/.classpath",
 916    "**/.settings"
 917  ],
 918  // Files or globs of files that will be included by Zed, even when ignored by git. This is useful
 919  // for files that are not tracked by git, but are still important to your project. Note that globs
 920  // that are overly broad can slow down Zed's file scanning. `file_scan_exclusions` takes
 921  // precedence over these inclusions.
 922  "file_scan_inclusions": [
 923    ".env*"
 924  ],
 925  // Git gutter behavior configuration.
 926  "git": {
 927    // Control whether the git gutter is shown. May take 2 values:
 928    // 1. Show the gutter
 929    //      "git_gutter": "tracked_files"
 930    // 2. Hide the gutter
 931    //      "git_gutter": "hide"
 932    "git_gutter": "tracked_files",
 933    // Control whether the git blame information is shown inline,
 934    // in the currently focused line.
 935    "inline_blame": {
 936      "enabled": true
 937      // Sets a delay after which the inline blame information is shown.
 938      // Delay is restarted with every cursor movement.
 939      // "delay_ms": 600
 940      //
 941      // Whether or not to display the git commit summary on the same line.
 942      // "show_commit_summary": false
 943      //
 944      // The minimum column number to show the inline blame information at
 945      // "min_column": 0
 946    },
 947    // How git hunks are displayed visually in the editor.
 948    // This setting can take two values:
 949    //
 950    // 1. Show unstaged hunks filled and staged hunks hollow:
 951    //    "hunk_style": "staged_hollow"
 952    // 2. Show unstaged hunks hollow and staged hunks filled:
 953    //    "hunk_style": "unstaged_hollow"
 954    "hunk_style": "staged_hollow"
 955  },
 956  // The list of custom Git hosting providers.
 957  "git_hosting_providers": [
 958    // {
 959    //   "provider": "github",
 960    //   "name": "BigCorp GitHub",
 961    //   "base_url": "https://code.big-corp.com"
 962    // }
 963  ],
 964  // Configuration for how direnv configuration should be loaded. May take 2 values:
 965  // 1. Load direnv configuration using `direnv export json` directly.
 966  //      "load_direnv": "direct"
 967  // 2. Load direnv configuration through the shell hook, works for POSIX shells and fish.
 968  //      "load_direnv": "shell_hook"
 969  "load_direnv": "direct",
 970  "edit_predictions": {
 971    // A list of globs representing files that edit predictions should be disabled for.
 972    // There's a sensible default list of globs already included.
 973    // Any addition to this list will be merged with the default list.
 974    // Globs are matched relative to the worktree root,
 975    // except when starting with a slash (/) or equivalent in Windows.
 976    "disabled_globs": [
 977      "**/.env*",
 978      "**/*.pem",
 979      "**/*.key",
 980      "**/*.cert",
 981      "**/*.crt",
 982      "**/.dev.vars",
 983      "**/secrets.yml"
 984    ],
 985    // When to show edit predictions previews in buffer.
 986    // This setting takes two possible values:
 987    // 1. Display predictions inline when there are no language server completions available.
 988    //     "mode": "eager"
 989    // 2. Display predictions inline only when holding a modifier key (alt by default).
 990    //     "mode": "subtle"
 991    "mode": "eager",
 992    // Whether edit predictions are enabled in the assistant panel.
 993    // This setting has no effect if globally disabled.
 994    "enabled_in_assistant": true
 995  },
 996  // Settings specific to journaling
 997  "journal": {
 998    // The path of the directory where journal entries are stored
 999    "path": "~",
1000    // What format to display the hours in
1001    // May take 2 values:
1002    // 1. hour12
1003    // 2. hour24
1004    "hour_format": "hour12"
1005  },
1006  // Settings specific to the terminal
1007  "terminal": {
1008    // What shell to use when opening a terminal. May take 3 values:
1009    // 1. Use the system's default terminal configuration in /etc/passwd
1010    //      "shell": "system"
1011    // 2. A program:
1012    //      "shell": {
1013    //        "program": "sh"
1014    //      }
1015    // 3. A program with arguments:
1016    //     "shell": {
1017    //         "with_arguments": {
1018    //           "program": "/bin/bash",
1019    //           "args": ["--login"]
1020    //         }
1021    //     }
1022    "shell": "system",
1023    // Where to dock terminals panel. Can be `left`, `right`, `bottom`.
1024    "dock": "bottom",
1025    // Default width when the terminal is docked to the left or right.
1026    "default_width": 640,
1027    // Default height when the terminal is docked to the bottom.
1028    "default_height": 320,
1029    // What working directory to use when launching the terminal.
1030    // May take 4 values:
1031    // 1. Use the current file's project directory.  Will Fallback to the
1032    //    first project directory strategy if unsuccessful
1033    //      "working_directory": "current_project_directory"
1034    // 2. Use the first project in this workspace's directory
1035    //      "working_directory": "first_project_directory"
1036    // 3. Always use this platform's home directory (if we can find it)
1037    //     "working_directory": "always_home"
1038    // 4. Always use a specific directory. This value will be shell expanded.
1039    //    If this path is not a valid directory the terminal will default to
1040    //    this platform's home directory  (if we can find it)
1041    //      "working_directory": {
1042    //        "always": {
1043    //          "directory": "~/zed/projects/"
1044    //        }
1045    //      }
1046    "working_directory": "current_project_directory",
1047    // Set the cursor blinking behavior in the terminal.
1048    // May take 3 values:
1049    //  1. Never blink the cursor, ignoring the terminal mode
1050    //         "blinking": "off",
1051    //  2. Default the cursor blink to off, but allow the terminal to
1052    //     set blinking
1053    //         "blinking": "terminal_controlled",
1054    //  3. Always blink the cursor, ignoring the terminal mode
1055    //         "blinking": "on",
1056    "blinking": "terminal_controlled",
1057    // Default cursor shape for the terminal.
1058    //  1. A block that surrounds the following character
1059    //     "block"
1060    //  2. A vertical bar
1061    //     "bar"
1062    //  3. An underline / underscore that runs along the following character
1063    //     "underline"
1064    //  4. A box drawn around the following character
1065    //     "hollow"
1066    //
1067    // Default: not set, defaults to "block"
1068    "cursor_shape": null,
1069    // Set whether Alternate Scroll mode (code: ?1007) is active by default.
1070    // Alternate Scroll mode converts mouse scroll events into up / down key
1071    // presses when in the alternate screen (e.g. when running applications
1072    // like vim or  less). The terminal can still set and unset this mode.
1073    // May take 2 values:
1074    //  1. Default alternate scroll mode to on
1075    //         "alternate_scroll": "on",
1076    //  2. Default alternate scroll mode to off
1077    //         "alternate_scroll": "off",
1078    "alternate_scroll": "on",
1079    // Set whether the option key behaves as the meta key.
1080    // May take 2 values:
1081    //  1. Rely on default platform handling of option key, on macOS
1082    //     this means generating certain unicode characters
1083    //         "option_as_meta": false,
1084    //  2. Make the option keys behave as a 'meta' key, e.g. for emacs
1085    //         "option_as_meta": true,
1086    "option_as_meta": false,
1087    // Whether or not selecting text in the terminal will automatically
1088    // copy to the system clipboard.
1089    "copy_on_select": false,
1090    // Whether to show the terminal button in the status bar
1091    "button": true,
1092    // Any key-value pairs added to this list will be added to the terminal's
1093    // environment. Use `:` to separate multiple values.
1094    "env": {
1095      // "KEY": "value1:value2"
1096    },
1097    // Set the terminal's line height.
1098    // May take 3 values:
1099    //  1. Use a line height that's comfortable for reading, 1.618
1100    //         "line_height": "comfortable"
1101    //  2. Use a standard line height, 1.3. This option is useful for TUIs,
1102    //      particularly if they use box characters
1103    //         "line_height": "standard",
1104    //  3. Use a custom line height.
1105    //         "line_height": {
1106    //           "custom": 2
1107    //         },
1108    "line_height": "comfortable",
1109    // Activate the python virtual environment, if one is found, in the
1110    // terminal's working directory (as resolved by the working_directory
1111    // setting). Set this to "off" to disable this behavior.
1112    "detect_venv": {
1113      "on": {
1114        // Default directories to search for virtual environments, relative
1115        // to the current working directory. We recommend overriding this
1116        // in your project's settings, rather than globally.
1117        "directories": [
1118          ".env",
1119          "env",
1120          ".venv",
1121          "venv"
1122        ],
1123        // Can also be `csh`, `fish`, `nushell` and `power_shell`
1124        "activate_script": "default"
1125      }
1126    },
1127    "toolbar": {
1128      // Whether to display the terminal title in its toolbar's breadcrumbs.
1129      // Only shown if the terminal title is not empty.
1130      //
1131      // The shell running in the terminal needs to be configured to emit the title.
1132      // Example: `echo -e "\e]2;New Title\007";`
1133      "breadcrumbs": true
1134    },
1135    // Scrollbar-related settings
1136    "scrollbar": {
1137      // When to show the scrollbar in the terminal.
1138      // This setting can take five values:
1139      //
1140      // 1. null (default): Inherit editor settings
1141      // 2. Show the scrollbar if there's important information or
1142      //    follow the system's configured behavior (default):
1143      //   "auto"
1144      // 3. Match the system's configured behavior:
1145      //    "system"
1146      // 4. Always show the scrollbar:
1147      //    "always"
1148      // 5. Never show the scrollbar:
1149      //    "never"
1150      "show": null
1151    }
1152    // Set the terminal's font size. If this option is not included,
1153    // the terminal will default to matching the buffer's font size.
1154    // "font_size": 15,
1155    // Set the terminal's font family. If this option is not included,
1156    // the terminal will default to matching the buffer's font family.
1157    // "font_family": "Zed Plex Mono",
1158    // Set the terminal's font fallbacks. If this option is not included,
1159    // the terminal will default to matching the buffer's font fallbacks.
1160    // This will be merged with the platform's default font fallbacks
1161    // "font_fallbacks": ["FiraCode Nerd Fonts"],
1162    // Sets the maximum number of lines in the terminal's scrollback buffer.
1163    // Default: 10_000, maximum: 100_000 (all bigger values set will be treated as 100_000), 0 disables the scrolling.
1164    // Existing terminals will not pick up this change until they are recreated.
1165    // "max_scroll_history_lines": 10000,
1166  },
1167  "code_actions_on_format": {},
1168  // Settings related to running tasks.
1169  "tasks": {
1170    "variables": {},
1171    "enabled": true
1172  },
1173  // An object whose keys are language names, and whose values
1174  // are arrays of filenames or extensions of files that should
1175  // use those languages.
1176  //
1177  // For example, to treat files like `foo.notjs` as JavaScript,
1178  // and `Embargo.lock` as TOML:
1179  //
1180  // {
1181  //   "JavaScript": ["notjs"],
1182  //   "TOML": ["Embargo.lock"]
1183  // }
1184  //
1185  "file_types": {
1186    "JSONC": [
1187      "**/.zed/**/*.json",
1188      "**/zed/**/*.json",
1189      "**/Zed/**/*.json",
1190      "**/.vscode/**/*.json"
1191    ],
1192    "Shell Script": [
1193      ".env.*"
1194    ]
1195  },
1196  // By default use a recent system version of node, or install our own.
1197  // You can override this to use a version of node that is not in $PATH with:
1198  // {
1199  //   "node": {
1200  //     "path": "/path/to/node"
1201  //     "npm_path": "/path/to/npm" (defaults to node_path/../npm)
1202  //   }
1203  // }
1204  // or to ensure Zed always downloads and installs an isolated version of node:
1205  // {
1206  //   "node": {
1207  //     "ignore_system_version": true,
1208  //   }
1209  // NOTE: changing this setting currently requires restarting Zed.
1210  "node": {},
1211  // The extensions that Zed should automatically install on startup.
1212  //
1213  // If you don't want any of these extensions, add this field to your settings
1214  // and change the value to `false`.
1215  "auto_install_extensions": {
1216    "html": true
1217  },
1218  // Controls how completions are processed for this language.
1219  "completions": {
1220    // Controls how words are completed.
1221    // For large documents, not all words may be fetched for completion.
1222    //
1223    // May take 3 values:
1224    // 1. "enabled"
1225    //   Always fetch document's words for completions along with LSP completions.
1226    // 2. "fallback"
1227    //   Only if LSP response errors or times out, use document's words to show completions.
1228    // 3. "disabled"
1229    //   Never fetch or complete document's words for completions.
1230    //   (Word-based completions can still be queried via a separate action)
1231    //
1232    // Default: fallback
1233    "words": "fallback",
1234    // Whether to fetch LSP completions or not.
1235    //
1236    // Default: true
1237    "lsp": true,
1238    // When fetching LSP completions, determines how long to wait for a response of a particular server.
1239    // When set to 0, waits indefinitely.
1240    //
1241    // Default: 0
1242    "lsp_fetch_timeout_ms": 0,
1243    // Controls what range to replace when accepting LSP completions.
1244    //
1245    // When LSP servers give an `InsertReplaceEdit` completion, they provides two ranges: `insert` and `replace`. Usually, `insert`
1246    // contains the word prefix before your cursor and `replace` contains the whole word.
1247    //
1248    // Effectively, this setting just changes whether Zed will use the received range for `insert` or `replace`, so the results may
1249    // differ depending on the underlying LSP server.
1250    //
1251    // Possible values:
1252    // 1. "insert"
1253    //   Replaces text before the cursor, using the `insert` range described in the LSP specification.
1254    // 2. "replace"
1255    //   Replaces text before and after the cursor, using the `replace` range described in the LSP specification.
1256    // 3. "replace_subsequence"
1257    //   Behaves like `"replace"` if the text that would be replaced is a subsequence of the completion text,
1258    //   and like `"insert"` otherwise.
1259    // 4. "replace_suffix"
1260    //   Behaves like `"replace"` if the text after the cursor is a suffix of the completion, and like
1261    //   `"insert"` otherwise.
1262    "lsp_insert_mode": "replace_suffix"
1263  },
1264  // Different settings for specific languages.
1265  "languages": {
1266    "Astro": {
1267      "language_servers": [
1268        "astro-language-server",
1269        "..."
1270      ],
1271      "prettier": {
1272        "allowed": true,
1273        "plugins": [
1274          "prettier-plugin-astro"
1275        ]
1276      }
1277    },
1278    "Blade": {
1279      "prettier": {
1280        "allowed": true
1281      }
1282    },
1283    "C": {
1284      "format_on_save": "off",
1285      "use_on_type_format": false,
1286      "prettier": {
1287        "allowed": false
1288      }
1289    },
1290    "C++": {
1291      "format_on_save": "off",
1292      "use_on_type_format": false,
1293      "prettier": {
1294        "allowed": false
1295      }
1296    },
1297    "CSS": {
1298      "prettier": {
1299        "allowed": true
1300      }
1301    },
1302    "Dart": {
1303      "tab_size": 2
1304    },
1305    "Diff": {
1306      "show_edit_predictions": false,
1307      "remove_trailing_whitespace_on_save": false,
1308      "ensure_final_newline_on_save": false
1309    },
1310    "Elixir": {
1311      "language_servers": [
1312        "elixir-ls",
1313        "!next-ls",
1314        "!lexical",
1315        "..."
1316      ]
1317    },
1318    "Erlang": {
1319      "language_servers": [
1320        "erlang-ls",
1321        "!elp",
1322        "..."
1323      ]
1324    },
1325    "Git Commit": {
1326      "allow_rewrap": "anywhere"
1327    },
1328    "Go": {
1329      "code_actions_on_format": {
1330        "source.organizeImports": true
1331      }
1332    },
1333    "GraphQL": {
1334      "prettier": {
1335        "allowed": true
1336      }
1337    },
1338    "HEEX": {
1339      "language_servers": [
1340        "elixir-ls",
1341        "!next-ls",
1342        "!lexical",
1343        "..."
1344      ]
1345    },
1346    "HTML": {
1347      "prettier": {
1348        "allowed": true
1349      }
1350    },
1351    "Java": {
1352      "prettier": {
1353        "allowed": true,
1354        "plugins": [
1355          "prettier-plugin-java"
1356        ]
1357      }
1358    },
1359    "JavaScript": {
1360      "language_servers": [
1361        "!typescript-language-server",
1362        "vtsls",
1363        "..."
1364      ],
1365      "prettier": {
1366        "allowed": true
1367      }
1368    },
1369    "JSON": {
1370      "prettier": {
1371        "allowed": true
1372      }
1373    },
1374    "JSONC": {
1375      "prettier": {
1376        "allowed": true
1377      }
1378    },
1379    "LaTeX": {
1380      "format_on_save": "on",
1381      "formatter": "language_server",
1382      "language_servers": [
1383        "texlab",
1384        "..."
1385      ],
1386      "prettier": {
1387        "allowed": false
1388      }
1389    },
1390    "Markdown": {
1391      "format_on_save": "off",
1392      "use_on_type_format": false,
1393      "allow_rewrap": "anywhere",
1394      "soft_wrap": "editor_width",
1395      "prettier": {
1396        "allowed": true
1397      }
1398    },
1399    "PHP": {
1400      "language_servers": [
1401        "phpactor",
1402        "!intelephense",
1403        "..."
1404      ],
1405      "prettier": {
1406        "allowed": true,
1407        "plugins": [
1408          "@prettier/plugin-php"
1409        ],
1410        "parser": "php"
1411      }
1412    },
1413    "Plain Text": {
1414      "allow_rewrap": "anywhere"
1415    },
1416    "Ruby": {
1417      "language_servers": [
1418        "solargraph",
1419        "!ruby-lsp",
1420        "!rubocop",
1421        "..."
1422      ]
1423    },
1424    "SCSS": {
1425      "prettier": {
1426        "allowed": true
1427      }
1428    },
1429    "SQL": {
1430      "prettier": {
1431        "allowed": true,
1432        "plugins": [
1433          "prettier-plugin-sql"
1434        ]
1435      }
1436    },
1437    "Starlark": {
1438      "language_servers": [
1439        "starpls",
1440        "!buck2-lsp",
1441        "..."
1442      ]
1443    },
1444    "Svelte": {
1445      "language_servers": [
1446        "svelte-language-server",
1447        "..."
1448      ],
1449      "prettier": {
1450        "allowed": true,
1451        "plugins": [
1452          "prettier-plugin-svelte"
1453        ]
1454      }
1455    },
1456    "TSX": {
1457      "language_servers": [
1458        "!typescript-language-server",
1459        "vtsls",
1460        "..."
1461      ],
1462      "prettier": {
1463        "allowed": true
1464      }
1465    },
1466    "Twig": {
1467      "prettier": {
1468        "allowed": true
1469      }
1470    },
1471    "TypeScript": {
1472      "language_servers": [
1473        "!typescript-language-server",
1474        "vtsls",
1475        "..."
1476      ],
1477      "prettier": {
1478        "allowed": true
1479      }
1480    },
1481    "Vue.js": {
1482      "language_servers": [
1483        "vue-language-server",
1484        "..."
1485      ],
1486      "prettier": {
1487        "allowed": true
1488      }
1489    },
1490    "XML": {
1491      "prettier": {
1492        "allowed": true,
1493        "plugins": [
1494          "@prettier/plugin-xml"
1495        ]
1496      }
1497    },
1498    "YAML": {
1499      "prettier": {
1500        "allowed": true
1501      }
1502    },
1503    "Zig": {
1504      "language_servers": [
1505        "zls",
1506        "..."
1507      ]
1508    }
1509  },
1510  // Different settings for specific language models.
1511  "language_models": {
1512    "anthropic": {
1513      "version": "1",
1514      "api_url": "https://api.anthropic.com"
1515    },
1516    "google": {
1517      "api_url": "https://generativelanguage.googleapis.com"
1518    },
1519    "ollama": {
1520      "api_url": "http://localhost:11434"
1521    },
1522    "openai": {
1523      "version": "1",
1524      "api_url": "https://api.openai.com/v1"
1525    },
1526    "lmstudio": {
1527      "api_url": "http://localhost:1234/api/v0"
1528    },
1529    "deepseek": {
1530      "api_url": "https://api.deepseek.com"
1531    },
1532    "mistral": {
1533      "api_url": "https://api.mistral.ai/v1"
1534    }
1535  },
1536  // Zed's Prettier integration settings.
1537  // Allows to enable/disable formatting with Prettier
1538  // and configure default Prettier, used when no project-level Prettier installation is found.
1539  "prettier": {
1540    // // Whether to consider prettier formatter or not when attempting to format a file.
1541    // "allowed": false,
1542    //
1543    // // Use regular Prettier json configuration.
1544    // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
1545    // // the project has no other Prettier installed.
1546    // "plugins": [],
1547    //
1548    // // Use regular Prettier json configuration.
1549    // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
1550    // // the project has no other Prettier installed.
1551    // "trailingComma": "es5",
1552    // "tabWidth": 4,
1553    // "semi": false,
1554    // "singleQuote": true
1555  },
1556  // Settings for auto-closing of JSX tags.
1557  "jsx_tag_auto_close": {
1558    "enabled": true
1559  },
1560  // LSP Specific settings.
1561  "lsp": {
1562    // Specify the LSP name as a key here.
1563    // "rust-analyzer": {
1564    //     // A special flag for rust-analyzer integration, to use server-provided tasks
1565    //     enable_lsp_tasks": true,
1566    //     // These initialization options are merged into Zed's defaults
1567    //     "initialization_options": {
1568    //         "check": {
1569    //             "command": "clippy" // rust-analyzer.check.command (default: "check")
1570    //         }
1571    //     }
1572    // }
1573  },
1574  // Jupyter settings
1575  "jupyter": {
1576    "enabled": true
1577    // Specify the language name as the key and the kernel name as the value.
1578    // "kernel_selections": {
1579    //    "python": "conda-base"
1580    //    "typescript": "deno"
1581    // }
1582  },
1583  // Vim settings
1584  "vim": {
1585    "default_mode": "normal",
1586    "toggle_relative_line_numbers": false,
1587    "use_system_clipboard": "always",
1588    "use_multiline_find": false,
1589    "use_smartcase_find": false,
1590    "highlight_on_yank_duration": 200,
1591    "custom_digraphs": {}
1592  },
1593  // The server to connect to. If the environment variable
1594  // ZED_SERVER_URL is set, it will override this setting.
1595  "server_url": "https://zed.dev",
1596  // Settings overrides to use when using Zed Preview.
1597  // Mostly useful for developers who are managing multiple instances of Zed.
1598  "preview": {
1599    // "theme": "Andromeda"
1600  },
1601  // Settings overrides to use when using Zed Nightly.
1602  // Mostly useful for developers who are managing multiple instances of Zed.
1603  "nightly": {
1604    // "theme": "Andromeda"
1605  },
1606  // Settings overrides to use when using Zed Stable.
1607  // Mostly useful for developers who are managing multiple instances of Zed.
1608  "stable": {
1609    // "theme": "Andromeda"
1610  },
1611  // Settings overrides to use when using Zed Dev.
1612  // Mostly useful for developers who are managing multiple instances of Zed.
1613  "dev": {
1614    // "theme": "Andromeda"
1615  },
1616  // Whether to show full labels in line indicator or short ones
1617  //
1618  // Values:
1619  //   - `short`: "2 s, 15 l, 32 c"
1620  //   - `long`: "2 selections, 15 lines, 32 characters"
1621  // Default: long
1622  "line_indicator_format": "long",
1623  // Set a proxy to use. The proxy protocol is specified by the URI scheme.
1624  //
1625  // Supported URI scheme: `http`, `https`, `socks4`, `socks4a`, `socks5`,
1626  // `socks5h`. `http` will be used when no scheme is specified.
1627  //
1628  // By default no proxy will be used, or Zed will try get proxy settings from
1629  // environment variables.
1630  //
1631  // Examples:
1632  //   - "proxy": "socks5h://localhost:10808"
1633  //   - "proxy": "http://127.0.0.1:10809"
1634  "proxy": null,
1635  // Set to configure aliases for the command palette.
1636  // When typing a query which is a key of this object, the value will be used instead.
1637  //
1638  // Examples:
1639  // {
1640  //   "W": "workspace::Save"
1641  // }
1642  "command_aliases": {},
1643  // Whether to show user picture in titlebar.
1644  "show_user_picture": true,
1645  // ssh_connections is an array of ssh connections.
1646  // You can configure these from `project: Open Remote` in the command palette.
1647  // Zed's ssh support will pull configuration from your ~/.ssh too.
1648  // Examples:
1649  // [
1650  //   {
1651  //     "host": "example-box",
1652  //     // "port": 22, "username": "test", "args": ["-i", "/home/user/.ssh/id_rsa"]
1653  //     "projects": [
1654  //       {
1655  //         "paths": ["/home/user/code/zed"]
1656  //       }
1657  //     ]
1658  //   }
1659  // ]
1660  "ssh_connections": [],
1661  // Configures context servers for use in the Assistant.
1662  "context_servers": {},
1663  "debugger": {
1664    "stepping_granularity": "line",
1665    "save_breakpoints": true,
1666    "button": true
1667  }
1668}