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