default.json

  1{
  2  // The name of the Zed theme to use for the UI.
  3  //
  4  // The theme can also be set to follow system preferences:
  5  //
  6  // "theme": {
  7  //   "mode": "system",
  8  //   "light": "One Light",
  9  //   "dark": "One Dark"
 10  // }
 11  //
 12  // Where `mode` is one of:
 13  // - "system": Use the theme that corresponds to the system's appearance
 14  // - "light": Use the theme indicated by the "light" field
 15  // - "dark": Use the theme indicated by the "dark" field
 16  "theme": "One Dark",
 17  // The name of a base set of key bindings to use.
 18  // This setting can take four values, each named after another
 19  // text editor:
 20  //
 21  // 1. "VSCode"
 22  // 2. "JetBrains"
 23  // 3. "SublimeText"
 24  // 4. "Atom"
 25  "base_keymap": "VSCode",
 26  // Features that can be globally enabled or disabled
 27  "features": {
 28    // Which inline completion provider to use.
 29    "inline_completion_provider": "copilot"
 30  },
 31  // The name of a font to use for rendering text in the editor
 32  "buffer_font_family": "Zed Mono",
 33  // The OpenType features to enable for text in the editor.
 34  "buffer_font_features": {
 35    // Disable ligatures:
 36    // "calt": false
 37  },
 38  // The default font size for text in the editor
 39  "buffer_font_size": 15,
 40  // The weight of the editor font in standard CSS units from 100 to 900.
 41  "buffer_font_weight": 400,
 42  // Set the buffer's line height.
 43  // May take 3 values:
 44  //  1. Use a line height that's comfortable for reading (1.618)
 45  //         "line_height": "comfortable"
 46  //  2. Use a standard line height, (1.3)
 47  //         "line_height": "standard",
 48  //  3. Use a custom line height
 49  //         "line_height": {
 50  //           "custom": 2
 51  //         },
 52  "buffer_line_height": "comfortable",
 53  // The name of a font to use for rendering text in the UI
 54  "ui_font_family": ".SystemUIFont",
 55  // The OpenType features to enable for text in the UI
 56  "ui_font_features": {
 57    // Disable ligatures:
 58    "calt": false
 59  },
 60  // The weight of the UI font in standard CSS units from 100 to 900.
 61  "ui_font_weight": 400,
 62  // The default font size for text in the UI
 63  "ui_font_size": 16,
 64  // The factor to grow the active pane by. Defaults to 1.0
 65  // which gives the same size as all other panes.
 66  "active_pane_magnification": 1.0,
 67  // Centered layout related settings.
 68  "centered_layout": {
 69    // The relative width of the left padding of the central pane from the
 70    // workspace when the centered layout is used.
 71    "left_padding": 0.2,
 72    // The relative width of the right padding of the central pane from the
 73    // workspace when the centered layout is used.
 74    "right_padding": 0.2
 75  },
 76  // The key to use for adding multiple cursors
 77  // Currently "alt" or "cmd_or_ctrl"  (also aliased as
 78  // "cmd" and "ctrl") are supported.
 79  "multi_cursor_modifier": "alt",
 80  // Whether to enable vim modes and key bindings.
 81  "vim_mode": false,
 82  // Whether to show the informational hover box when moving the mouse
 83  // over symbols in the editor.
 84  "hover_popover_enabled": true,
 85  // Whether to confirm before quitting Zed.
 86  "confirm_quit": false,
 87  // Whether to restore last closed project when fresh Zed instance is opened.
 88  "restore_on_startup": "last_workspace",
 89  // Size of the drop target in the editor.
 90  "drop_target_size": 0.2,
 91  // Whether the window should be closed when using 'close active item' on a window with no tabs.
 92  // May take 3 values:
 93  //  1. Use the current platform's convention
 94  //         "when_closing_with_no_tabs": "platform_default"
 95  //  2. Always close the window:
 96  //         "when_closing_with_no_tabs": "close_window",
 97  //  3. Never close the window
 98  //         "when_closing_with_no_tabs": "keep_window_open",
 99  "when_closing_with_no_tabs": "platform_default",
100  // Whether the cursor blinks in the editor.
101  "cursor_blink": true,
102  // How to highlight the current line in the editor.
103  //
104  // 1. Don't highlight the current line:
105  //    "none"
106  // 2. Highlight the gutter area:
107  //    "gutter"
108  // 3. Highlight the editor area:
109  //    "line"
110  // 4. Highlight the full line (default):
111  //    "all"
112  "current_line_highlight": "all",
113  // Whether to pop the completions menu while typing in an editor without
114  // explicitly requesting it.
115  "show_completions_on_input": true,
116  // Whether to display inline and alongside documentation for items in the
117  // completions menu
118  "show_completion_documentation": true,
119  // The debounce delay before re-querying the language server for completion
120  // documentation when not included in original completion list.
121  "completion_documentation_secondary_query_debounce": 300,
122  // Whether to show wrap guides (vertical rulers) in the editor.
123  // Setting this to true will show a guide at the 'preferred_line_length' value
124  // if softwrap is set to 'preferred_line_length', and will show any
125  // additional guides as specified by the 'wrap_guides' setting.
126  "show_wrap_guides": true,
127  // Character counts at which to show wrap guides in the editor.
128  "wrap_guides": [],
129  // Hide the values of in variables from visual display in private files
130  "redact_private_values": false,
131  // The default number of lines to expand excerpts in the multibuffer by.
132  "expand_excerpt_lines": 3,
133  // Globs to match against file paths to determine if a file is private.
134  "private_files": [
135    "**/.env*",
136    "**/*.pem",
137    "**/*.key",
138    "**/*.cert",
139    "**/*.crt",
140    "**/secrets.yml"
141  ],
142  // Whether to use additional LSP queries to format (and amend) the code after
143  // every "trigger" symbol input, defined by LSP server capabilities.
144  "use_on_type_format": true,
145  // Whether to automatically add matching closing characters when typing
146  // opening parenthesis, bracket, brace, single or double quote characters.
147  // For example, when you type (, Zed will add a closing ) at the correct position.
148  "use_autoclose": true,
149  // Whether to automatically surround selected text when typing opening parenthesis,
150  // bracket, brace, single or double quote characters.
151  // For example, when you select text and type (, Zed will surround the text with ().
152  "use_auto_surround": true,
153  // Controls how the editor handles the autoclosed characters.
154  // When set to `false`(default), skipping over and auto-removing of the closing characters
155  // happen only for auto-inserted characters.
156  // Otherwise(when `true`), the closing characters are always skipped over and auto-removed
157  // no matter how they were inserted.
158  "always_treat_brackets_as_autoclosed": false,
159  // Controls whether inline completions are shown immediately (true)
160  // or manually by triggering `editor::ShowInlineCompletion` (false).
161  "show_inline_completions": true,
162  // Whether to show tabs and spaces in the editor.
163  // This setting can take three values:
164  //
165  // 1. Draw tabs and spaces only for the selected text (default):
166  //    "selection"
167  // 2. Do not draw any tabs or spaces:
168  //   "none"
169  // 3. Draw all invisible symbols:
170  //   "all"
171  // 4. Draw whitespaces at boundaries only:
172  //   "boundaries"
173  // For a whitespace to be on a boundary, any of the following conditions need to be met:
174  // - It is a tab
175  // - It is adjacent to an edge (start or end)
176  // - It is adjacent to a whitespace (left or right)
177  "show_whitespaces": "selection",
178  // Settings related to calls in Zed
179  "calls": {
180    // Join calls with the microphone live by default
181    "mute_on_join": false,
182    // Share your project when you are the first to join a channel
183    "share_on_join": false
184  },
185  // Toolbar related settings
186  "toolbar": {
187    // Whether to show breadcrumbs.
188    "breadcrumbs": true,
189    // Whether to show quick action buttons.
190    "quick_actions": true,
191    // Whether to show the Selections menu in the editor toolbar
192    "selections_menu": true
193  },
194  // Scrollbar related settings
195  "scrollbar": {
196    // When to show the scrollbar in the editor.
197    // This setting can take four values:
198    //
199    // 1. Show the scrollbar if there's important information or
200    //    follow the system's configured behavior (default):
201    //   "auto"
202    // 2. Match the system's configured behavior:
203    //    "system"
204    // 3. Always show the scrollbar:
205    //    "always"
206    // 4. Never show the scrollbar:
207    //    "never"
208    "show": "auto",
209    // Whether to show cursor positions in the scrollbar.
210    "cursors": true,
211    // Whether to show git diff indicators in the scrollbar.
212    "git_diff": true,
213    // Whether to show buffer search results in the scrollbar.
214    "search_results": true,
215    // Whether to show selected symbol occurrences in the scrollbar.
216    "selected_symbol": true,
217    // Whether to show diagnostic indicators in the scrollbar.
218    "diagnostics": true
219  },
220  // What to do when multibuffer is double clicked in some of its excerpts
221  // (parts of singleton buffers).
222  // May take 2 values:
223  //  1. Behave as a regular buffer and select the whole word (default).
224  //         "double_click_in_multibuffer": "select"
225  //  2. Open the excerpt clicked as a new buffer in the new tab.
226  //         "double_click_in_multibuffer": "open",
227  // For the case of "open", regular selection behavior can be achieved by holding `alt` when double clicking.
228  "double_click_in_multibuffer": "select",
229  "gutter": {
230    // Whether to show line numbers in the gutter.
231    "line_numbers": true,
232    // Whether to show code action buttons in the gutter.
233    "code_actions": true,
234    // Whether to show runnables buttons in the gutter.
235    "runnables": true,
236    // Whether to show fold buttons in the gutter.
237    "folds": true
238  },
239  "indent_guides": {
240    /// Whether to show indent guides in the editor.
241    "enabled": true,
242    /// The width of the indent guides in pixels, between 1 and 10.
243    "line_width": 1,
244    /// The width of the active indent guide in pixels, between 1 and 10.
245    "active_line_width": 1,
246    /// Determines how indent guides are colored.
247    /// This setting can take the following three values:
248    ///
249    /// 1. "disabled"
250    /// 2. "fixed"
251    /// 3. "indent_aware"
252    "coloring": "fixed",
253    /// Determines how indent guide backgrounds are colored.
254    /// This setting can take the following two values:
255    ///
256    /// 1. "disabled"
257    /// 2. "indent_aware"
258    "background_coloring": "disabled"
259  },
260  // Whether the editor will scroll beyond the last line.
261  "scroll_beyond_last_line": "one_page",
262  // The number of lines to keep above/below the cursor when scrolling.
263  "vertical_scroll_margin": 3,
264  // Scroll sensitivity multiplier. This multiplier is applied
265  // to both the horizontal and vertical delta values while scrolling.
266  "scroll_sensitivity": 1.0,
267  "relative_line_numbers": false,
268  // When to populate a new search's query based on the text under the cursor.
269  // This setting can take the following three values:
270  //
271  // 1. Always populate the search query with the word under the cursor (default).
272  //    "always"
273  // 2. Only populate the search query when there is text selected
274  //    "selection"
275  // 3. Never populate the search query
276  //    "never"
277  "seed_search_query_from_cursor": "always",
278  // Inlay hint related settings
279  "inlay_hints": {
280    // Global switch to toggle hints on and off, switched off by default.
281    "enabled": false,
282    // Toggle certain types of hints on and off, all switched on by default.
283    "show_type_hints": true,
284    "show_parameter_hints": true,
285    // Corresponds to null/None LSP hint type value.
286    "show_other_hints": true,
287    // Time to wait after editing the buffer, before requesting the hints,
288    // set to 0 to disable debouncing.
289    "edit_debounce_ms": 700,
290    // Time to wait after scrolling the buffer, before requesting the hints,
291    // set to 0 to disable debouncing.
292    "scroll_debounce_ms": 50
293  },
294  "project_panel": {
295    // Whether to show the project panel button in the status bar
296    "button": true,
297    // Default width of the project panel.
298    "default_width": 240,
299    // Where to dock the project panel. Can be 'left' or 'right'.
300    "dock": "left",
301    // Whether to show file icons in the project panel.
302    "file_icons": true,
303    // Whether to show folder icons or chevrons for directories in the project panel.
304    "folder_icons": true,
305    // Whether to show the git status in the project panel.
306    "git_status": true,
307    // Amount of indentation for nested items.
308    "indent_size": 20,
309    // Whether to reveal it in the project panel automatically,
310    // when a corresponding project entry becomes active.
311    // Gitignored entries are never auto revealed.
312    "auto_reveal_entries": true,
313    /// Whether to fold directories automatically
314    /// when a directory has only one directory inside.
315    "auto_fold_dirs": false,
316    /// Scrollbar-related settings
317    "scrollbar": {
318      /// When to show the scrollbar in the project panel.
319      ///
320      /// Default: always
321      "show": "always"
322    }
323  },
324  "outline_panel": {
325    // Whether to show the outline panel button in the status bar
326    "button": true,
327    // Default width of the outline panel.
328    "default_width": 300,
329    // Where to dock the outline panel. Can be 'left' or 'right'.
330    "dock": "left",
331    // Whether to show file icons in the outline panel.
332    "file_icons": true,
333    // Whether to show folder icons or chevrons for directories in the outline panel.
334    "folder_icons": true,
335    // Whether to show the git status in the outline panel.
336    "git_status": true,
337    // Amount of indentation for nested items.
338    "indent_size": 20,
339    // Whether to reveal it in the outline panel automatically,
340    // when a corresponding outline entry becomes active.
341    // Gitignored entries are never auto revealed.
342    "auto_reveal_entries": true,
343    /// Whether to fold directories automatically
344    /// when a directory has only one directory inside.
345    "auto_fold_dirs": true
346  },
347  "collaboration_panel": {
348    // Whether to show the collaboration panel button in the status bar.
349    "button": true,
350    // Where to dock the collaboration panel. Can be 'left' or 'right'.
351    "dock": "left",
352    // Default width of the collaboration panel.
353    "default_width": 240
354  },
355  "chat_panel": {
356    // Whether to show the chat panel button in the status bar.
357    "button": true,
358    // Where to the chat panel. Can be 'left' or 'right'.
359    "dock": "right",
360    // Default width of the chat panel.
361    "default_width": 240
362  },
363  "message_editor": {
364    // Whether to automatically replace emoji shortcodes with emoji characters.
365    // For example: typing `:wave:` gets replaced with `👋`.
366    "auto_replace_emoji_shortcode": true
367  },
368  "notification_panel": {
369    // Whether to show the notification panel button in the status bar.
370    "button": true,
371    // Where to dock the notification panel. Can be 'left' or 'right'.
372    "dock": "right",
373    // Default width of the notification panel.
374    "default_width": 380
375  },
376  "assistant": {
377    // Version of this setting.
378    "version": "1",
379    // Whether the assistant is enabled.
380    "enabled": true,
381    // Whether to show the assistant panel button in the status bar.
382    "button": true,
383    // Where to dock the assistant panel. Can be 'left', 'right' or 'bottom'.
384    "dock": "right",
385    // Default width when the assistant is docked to the left or right.
386    "default_width": 640,
387    // Default height when the assistant is docked to the bottom.
388    "default_height": 320,
389    // AI provider.
390    "provider": {
391      "name": "openai",
392      // The default model to use when creating new contexts. This
393      // setting can take three values:
394      //
395      // 1. "gpt-3.5-turbo"
396      // 2. "gpt-4"
397      // 3. "gpt-4-turbo-preview"
398      // 4. "gpt-4o"
399      "default_model": "gpt-4o"
400    }
401  },
402  // Whether the screen sharing icon is shown in the os status bar.
403  "show_call_status_icon": true,
404  // Whether to use language servers to provide code intelligence.
405  "enable_language_server": true,
406  // Whether to perform linked edits of associated ranges, if the language server supports it.
407  // For example, when editing opening <html> tag, the contents of the closing </html> tag will be edited as well.
408  "linked_edits": true,
409  // The list of language servers to use (or disable) for all languages.
410  //
411  // This is typically customized on a per-language basis.
412  "language_servers": ["..."],
413  // When to automatically save edited buffers. This setting can
414  // take four values.
415  //
416  // 1. Never automatically save:
417  //     "autosave": "off",
418  // 2. Save when changing focus away from the Zed window:
419  //     "autosave": "on_window_change",
420  // 3. Save when changing focus away from a specific buffer:
421  //     "autosave": "on_focus_change",
422  // 4. Save when idle for a certain amount of time:
423  //     "autosave": { "after_delay": {"milliseconds": 500} },
424  "autosave": "off",
425  // Settings related to the editor's tab bar.
426  "tab_bar": {
427    // Whether or not to show the tab bar in the editor
428    "show": true,
429    // Whether or not to show the navigation history buttons.
430    "show_nav_history_buttons": true
431  },
432  // Settings related to the editor's tabs
433  "tabs": {
434    // Show git status colors in the editor tabs.
435    "git_status": false,
436    // Position of the close button on the editor tabs.
437    "close_position": "right"
438  },
439  // Settings related to preview tabs.
440  "preview_tabs": {
441    // Whether preview tabs should be enabled.
442    // Preview tabs allow you to open files in preview mode, where they close automatically
443    // when you switch to another file unless you explicitly pin them.
444    // This is useful for quickly viewing files without cluttering your workspace.
445    "enabled": true,
446    // Whether to open tabs in preview mode when selected from the file finder.
447    "enable_preview_from_file_finder": false,
448    // Whether a preview tab gets replaced when code navigation is used to navigate away from the tab.
449    "enable_preview_from_code_navigation": false
450  },
451  // Whether or not to remove any trailing whitespace from lines of a buffer
452  // before saving it.
453  "remove_trailing_whitespace_on_save": true,
454  // Whether to start a new line with a comment when a previous line is a comment as well.
455  "extend_comment_on_newline": true,
456  // Whether or not to ensure there's a single newline at the end of a buffer
457  // when saving it.
458  "ensure_final_newline_on_save": true,
459  // Whether or not to perform a buffer format before saving
460  //
461  // Keep in mind, if the autosave with delay is enabled, format_on_save will be ignored
462  "format_on_save": "on",
463  // How to perform a buffer format. This setting can take 4 values:
464  //
465  // 1. Format code using the current language server:
466  //     "formatter": "language_server"
467  // 2. Format code using an external command:
468  //     "formatter": {
469  //       "external": {
470  //         "command": "prettier",
471  //         "arguments": ["--stdin-filepath", "{buffer_path}"]
472  //       }
473  //     }
474  // 3. Format code using Zed's Prettier integration:
475  //     "formatter": "prettier"
476  // 4. Default. Format files using Zed's Prettier integration (if applicable),
477  //    or falling back to formatting via language server:
478  //     "formatter": "auto"
479  "formatter": "auto",
480  // How to soft-wrap long lines of text.
481  // Possible values:
482  //
483  // 1. Do not soft wrap.
484  //      "soft_wrap": "none",
485  // 2. Prefer a single line generally, unless an overly long line is encountered.
486  //      "soft_wrap": "prefer_line",
487  // 3. Soft wrap lines that overflow the editor.
488  //      "soft_wrap": "editor_width",
489  // 4. Soft wrap lines at the preferred line length.
490  //      "soft_wrap": "preferred_line_length",
491  "soft_wrap": "prefer_line",
492  // The column at which to soft-wrap lines, for buffers where soft-wrap
493  // is enabled.
494  "preferred_line_length": 80,
495  // Whether to indent lines using tab characters, as opposed to multiple
496  // spaces.
497  "hard_tabs": false,
498  // How many columns a tab should occupy.
499  "tab_size": 4,
500  // Control what info is collected by Zed.
501  "telemetry": {
502    // Send debug info like crash reports.
503    "diagnostics": true,
504    // Send anonymized usage data like what languages you're using Zed with.
505    "metrics": true
506  },
507  // Automatically update Zed. This setting may be ignored on Linux if
508  // installed through a package manager.
509  "auto_update": true,
510  // Diagnostics configuration.
511  "diagnostics": {
512    // Whether to show warnings or not by default.
513    "include_warnings": true
514  },
515  // Add files or globs of files that will be excluded by Zed entirely:
516  // they will be skipped during FS scan(s), file tree and file search
517  // will lack the corresponding file entries.
518  "file_scan_exclusions": [
519    "**/.git",
520    "**/.svn",
521    "**/.hg",
522    "**/CVS",
523    "**/.DS_Store",
524    "**/Thumbs.db",
525    "**/.classpath",
526    "**/.settings"
527  ],
528  // Git gutter behavior configuration.
529  "git": {
530    // Control whether the git gutter is shown. May take 2 values:
531    // 1. Show the gutter
532    //      "git_gutter": "tracked_files"
533    // 2. Hide the gutter
534    //      "git_gutter": "hide"
535    "git_gutter": "tracked_files",
536    // Control whether the git blame information is shown inline,
537    // in the currently focused line.
538    "inline_blame": {
539      "enabled": true
540      // Sets a delay after which the inline blame information is shown.
541      // Delay is restarted with every cursor movement.
542      // "delay_ms": 600
543    }
544  },
545  "inline_completions": {
546    // A list of globs representing files that inline completions should be disabled for.
547    "disabled_globs": [".env"]
548  },
549  // Settings specific to journaling
550  "journal": {
551    // The path of the directory where journal entries are stored
552    "path": "~",
553    // What format to display the hours in
554    // May take 2 values:
555    // 1. hour12
556    // 2. hour24
557    "hour_format": "hour12"
558  },
559  // Settings specific to the terminal
560  "terminal": {
561    // What shell to use when opening a terminal. May take 3 values:
562    // 1. Use the system's default terminal configuration in /etc/passwd
563    //      "shell": "system"
564    // 2. A program:
565    //      "shell": {
566    //        "program": "sh"
567    //      }
568    // 3. A program with arguments:
569    //     "shell": {
570    //         "with_arguments": {
571    //           "program": "/bin/bash",
572    //           "arguments": ["--login"]
573    //         }
574    //     }
575    "shell": "system",
576    // Where to dock terminals panel. Can be `left`, `right`, `bottom`.
577    "dock": "bottom",
578    // Default width when the terminal is docked to the left or right.
579    "default_width": 640,
580    // Default height when the terminal is docked to the bottom.
581    "default_height": 320,
582    // What working directory to use when launching the terminal.
583    // May take 4 values:
584    // 1. Use the current file's project directory.  Will Fallback to the
585    //    first project directory strategy if unsuccessful
586    //      "working_directory": "current_project_directory"
587    // 2. Use the first project in this workspace's directory
588    //      "working_directory": "first_project_directory"
589    // 3. Always use this platform's home directory (if we can find it)
590    //     "working_directory": "always_home"
591    // 4. Always use a specific directory. This value will be shell expanded.
592    //    If this path is not a valid directory the terminal will default to
593    //    this platform's home directory  (if we can find it)
594    //      "working_directory": {
595    //        "always": {
596    //          "directory": "~/zed/projects/"
597    //        }
598    //      }
599    "working_directory": "current_project_directory",
600    // Set the cursor blinking behavior in the terminal.
601    // May take 3 values:
602    //  1. Never blink the cursor, ignoring the terminal mode
603    //         "blinking": "off",
604    //  2. Default the cursor blink to off, but allow the terminal to
605    //     set blinking
606    //         "blinking": "terminal_controlled",
607    //  3. Always blink the cursor, ignoring the terminal mode
608    //         "blinking": "on",
609    "blinking": "terminal_controlled",
610    // Set whether Alternate Scroll mode (code: ?1007) is active by default.
611    // Alternate Scroll mode converts mouse scroll events into up / down key
612    // presses when in the alternate screen (e.g. when running applications
613    // like vim or  less). The terminal can still set and unset this mode.
614    // May take 2 values:
615    //  1. Default alternate scroll mode to on
616    //         "alternate_scroll": "on",
617    //  2. Default alternate scroll mode to off
618    //         "alternate_scroll": "off",
619    "alternate_scroll": "off",
620    // Set whether the option key behaves as the meta key.
621    // May take 2 values:
622    //  1. Rely on default platform handling of option key, on macOS
623    //     this means generating certain unicode characters
624    //         "option_to_meta": false,
625    //  2. Make the option keys behave as a 'meta' key, e.g. for emacs
626    //         "option_to_meta": true,
627    "option_as_meta": false,
628    // Whether or not selecting text in the terminal will automatically
629    // copy to the system clipboard.
630    "copy_on_select": false,
631    // Whether to show the terminal button in the status bar
632    "button": true,
633    // Any key-value pairs added to this list will be added to the terminal's
634    // environment. Use `:` to separate multiple values.
635    "env": {
636      // "KEY": "value1:value2"
637    },
638    // Set the terminal's line height.
639    // May take 3 values:
640    //  1. Use a line height that's comfortable for reading, 1.618
641    //         "line_height": "comfortable"
642    //  2. Use a standard line height, 1.3. This option is useful for TUIs,
643    //      particularly if they use box characters
644    //         "line_height": "standard",
645    //  3. Use a custom line height.
646    //         "line_height": {
647    //           "custom": 2
648    //         },
649    "line_height": "comfortable",
650    // Activate the python virtual environment, if one is found, in the
651    // terminal's working directory (as resolved by the working_directory
652    // setting). Set this to "off" to disable this behavior.
653    "detect_venv": {
654      "on": {
655        // Default directories to search for virtual environments, relative
656        // to the current working directory. We recommend overriding this
657        // in your project's settings, rather than globally.
658        "directories": [".env", "env", ".venv", "venv"],
659        // Can also be `csh`, `fish`, and `nushell`
660        "activate_script": "default"
661      }
662    },
663    "toolbar": {
664      // Whether to display the terminal title in its toolbar.
665      "title": true
666    }
667    // Set the terminal's font size. If this option is not included,
668    // the terminal will default to matching the buffer's font size.
669    // "font_size": 15,
670    // Set the terminal's font family. If this option is not included,
671    // the terminal will default to matching the buffer's font family.
672    // "font_family": "Zed Mono",
673    // Sets the maximum number of lines in the terminal's scrollback buffer.
674    // Default: 10_000, maximum: 100_000 (all bigger values set will be treated as 100_000), 0 disables the scrolling.
675    // Existing terminals will not pick up this change until they are recreated.
676    // "max_scroll_history_lines": 10000,
677  },
678  "code_actions_on_format": {},
679  // An object whose keys are language names, and whose values
680  // are arrays of filenames or extensions of files that should
681  // use those languages.
682  //
683  // For example, to treat files like `foo.notjs` as JavaScript,
684  // and `Embargo.lock` as TOML:
685  //
686  // {
687  //   "JavaScript": ["notjs"],
688  //   "TOML": ["Embargo.lock"]
689  // }
690  //
691  "file_types": {},
692  // The extensions that Zed should automatically install on startup.
693  //
694  // If you don't want any of these extensions, add this field to your settings
695  // and change the value to `false`.
696  "auto_install_extensions": {
697    "html": true
698  },
699  // Different settings for specific languages.
700  "languages": {
701    "Astro": {
702      "prettier": {
703        "allowed": true,
704        "plugins": ["prettier-plugin-astro"]
705      }
706    },
707    "Blade": {
708      "prettier": {
709        "allowed": true
710      }
711    },
712    "C": {
713      "format_on_save": "off"
714    },
715    "C++": {
716      "format_on_save": "off"
717    },
718    "CSS": {
719      "prettier": {
720        "allowed": true
721      }
722    },
723    "Elixir": {
724      "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
725    },
726    "Go": {
727      "code_actions_on_format": {
728        "source.organizeImports": true
729      }
730    },
731    "GraphQL": {
732      "prettier": {
733        "allowed": true
734      }
735    },
736    "HEEX": {
737      "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
738    },
739    "HTML": {
740      "prettier": {
741        "allowed": true
742      }
743    },
744    "Java": {
745      "prettier": {
746        "allowed": true,
747        "plugins": ["prettier-plugin-java"]
748      }
749    },
750    "JavaScript": {
751      "language_servers": ["!typescript-language-server", "vtsls", "..."],
752      "prettier": {
753        "allowed": true
754      }
755    },
756    "JSON": {
757      "prettier": {
758        "allowed": true
759      }
760    },
761    "Markdown": {
762      "format_on_save": "off",
763      "prettier": {
764        "allowed": true
765      }
766    },
767    "PHP": {
768      "prettier": {
769        "allowed": true,
770        "plugins": ["@prettier/plugin-php"]
771      }
772    },
773    "Ruby": {
774      "language_servers": ["solargraph", "!ruby-lsp", "..."]
775    },
776    "SCSS": {
777      "prettier": {
778        "allowed": true
779      }
780    },
781    "SQL": {
782      "prettier": {
783        "allowed": true,
784        "plugins": ["prettier-plugin-sql"]
785      }
786    },
787    "Svelte": {
788      "prettier": {
789        "allowed": true,
790        "plugins": ["prettier-plugin-svelte"]
791      }
792    },
793    "TSX": {
794      "language_servers": ["!typescript-language-server", "vtsls", "..."],
795      "prettier": {
796        "allowed": true
797      }
798    },
799    "Twig": {
800      "prettier": {
801        "allowed": true
802      }
803    },
804    "TypeScript": {
805      "language_servers": ["!typescript-language-server", "vtsls", "..."],
806      "prettier": {
807        "allowed": true
808      }
809    },
810    "Vue.js": {
811      "prettier": {
812        "allowed": true
813      }
814    },
815    "XML": {
816      "prettier": {
817        "allowed": true,
818        "plugins": ["@prettier/plugin-xml"]
819      }
820    },
821    "YAML": {
822      "prettier": {
823        "allowed": true
824      }
825    }
826  },
827  // Zed's Prettier integration settings.
828  // Allows to enable/disable formatting with Prettier
829  // and configure default Prettier, used when no project-level Prettier installation is found.
830  "prettier": {
831    // // Whether to consider prettier formatter or not when attempting to format a file.
832    // "allowed": false,
833    //
834    // // Use regular Prettier json configuration.
835    // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
836    // // the project has no other Prettier installed.
837    // "plugins": [],
838    //
839    // // Use regular Prettier json configuration.
840    // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
841    // // the project has no other Prettier installed.
842    // "trailingComma": "es5",
843    // "tabWidth": 4,
844    // "semi": false,
845    // "singleQuote": true
846  },
847  // LSP Specific settings.
848  "lsp": {
849    // Specify the LSP name as a key here.
850    // "rust-analyzer": {
851    //     // These initialization options are merged into Zed's defaults
852    //     "initialization_options": {
853    //         "check": {
854    //             "command": "clippy" // rust-analyzer.check.command (default: "check")
855    //         }
856    //     }
857    // }
858  },
859  // Vim settings
860  "vim": {
861    "use_system_clipboard": "always",
862    "use_multiline_find": false,
863    "use_smartcase_find": false
864  },
865  // The server to connect to. If the environment variable
866  // ZED_SERVER_URL is set, it will override this setting.
867  "server_url": "https://zed.dev",
868  // Settings overrides to use when using Zed Preview.
869  // Mostly useful for developers who are managing multiple instances of Zed.
870  "preview": {
871    // "theme": "Andromeda"
872  },
873  // Settings overrides to use when using Zed Nightly.
874  // Mostly useful for developers who are managing multiple instances of Zed.
875  "nightly": {
876    // "theme": "Andromeda"
877  },
878  // Settings overrides to use when using Zed Stable.
879  // Mostly useful for developers who are managing multiple instances of Zed.
880  "stable": {
881    // "theme": "Andromeda"
882  },
883  // Settings overrides to use when using Zed Dev.
884  // Mostly useful for developers who are managing multiple instances of Zed.
885  "dev": {
886    // "theme": "Andromeda"
887  },
888  // Task-related settings.
889  "task": {
890    // Whether to show task status indicator in the status bar. Default: true
891    "show_status_indicator": true
892  },
893  // Whether to show full labels in line indicator or short ones
894  //
895  // Values:
896  //   - `short`: "2 s, 15 l, 32 c"
897  //   - `long`: "2 selections, 15 lines, 32 characters"
898  // Default: long
899  "line_indicator_format": "long",
900  // Set a proxy to use. The proxy protocol is specified by the URI scheme.
901  //
902  // Supported URI scheme: `http`, `https`, `socks4`, `socks4a`, `socks5`,
903  // `socks5h`. `http` will be used when no scheme is specified.
904  //
905  // By default no proxy will be used, or Zed will try get proxy settings from
906  // environment variables.
907  //
908  // Examples:
909  //   - "proxy": "socks5://localhost:10808"
910  //   - "proxy": "http://127.0.0.1:10809"
911  "proxy": null
912}