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