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