default.json

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