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