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