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 ".SystemUIFont" 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 to use the system provided dialogs for Open and Save As.
 98  // When set to false, Zed will use the built-in keyboard-first pickers.
 99  "use_system_path_prompts": true,
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  // Show method signatures in the editor, when inside parentheses.
123  "auto_signature_help": false,
124  /// Whether to show the signature help after completion or a bracket pair inserted.
125  /// If `auto_signature_help` is enabled, this setting will be treated as enabled also.
126  "show_signature_help_after_edits": true,
127  // Whether to show wrap guides (vertical rulers) in the editor.
128  // Setting this to true will show a guide at the 'preferred_line_length' value
129  // if softwrap is set to 'preferred_line_length', and will show any
130  // additional guides as specified by the 'wrap_guides' setting.
131  "show_wrap_guides": true,
132  // Character counts at which to show wrap guides in the editor.
133  "wrap_guides": [],
134  // Hide the values of in variables from visual display in private files
135  "redact_private_values": false,
136  // The default number of lines to expand excerpts in the multibuffer by.
137  "expand_excerpt_lines": 3,
138  // Globs to match against file paths to determine if a file is private.
139  "private_files": ["**/.env*", "**/*.pem", "**/*.key", "**/*.cert", "**/*.crt", "**/secrets.yml"],
140  // Whether to use additional LSP queries to format (and amend) the code after
141  // every "trigger" symbol input, defined by LSP server capabilities.
142  "use_on_type_format": true,
143  // Whether to automatically add matching closing characters when typing
144  // opening parenthesis, bracket, brace, single or double quote characters.
145  // For example, when you type (, Zed will add a closing ) at the correct position.
146  "use_autoclose": true,
147  // Whether to automatically surround selected text when typing opening parenthesis,
148  // bracket, brace, single or double quote characters.
149  // For example, when you select text and type (, Zed will surround the text with ().
150  "use_auto_surround": true,
151  // Controls how the editor handles the autoclosed characters.
152  // When set to `false`(default), skipping over and auto-removing of the closing characters
153  // happen only for auto-inserted characters.
154  // Otherwise(when `true`), the closing characters are always skipped over and auto-removed
155  // no matter how they were inserted.
156  "always_treat_brackets_as_autoclosed": false,
157  // Controls whether inline completions are shown immediately (true)
158  // or manually by triggering `editor::ShowInlineCompletion` (false).
159  "show_inline_completions": true,
160  // Whether to show tabs and spaces in the editor.
161  // This setting can take three values:
162  //
163  // 1. Draw tabs and spaces only for the selected text (default):
164  //    "selection"
165  // 2. Do not draw any tabs or spaces:
166  //    "none"
167  // 3. Draw all invisible symbols:
168  //    "all"
169  // 4. Draw whitespaces at boundaries only:
170  //    "boundary"
171  // For a whitespace to be on a boundary, any of the following conditions need to be met:
172  // - It is a tab
173  // - It is adjacent to an edge (start or end)
174  // - It is adjacent to a whitespace (left or right)
175  "show_whitespaces": "selection",
176  // Settings related to calls in Zed
177  "calls": {
178    // Join calls with the microphone live by default
179    "mute_on_join": false,
180    // Share your project when you are the first to join a channel
181    "share_on_join": false
182  },
183  // Toolbar related settings
184  "toolbar": {
185    // Whether to show breadcrumbs.
186    "breadcrumbs": true,
187    // Whether to show quick action buttons.
188    "quick_actions": true,
189    // Whether to show the Selections menu in the editor toolbar
190    "selections_menu": true
191  },
192  // Scrollbar related settings
193  "scrollbar": {
194    // When to show the scrollbar in the editor.
195    // This setting can take four values:
196    //
197    // 1. Show the scrollbar if there's important information or
198    //    follow the system's configured behavior (default):
199    //   "auto"
200    // 2. Match the system's configured behavior:
201    //    "system"
202    // 3. Always show the scrollbar:
203    //    "always"
204    // 4. Never show the scrollbar:
205    //    "never"
206    "show": "auto",
207    // Whether to show cursor positions in the scrollbar.
208    "cursors": true,
209    // Whether to show git diff indicators in the scrollbar.
210    "git_diff": true,
211    // Whether to show buffer search results in the scrollbar.
212    "search_results": true,
213    // Whether to show selected symbol occurrences in the scrollbar.
214    "selected_symbol": true,
215    // Whether to show diagnostic indicators in the scrollbar.
216    "diagnostics": true
217  },
218  // What to do when multibuffer is double clicked in some of its excerpts
219  // (parts of singleton buffers).
220  // May take 2 values:
221  //  1. Behave as a regular buffer and select the whole word (default).
222  //         "double_click_in_multibuffer": "select"
223  //  2. Open the excerpt clicked as a new buffer in the new tab.
224  //         "double_click_in_multibuffer": "open",
225  // For the case of "open", regular selection behavior can be achieved by holding `alt` when double clicking.
226  "double_click_in_multibuffer": "select",
227  "gutter": {
228    // Whether to show line numbers in the gutter.
229    "line_numbers": true,
230    // Whether to show code action buttons in the gutter.
231    "code_actions": true,
232    // Whether to show runnables buttons in the gutter.
233    "runnables": true,
234    // Whether to show fold buttons in the gutter.
235    "folds": true
236  },
237  "indent_guides": {
238    /// Whether to show indent guides in the editor.
239    "enabled": true,
240    /// The width of the indent guides in pixels, between 1 and 10.
241    "line_width": 1,
242    /// The width of the active indent guide in pixels, between 1 and 10.
243    "active_line_width": 1,
244    /// Determines how indent guides are colored.
245    /// This setting can take the following three values:
246    ///
247    /// 1. "disabled"
248    /// 2. "fixed"
249    /// 3. "indent_aware"
250    "coloring": "fixed",
251    /// Determines how indent guide backgrounds are colored.
252    /// This setting can take the following two values:
253    ///
254    /// 1. "disabled"
255    /// 2. "indent_aware"
256    "background_coloring": "disabled"
257  },
258  // Whether the editor will scroll beyond the last line.
259  "scroll_beyond_last_line": "one_page",
260  // The number of lines to keep above/below the cursor when scrolling.
261  "vertical_scroll_margin": 3,
262  // Scroll sensitivity multiplier. This multiplier is applied
263  // to both the horizontal and vertical delta values while scrolling.
264  "scroll_sensitivity": 1.0,
265  "relative_line_numbers": false,
266  // If 'search_wrap' is disabled, search result do not wrap around the end of the file.
267  "search_wrap": true,
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 and show compact folders
314    // (e.g. "a/b/c" ) when a directory has only one subdirectory 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      // 5. "gpt-4o-mini"
400      "default_model": "gpt-4o"
401    }
402  },
403  // Whether the screen sharing icon is shown in the os status bar.
404  "show_call_status_icon": true,
405  // Whether to use language servers to provide code intelligence.
406  "enable_language_server": true,
407  // Whether to perform linked edits of associated ranges, if the language server supports it.
408  // For example, when editing opening <html> tag, the contents of the closing </html> tag will be edited as well.
409  "linked_edits": true,
410  // The list of language servers to use (or disable) for all languages.
411  //
412  // This is typically customized on a per-language basis.
413  "language_servers": ["..."],
414  // When to automatically save edited buffers. This setting can
415  // take four values.
416  //
417  // 1. Never automatically save:
418  //     "autosave": "off",
419  // 2. Save when changing focus away from the Zed window:
420  //     "autosave": "on_window_change",
421  // 3. Save when changing focus away from a specific buffer:
422  //     "autosave": "on_focus_change",
423  // 4. Save when idle for a certain amount of time:
424  //     "autosave": { "after_delay": {"milliseconds": 500} },
425  "autosave": "off",
426  // Settings related to the editor's tab bar.
427  "tab_bar": {
428    // Whether or not to show the tab bar in the editor
429    "show": true,
430    // Whether or not to show the navigation history buttons.
431    "show_nav_history_buttons": true
432  },
433  // Settings related to the editor's tabs
434  "tabs": {
435    // Show git status colors in the editor tabs.
436    "git_status": false,
437    // Position of the close button on the editor tabs.
438    "close_position": "right",
439    // Whether to show the file icon for a tab.
440    "file_icons": false
441  },
442  // Settings related to preview tabs.
443  "preview_tabs": {
444    // Whether preview tabs should be enabled.
445    // Preview tabs allow you to open files in preview mode, where they close automatically
446    // when you switch to another file unless you explicitly pin them.
447    // This is useful for quickly viewing files without cluttering your workspace.
448    "enabled": true,
449    // Whether to open tabs in preview mode when selected from the file finder.
450    "enable_preview_from_file_finder": false,
451    // Whether a preview tab gets replaced when code navigation is used to navigate away from the tab.
452    "enable_preview_from_code_navigation": false
453  },
454  // Whether or not to remove any trailing whitespace from lines of a buffer
455  // before saving it.
456  "remove_trailing_whitespace_on_save": true,
457  // Whether to start a new line with a comment when a previous line is a comment as well.
458  "extend_comment_on_newline": true,
459  // Whether or not to ensure there's a single newline at the end of a buffer
460  // when saving it.
461  "ensure_final_newline_on_save": true,
462  // Whether or not to perform a buffer format before saving
463  //
464  // Keep in mind, if the autosave with delay is enabled, format_on_save will be ignored
465  "format_on_save": "on",
466  // How to perform a buffer format. This setting can take 4 values:
467  //
468  // 1. Format code using the current language server:
469  //     "formatter": "language_server"
470  // 2. Format code using an external command:
471  //     "formatter": {
472  //       "external": {
473  //         "command": "prettier",
474  //         "arguments": ["--stdin-filepath", "{buffer_path}"]
475  //       }
476  //     }
477  // 3. Format code using Zed's Prettier integration:
478  //     "formatter": "prettier"
479  // 4. Default. Format files using Zed's Prettier integration (if applicable),
480  //    or falling back to formatting via language server:
481  //     "formatter": "auto"
482  "formatter": "auto",
483  // How to soft-wrap long lines of text.
484  // Possible values:
485  //
486  // 1. Do not soft wrap.
487  //      "soft_wrap": "none",
488  // 2. Prefer a single line generally, unless an overly long line is encountered.
489  //      "soft_wrap": "prefer_line",
490  // 3. Soft wrap lines that overflow the editor.
491  //      "soft_wrap": "editor_width",
492  // 4. Soft wrap lines at the preferred line length.
493  //      "soft_wrap": "preferred_line_length",
494  "soft_wrap": "prefer_line",
495  // The column at which to soft-wrap lines, for buffers where soft-wrap
496  // is enabled.
497  "preferred_line_length": 80,
498  // Whether to indent lines using tab characters, as opposed to multiple
499  // spaces.
500  "hard_tabs": false,
501  // How many columns a tab should occupy.
502  "tab_size": 4,
503  // Control what info is collected by Zed.
504  "telemetry": {
505    // Send debug info like crash reports.
506    "diagnostics": true,
507    // Send anonymized usage data like what languages you're using Zed with.
508    "metrics": true
509  },
510  // Automatically update Zed. This setting may be ignored on Linux if
511  // installed through a package manager.
512  "auto_update": true,
513  // Diagnostics configuration.
514  "diagnostics": {
515    // Whether to show warnings or not by default.
516    "include_warnings": true
517  },
518  // Add files or globs of files that will be excluded by Zed entirely:
519  // they will be skipped during FS scan(s), file tree and file search
520  // will lack the corresponding file entries.
521  "file_scan_exclusions": [
522    "**/.git",
523    "**/.svn",
524    "**/.hg",
525    "**/CVS",
526    "**/.DS_Store",
527    "**/Thumbs.db",
528    "**/.classpath",
529    "**/.settings"
530  ],
531  // Git gutter behavior configuration.
532  "git": {
533    // Control whether the git gutter is shown. May take 2 values:
534    // 1. Show the gutter
535    //      "git_gutter": "tracked_files"
536    // 2. Hide the gutter
537    //      "git_gutter": "hide"
538    "git_gutter": "tracked_files",
539    // Control whether the git blame information is shown inline,
540    // in the currently focused line.
541    "inline_blame": {
542      "enabled": true
543      // Sets a delay after which the inline blame information is shown.
544      // Delay is restarted with every cursor movement.
545      // "delay_ms": 600
546    }
547  },
548  // Configuration for how direnv configuration should be loaded. May take 2 values:
549  // 1. Load direnv configuration through the shell hook, works for POSIX shells and fish.
550  //      "load_direnv": "shell_hook"
551  // 2. Load direnv configuration using `direnv export json` directly.
552  //    This can help with some shells that otherwise would not detect
553  //    the direnv environment, such as nushell or elvish.
554  //      "load_direnv": "direct"
555  "load_direnv": "shell_hook",
556  "inline_completions": {
557    // A list of globs representing files that inline completions should be disabled for.
558    "disabled_globs": [".env"]
559  },
560  // Settings specific to journaling
561  "journal": {
562    // The path of the directory where journal entries are stored
563    "path": "~",
564    // What format to display the hours in
565    // May take 2 values:
566    // 1. hour12
567    // 2. hour24
568    "hour_format": "hour12"
569  },
570  // Settings specific to the terminal
571  "terminal": {
572    // What shell to use when opening a terminal. May take 3 values:
573    // 1. Use the system's default terminal configuration in /etc/passwd
574    //      "shell": "system"
575    // 2. A program:
576    //      "shell": {
577    //        "program": "sh"
578    //      }
579    // 3. A program with arguments:
580    //     "shell": {
581    //         "with_arguments": {
582    //           "program": "/bin/bash",
583    //           "arguments": ["--login"]
584    //         }
585    //     }
586    "shell": "system",
587    // Where to dock terminals panel. Can be `left`, `right`, `bottom`.
588    "dock": "bottom",
589    // Default width when the terminal is docked to the left or right.
590    "default_width": 640,
591    // Default height when the terminal is docked to the bottom.
592    "default_height": 320,
593    // What working directory to use when launching the terminal.
594    // May take 4 values:
595    // 1. Use the current file's project directory.  Will Fallback to the
596    //    first project directory strategy if unsuccessful
597    //      "working_directory": "current_project_directory"
598    // 2. Use the first project in this workspace's directory
599    //      "working_directory": "first_project_directory"
600    // 3. Always use this platform's home directory (if we can find it)
601    //     "working_directory": "always_home"
602    // 4. Always use a specific directory. This value will be shell expanded.
603    //    If this path is not a valid directory the terminal will default to
604    //    this platform's home directory  (if we can find it)
605    //      "working_directory": {
606    //        "always": {
607    //          "directory": "~/zed/projects/"
608    //        }
609    //      }
610    "working_directory": "current_project_directory",
611    // Set the cursor blinking behavior in the terminal.
612    // May take 3 values:
613    //  1. Never blink the cursor, ignoring the terminal mode
614    //         "blinking": "off",
615    //  2. Default the cursor blink to off, but allow the terminal to
616    //     set blinking
617    //         "blinking": "terminal_controlled",
618    //  3. Always blink the cursor, ignoring the terminal mode
619    //         "blinking": "on",
620    "blinking": "terminal_controlled",
621    // Set whether Alternate Scroll mode (code: ?1007) is active by default.
622    // Alternate Scroll mode converts mouse scroll events into up / down key
623    // presses when in the alternate screen (e.g. when running applications
624    // like vim or  less). The terminal can still set and unset this mode.
625    // May take 2 values:
626    //  1. Default alternate scroll mode to on
627    //         "alternate_scroll": "on",
628    //  2. Default alternate scroll mode to off
629    //         "alternate_scroll": "off",
630    "alternate_scroll": "off",
631    // Set whether the option key behaves as the meta key.
632    // May take 2 values:
633    //  1. Rely on default platform handling of option key, on macOS
634    //     this means generating certain unicode characters
635    //         "option_to_meta": false,
636    //  2. Make the option keys behave as a 'meta' key, e.g. for emacs
637    //         "option_to_meta": true,
638    "option_as_meta": false,
639    // Whether or not selecting text in the terminal will automatically
640    // copy to the system clipboard.
641    "copy_on_select": false,
642    // Whether to show the terminal button in the status bar
643    "button": true,
644    // Any key-value pairs added to this list will be added to the terminal's
645    // environment. Use `:` to separate multiple values.
646    "env": {
647      // "KEY": "value1:value2"
648    },
649    // Set the terminal's line height.
650    // May take 3 values:
651    //  1. Use a line height that's comfortable for reading, 1.618
652    //         "line_height": "comfortable"
653    //  2. Use a standard line height, 1.3. This option is useful for TUIs,
654    //      particularly if they use box characters
655    //         "line_height": "standard",
656    //  3. Use a custom line height.
657    //         "line_height": {
658    //           "custom": 2
659    //         },
660    "line_height": "comfortable",
661    // Activate the python virtual environment, if one is found, in the
662    // terminal's working directory (as resolved by the working_directory
663    // setting). Set this to "off" to disable this behavior.
664    "detect_venv": {
665      "on": {
666        // Default directories to search for virtual environments, relative
667        // to the current working directory. We recommend overriding this
668        // in your project's settings, rather than globally.
669        "directories": [".env", "env", ".venv", "venv"],
670        // Can also be `csh`, `fish`, and `nushell`
671        "activate_script": "default"
672      }
673    },
674    "toolbar": {
675      // Whether to display the terminal title in its toolbar.
676      "title": true
677    }
678    // Set the terminal's font size. If this option is not included,
679    // the terminal will default to matching the buffer's font size.
680    // "font_size": 15,
681    // Set the terminal's font family. If this option is not included,
682    // the terminal will default to matching the buffer's font family.
683    // "font_family": "Zed Plex Mono",
684    // Sets the maximum number of lines in the terminal's scrollback buffer.
685    // Default: 10_000, maximum: 100_000 (all bigger values set will be treated as 100_000), 0 disables the scrolling.
686    // Existing terminals will not pick up this change until they are recreated.
687    // "max_scroll_history_lines": 10000,
688  },
689  "code_actions_on_format": {},
690  /// Settings related to running tasks.
691  "tasks": {
692    "variables": {}
693  },
694  // An object whose keys are language names, and whose values
695  // are arrays of filenames or extensions of files that should
696  // use those languages.
697  //
698  // For example, to treat files like `foo.notjs` as JavaScript,
699  // and `Embargo.lock` as TOML:
700  //
701  // {
702  //   "JavaScript": ["notjs"],
703  //   "TOML": ["Embargo.lock"]
704  // }
705  //
706  "file_types": {
707    "JSON": ["flake.lock"],
708    "JSONC": ["**/.zed/**/*.json", "**/zed/**/*.json", "tsconfig.json"]
709  },
710  // The extensions that Zed should automatically install on startup.
711  //
712  // If you don't want any of these extensions, add this field to your settings
713  // and change the value to `false`.
714  "auto_install_extensions": {
715    "html": true
716  },
717  // Different settings for specific languages.
718  "languages": {
719    "Astro": {
720      "prettier": {
721        "allowed": true,
722        "plugins": ["prettier-plugin-astro"]
723      }
724    },
725    "Blade": {
726      "prettier": {
727        "allowed": true
728      }
729    },
730    "C": {
731      "format_on_save": "off",
732      "use_on_type_format": false
733    },
734    "C++": {
735      "format_on_save": "off",
736      "use_on_type_format": false
737    },
738    "CSS": {
739      "prettier": {
740        "allowed": true
741      }
742    },
743    "Elixir": {
744      "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
745    },
746    "Erlang": {
747      "language_servers": ["erlang-ls", "!elp", "..."]
748    },
749    "Go": {
750      "code_actions_on_format": {
751        "source.organizeImports": true
752      }
753    },
754    "GraphQL": {
755      "prettier": {
756        "allowed": true
757      }
758    },
759    "HEEX": {
760      "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
761    },
762    "HTML": {
763      "prettier": {
764        "allowed": true
765      }
766    },
767    "Java": {
768      "prettier": {
769        "allowed": true,
770        "plugins": ["prettier-plugin-java"]
771      }
772    },
773    "JavaScript": {
774      "language_servers": ["!typescript-language-server", "vtsls", "..."],
775      "prettier": {
776        "allowed": true
777      }
778    },
779    "JSON": {
780      "prettier": {
781        "allowed": true
782      }
783    },
784    "JSONC": {
785      "prettier": {
786        "allowed": true
787      }
788    },
789    "Markdown": {
790      "format_on_save": "off",
791      "use_on_type_format": false,
792      "prettier": {
793        "allowed": true
794      }
795    },
796    "PHP": {
797      "language_servers": ["phpactor", "!intelephense", "..."],
798      "prettier": {
799        "allowed": true,
800        "plugins": ["@prettier/plugin-php"],
801        "parser": "php"
802      }
803    },
804    "Ruby": {
805      "language_servers": ["solargraph", "!ruby-lsp", "!rubocop", "..."]
806    },
807    "SCSS": {
808      "prettier": {
809        "allowed": true
810      }
811    },
812    "SQL": {
813      "prettier": {
814        "allowed": true,
815        "plugins": ["prettier-plugin-sql"]
816      }
817    },
818    "Svelte": {
819      "prettier": {
820        "allowed": true,
821        "plugins": ["prettier-plugin-svelte"]
822      }
823    },
824    "TSX": {
825      "language_servers": ["!typescript-language-server", "vtsls", "..."],
826      "prettier": {
827        "allowed": true
828      }
829    },
830    "Twig": {
831      "prettier": {
832        "allowed": true
833      }
834    },
835    "TypeScript": {
836      "language_servers": ["!typescript-language-server", "vtsls", "..."],
837      "prettier": {
838        "allowed": true
839      }
840    },
841    "Vue.js": {
842      "prettier": {
843        "allowed": true
844      }
845    },
846    "XML": {
847      "prettier": {
848        "allowed": true,
849        "plugins": ["@prettier/plugin-xml"]
850      }
851    },
852    "YAML": {
853      "prettier": {
854        "allowed": true
855      }
856    }
857  },
858  // Zed's Prettier integration settings.
859  // Allows to enable/disable formatting with Prettier
860  // and configure default Prettier, used when no project-level Prettier installation is found.
861  "prettier": {
862    // // Whether to consider prettier formatter or not when attempting to format a file.
863    // "allowed": false,
864    //
865    // // Use regular Prettier json configuration.
866    // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
867    // // the project has no other Prettier installed.
868    // "plugins": [],
869    //
870    // // Use regular Prettier json configuration.
871    // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
872    // // the project has no other Prettier installed.
873    // "trailingComma": "es5",
874    // "tabWidth": 4,
875    // "semi": false,
876    // "singleQuote": true
877  },
878  // LSP Specific settings.
879  "lsp": {
880    // Specify the LSP name as a key here.
881    // "rust-analyzer": {
882    //     // These initialization options are merged into Zed's defaults
883    //     "initialization_options": {
884    //         "check": {
885    //             "command": "clippy" // rust-analyzer.check.command (default: "check")
886    //         }
887    //     }
888    // }
889  },
890  // Vim settings
891  "vim": {
892    "use_system_clipboard": "always",
893    "use_multiline_find": false,
894    "use_smartcase_find": false
895  },
896  // The server to connect to. If the environment variable
897  // ZED_SERVER_URL is set, it will override this setting.
898  "server_url": "https://zed.dev",
899  // Settings overrides to use when using Zed Preview.
900  // Mostly useful for developers who are managing multiple instances of Zed.
901  "preview": {
902    // "theme": "Andromeda"
903  },
904  // Settings overrides to use when using Zed Nightly.
905  // Mostly useful for developers who are managing multiple instances of Zed.
906  "nightly": {
907    // "theme": "Andromeda"
908  },
909  // Settings overrides to use when using Zed Stable.
910  // Mostly useful for developers who are managing multiple instances of Zed.
911  "stable": {
912    // "theme": "Andromeda"
913  },
914  // Settings overrides to use when using Zed Dev.
915  // Mostly useful for developers who are managing multiple instances of Zed.
916  "dev": {
917    // "theme": "Andromeda"
918  },
919  // Task-related settings.
920  "task": {
921    // Whether to show task status indicator in the status bar. Default: true
922    "show_status_indicator": true
923  },
924  // Whether to show full labels in line indicator or short ones
925  //
926  // Values:
927  //   - `short`: "2 s, 15 l, 32 c"
928  //   - `long`: "2 selections, 15 lines, 32 characters"
929  // Default: long
930  "line_indicator_format": "long",
931  // Set a proxy to use. The proxy protocol is specified by the URI scheme.
932  //
933  // Supported URI scheme: `http`, `https`, `socks4`, `socks4a`, `socks5`,
934  // `socks5h`. `http` will be used when no scheme is specified.
935  //
936  // By default no proxy will be used, or Zed will try get proxy settings from
937  // environment variables.
938  //
939  // Examples:
940  //   - "proxy": "socks5://localhost:10808"
941  //   - "proxy": "http://127.0.0.1:10809"
942  "proxy": null,
943  // Set to configure aliases for the command palette.
944  // When typing a query which is a key of this object, the value will be used instead.
945  //
946  // Examples:
947  // {
948  //   "W": "workspace::Save"
949  // }
950  "command_aliases": {}
951}