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