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