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 "icon_theme": "Zed (Default)",
14 // The name of a base set of key bindings to use.
15 // This setting can take six values, each named after another
16 // text editor:
17 //
18 // 1. "VSCode"
19 // 2. "Atom"
20 // 3. "JetBrains"
21 // 4. "None"
22 // 5. "SublimeText"
23 // 6. "TextMate"
24 "base_keymap": "VSCode",
25 // Features that can be globally enabled or disabled
26 "features": {
27 // Which inline completion provider to use.
28 "inline_completion_provider": "copilot"
29 },
30 // The name of a font to use for rendering text in the editor
31 "buffer_font_family": "Zed Plex Mono",
32 // Set the buffer text's font fallbacks, this will be merged with
33 // the platform's default fallbacks.
34 "buffer_font_fallbacks": null,
35 // The OpenType features to enable for text in the editor.
36 "buffer_font_features": {
37 // Disable ligatures:
38 // "calt": false
39 },
40 // The default font size for text in the editor
41 "buffer_font_size": 15,
42 // The weight of the editor font in standard CSS units from 100 to 900.
43 "buffer_font_weight": 400,
44 // Set the buffer's line height.
45 // May take 3 values:
46 // 1. Use a line height that's comfortable for reading (1.618)
47 // "buffer_line_height": "comfortable"
48 // 2. Use a standard line height, (1.3)
49 // "buffer_line_height": "standard",
50 // 3. Use a custom line height
51 // "buffer_line_height": {
52 // "custom": 2
53 // },
54 "buffer_line_height": "comfortable",
55 // The name of a font to use for rendering text in the UI
56 // You can set this to ".SystemUIFont" to use the system font
57 "ui_font_family": "Zed Plex Sans",
58 // Set the UI's font fallbacks, this will be merged with the platform's
59 // default font fallbacks.
60 "ui_font_fallbacks": null,
61 // The OpenType features to enable for text in the UI
62 "ui_font_features": {
63 // Disable ligatures:
64 "calt": false
65 },
66 // The weight of the UI font in standard CSS units from 100 to 900.
67 "ui_font_weight": 400,
68 // The default font size for text in the UI
69 "ui_font_size": 16,
70 // How much to fade out unused code.
71 "unnecessary_code_fade": 0.3,
72 // Active pane styling settings.
73 "active_pane_modifiers": {
74 // The factor to grow the active pane by. Defaults to 1.0
75 // which gives the same size as all other panes.
76 "magnification": 1.0,
77 // Inset border size of the active pane, in pixels.
78 "border_size": 0.0,
79 // Opacity of the inactive panes. 0 means transparent, 1 means opaque.
80 // Values are clamped to the [0.0, 1.0] range.
81 "inactive_opacity": 1.0
82 },
83 // The direction that you want to split panes horizontally. Defaults to "up"
84 "pane_split_direction_horizontal": "up",
85 // The direction that you want to split panes horizontally. Defaults to "left"
86 "pane_split_direction_vertical": "left",
87 // Centered layout related settings.
88 "centered_layout": {
89 // The relative width of the left padding of the central pane from the
90 // workspace when the centered layout is used.
91 "left_padding": 0.2,
92 // The relative width of the right padding of the central pane from the
93 // workspace when the centered layout is used.
94 "right_padding": 0.2
95 },
96 // The key to use for adding multiple cursors
97 // Currently "alt" or "cmd_or_ctrl" (also aliased as
98 // "cmd" and "ctrl") are supported.
99 "multi_cursor_modifier": "alt",
100 // Whether to enable vim modes and key bindings.
101 "vim_mode": false,
102 // Whether to show the informational hover box when moving the mouse
103 // over symbols in the editor.
104 "hover_popover_enabled": true,
105 // Time to wait before showing the informational hover box
106 "hover_popover_delay": 350,
107 // Whether to confirm before quitting Zed.
108 "confirm_quit": false,
109 // Whether to restore last closed project when fresh Zed instance is opened.
110 "restore_on_startup": "last_session",
111 // Size of the drop target in the editor.
112 "drop_target_size": 0.2,
113 // Whether the window should be closed when using 'close active item' on a window with no tabs.
114 // May take 3 values:
115 // 1. Use the current platform's convention
116 // "when_closing_with_no_tabs": "platform_default"
117 // 2. Always close the window:
118 // "when_closing_with_no_tabs": "close_window",
119 // 3. Never close the window
120 // "when_closing_with_no_tabs": "keep_window_open",
121 "when_closing_with_no_tabs": "platform_default",
122 // Whether to use the system provided dialogs for Open and Save As.
123 // When set to false, Zed will use the built-in keyboard-first pickers.
124 "use_system_path_prompts": true,
125 // Whether the cursor blinks in the editor.
126 "cursor_blink": true,
127 // Cursor shape for the default editor.
128 // 1. A vertical bar
129 // "bar"
130 // 2. A block that surrounds the following character
131 // "block"
132 // 3. An underline / underscore that runs along the following character
133 // "underline"
134 // 4. A box drawn around the following character
135 // "hollow"
136 //
137 // Default: not set, defaults to "bar"
138 "cursor_shape": null,
139 // How to highlight the current line in the editor.
140 //
141 // 1. Don't highlight the current line:
142 // "none"
143 // 2. Highlight the gutter area:
144 // "gutter"
145 // 3. Highlight the editor area:
146 // "line"
147 // 4. Highlight the full line (default):
148 // "all"
149 "current_line_highlight": "all",
150 // The debounce delay before querying highlights from the language
151 // server based on the current cursor location.
152 "lsp_highlight_debounce": 75,
153 // Whether to pop the completions menu while typing in an editor without
154 // explicitly requesting it.
155 "show_completions_on_input": true,
156 // Whether to display inline and alongside documentation for items in the
157 // completions menu
158 "show_completion_documentation": true,
159 // Show method signatures in the editor, when inside parentheses.
160 "auto_signature_help": false,
161 /// Whether to show the signature help after completion or a bracket pair inserted.
162 /// If `auto_signature_help` is enabled, this setting will be treated as enabled also.
163 "show_signature_help_after_edits": false,
164 /// Whether to show the inline completions next to the completions provided by a language server.
165 /// Only has an effect if inline completion provider supports it.
166 "show_inline_completions_in_menu": true,
167 // Whether to show wrap guides (vertical rulers) in the editor.
168 // Setting this to true will show a guide at the 'preferred_line_length' value
169 // if 'soft_wrap' is set to 'preferred_line_length', and will show any
170 // additional guides as specified by the 'wrap_guides' setting.
171 "show_wrap_guides": true,
172 // Character counts at which to show wrap guides in the editor.
173 "wrap_guides": [],
174 // Hide the values of in variables from visual display in private files
175 "redact_private_values": false,
176 // The default number of lines to expand excerpts in the multibuffer by.
177 "expand_excerpt_lines": 3,
178 // Globs to match against file paths to determine if a file is private.
179 "private_files": ["**/.env*", "**/*.pem", "**/*.key", "**/*.cert", "**/*.crt", "**/secrets.yml"],
180 // Whether to use additional LSP queries to format (and amend) the code after
181 // every "trigger" symbol input, defined by LSP server capabilities.
182 "use_on_type_format": true,
183 // Whether to automatically add matching closing characters when typing
184 // opening parenthesis, bracket, brace, single or double quote characters.
185 // For example, when you type (, Zed will add a closing ) at the correct position.
186 "use_autoclose": true,
187 // Whether to automatically surround selected text when typing opening parenthesis,
188 // bracket, brace, single or double quote characters.
189 // For example, when you select text and type (, Zed will surround the text with ().
190 "use_auto_surround": true,
191 // Whether indentation of pasted content should be adjusted based on the context.
192 "auto_indent_on_paste": true,
193 // Controls how the editor handles the autoclosed characters.
194 // When set to `false`(default), skipping over and auto-removing of the closing characters
195 // happen only for auto-inserted characters.
196 // Otherwise(when `true`), the closing characters are always skipped over and auto-removed
197 // no matter how they were inserted.
198 "always_treat_brackets_as_autoclosed": false,
199 // Controls whether inline completions are shown immediately (true)
200 // or manually by triggering `editor::ShowInlineCompletion` (false).
201 "show_inline_completions": true,
202 // Controls whether inline completions are shown in a given language scope.
203 // Example: ["string", "comment"]
204 "inline_completions_disabled_in": [],
205 // Whether to show tabs and spaces in the editor.
206 // This setting can take four values:
207 //
208 // 1. Draw tabs and spaces only for the selected text (default):
209 // "selection"
210 // 2. Do not draw any tabs or spaces:
211 // "none"
212 // 3. Draw all invisible symbols:
213 // "all"
214 // 4. Draw whitespaces at boundaries only:
215 // "boundary"
216 // For a whitespace to be on a boundary, any of the following conditions need to be met:
217 // - It is a tab
218 // - It is adjacent to an edge (start or end)
219 // - It is adjacent to a whitespace (left or right)
220 "show_whitespaces": "selection",
221 // Settings related to calls in Zed
222 "calls": {
223 // Join calls with the microphone live by default
224 "mute_on_join": false,
225 // Share your project when you are the first to join a channel
226 "share_on_join": false
227 },
228 // Toolbar related settings
229 "toolbar": {
230 // Whether to show breadcrumbs.
231 "breadcrumbs": true,
232 // Whether to show quick action buttons.
233 "quick_actions": true,
234 // Whether to show the Selections menu in the editor toolbar
235 "selections_menu": true
236 },
237 // Scrollbar related settings
238 "scrollbar": {
239 // When to show the scrollbar in the editor.
240 // This setting can take four values:
241 //
242 // 1. Show the scrollbar if there's important information or
243 // follow the system's configured behavior (default):
244 // "auto"
245 // 2. Match the system's configured behavior:
246 // "system"
247 // 3. Always show the scrollbar:
248 // "always"
249 // 4. Never show the scrollbar:
250 // "never"
251 "show": "auto",
252 // Whether to show cursor positions in the scrollbar.
253 "cursors": true,
254 // Whether to show git diff indicators in the scrollbar.
255 "git_diff": true,
256 // Whether to show buffer search results in the scrollbar.
257 "search_results": true,
258 // Whether to show selected symbol occurrences in the scrollbar.
259 "selected_symbol": true,
260 // Which diagnostic indicators to show in the scrollbar:
261 // - "none" or false: do not show diagnostics
262 // - "error": show only errors
263 // - "warning": show only errors and warnings
264 // - "information": show only errors, warnings, and information
265 // - "all" or true: show all diagnostics
266 "diagnostics": "all",
267 /// Forcefully enable or disable the scrollbar for each axis
268 "axes": {
269 /// When false, forcefully disables the horizontal scrollbar. Otherwise, obey other settings.
270 "horizontal": true,
271 /// When false, forcefully disables the vertical scrollbar. Otherwise, obey other settings.
272 "vertical": true
273 }
274 },
275 // Enable middle-click paste on Linux.
276 "middle_click_paste": true,
277 // What to do when multibuffer is double clicked in some of its excerpts
278 // (parts of singleton buffers).
279 // May take 2 values:
280 // 1. Behave as a regular buffer and select the whole word (default).
281 // "double_click_in_multibuffer": "select"
282 // 2. Open the excerpt clicked as a new buffer in the new tab.
283 // "double_click_in_multibuffer": "open",
284 // For the case of "open", regular selection behavior can be achieved by holding `alt` when double clicking.
285 "double_click_in_multibuffer": "select",
286 "gutter": {
287 // Whether to show line numbers in the gutter.
288 "line_numbers": true,
289 // Whether to show code action buttons in the gutter.
290 "code_actions": true,
291 // Whether to show runnables buttons in the gutter.
292 "runnables": true,
293 // Whether to show fold buttons in the gutter.
294 "folds": true
295 },
296 "indent_guides": {
297 /// Whether to show indent guides in the editor.
298 "enabled": true,
299 /// The width of the indent guides in pixels, between 1 and 10.
300 "line_width": 1,
301 /// The width of the active indent guide in pixels, between 1 and 10.
302 "active_line_width": 1,
303 /// Determines how indent guides are colored.
304 /// This setting can take the following three values:
305 ///
306 /// 1. "disabled"
307 /// 2. "fixed"
308 /// 3. "indent_aware"
309 "coloring": "fixed",
310 /// Determines how indent guide backgrounds are colored.
311 /// This setting can take the following two values:
312 ///
313 /// 1. "disabled"
314 /// 2. "indent_aware"
315 "background_coloring": "disabled"
316 },
317 // Whether the editor will scroll beyond the last line.
318 "scroll_beyond_last_line": "one_page",
319 // The number of lines to keep above/below the cursor when scrolling.
320 "vertical_scroll_margin": 3,
321 // Whether to scroll when clicking near the edge of the visible text area.
322 "autoscroll_on_clicks": false,
323 // The number of characters to keep on either side when scrolling with the mouse
324 "horizontal_scroll_margin": 5,
325 // Scroll sensitivity multiplier. This multiplier is applied
326 // to both the horizontal and vertical delta values while scrolling.
327 "scroll_sensitivity": 1.0,
328 "relative_line_numbers": false,
329 // If 'search_wrap' is disabled, search result do not wrap around the end of the file.
330 "search_wrap": true,
331 // Search options to enable by default when opening new project and buffer searches.
332 "search": {
333 "whole_word": false,
334 "case_sensitive": false,
335 "include_ignored": false,
336 "regex": false
337 },
338 // When to populate a new search's query based on the text under the cursor.
339 // This setting can take the following three values:
340 //
341 // 1. Always populate the search query with the word under the cursor (default).
342 // "always"
343 // 2. Only populate the search query when there is text selected
344 // "selection"
345 // 3. Never populate the search query
346 // "never"
347 "seed_search_query_from_cursor": "always",
348 "use_smartcase_search": false,
349 // Inlay hint related settings
350 "inlay_hints": {
351 // Global switch to toggle hints on and off, switched off by default.
352 "enabled": false,
353 // Toggle certain types of hints on and off, all switched on by default.
354 "show_type_hints": true,
355 "show_parameter_hints": true,
356 // Corresponds to null/None LSP hint type value.
357 "show_other_hints": true,
358 // Whether to show a background for inlay hints.
359 //
360 // If set to `true`, the background will use the `hint.background` color from the current theme.
361 "show_background": false,
362 // Time to wait after editing the buffer, before requesting the hints,
363 // set to 0 to disable debouncing.
364 "edit_debounce_ms": 700,
365 // Time to wait after scrolling the buffer, before requesting the hints,
366 // set to 0 to disable debouncing.
367 "scroll_debounce_ms": 50
368 },
369 "project_panel": {
370 // Whether to show the project panel button in the status bar
371 "button": true,
372 // Default width of the project panel.
373 "default_width": 240,
374 // Where to dock the project panel. Can be 'left' or 'right'.
375 "dock": "left",
376 // Spacing between worktree entries in the project panel. Can be 'comfortable' or 'standard'.
377 "entry_spacing": "comfortable",
378 // Whether to show file icons in the project panel.
379 "file_icons": true,
380 // Whether to show folder icons or chevrons for directories in the project panel.
381 "folder_icons": true,
382 // Whether to show the git status in the project panel.
383 "git_status": true,
384 // Amount of indentation for nested items.
385 "indent_size": 20,
386 // Whether to reveal it in the project panel automatically,
387 // when a corresponding project entry becomes active.
388 // Gitignored entries are never auto revealed.
389 "auto_reveal_entries": true,
390 // Whether to fold directories automatically and show compact folders
391 // (e.g. "a/b/c" ) when a directory has only one subdirectory inside.
392 "auto_fold_dirs": true,
393 /// Scrollbar-related settings
394 "scrollbar": {
395 /// When to show the scrollbar in the project panel.
396 /// This setting can take five values:
397 ///
398 /// 1. null (default): Inherit editor settings
399 /// 2. Show the scrollbar if there's important information or
400 /// follow the system's configured behavior (default):
401 /// "auto"
402 /// 3. Match the system's configured behavior:
403 /// "system"
404 /// 4. Always show the scrollbar:
405 /// "always"
406 /// 5. Never show the scrollbar:
407 /// "never"
408 "show": null
409 },
410 /// Which files containing diagnostic errors/warnings to mark in the project panel.
411 /// This setting can take the following three values:
412 ///
413 /// 1. Do not mark any files:
414 /// "off"
415 /// 2. Only mark files with errors:
416 /// "errors"
417 /// 3. Mark files with errors and warnings:
418 /// "all"
419 "show_diagnostics": "all",
420 // Settings related to indent guides in the project panel.
421 "indent_guides": {
422 // When to show indent guides in the project panel.
423 // This setting can take two values:
424 //
425 // 1. Always show indent guides:
426 // "always"
427 // 2. Never show indent guides:
428 // "never"
429 "show": "always"
430 }
431 },
432 "outline_panel": {
433 // Whether to show the outline panel button in the status bar
434 "button": true,
435 // Default width of the outline panel.
436 "default_width": 300,
437 // Where to dock the outline panel. Can be 'left' or 'right'.
438 "dock": "left",
439 // Whether to show file icons in the outline panel.
440 "file_icons": true,
441 // Whether to show folder icons or chevrons for directories in the outline panel.
442 "folder_icons": true,
443 // Whether to show the git status in the outline panel.
444 "git_status": true,
445 // Amount of indentation for nested items.
446 "indent_size": 20,
447 // Whether to reveal it in the outline panel automatically,
448 // when a corresponding outline entry becomes active.
449 // Gitignored entries are never auto revealed.
450 "auto_reveal_entries": true,
451 /// Whether to fold directories automatically
452 /// when a directory has only one directory inside.
453 "auto_fold_dirs": true,
454 // Settings related to indent guides in the outline panel.
455 "indent_guides": {
456 // When to show indent guides in the outline panel.
457 // This setting can take two values:
458 //
459 // 1. Always show indent guides:
460 // "always"
461 // 2. Never show indent guides:
462 // "never"
463 "show": "always"
464 },
465 /// Scrollbar-related settings
466 "scrollbar": {
467 /// When to show the scrollbar in the project panel.
468 /// This setting can take five values:
469 ///
470 /// 1. null (default): Inherit editor settings
471 /// 2. Show the scrollbar if there's important information or
472 /// follow the system's configured behavior (default):
473 /// "auto"
474 /// 3. Match the system's configured behavior:
475 /// "system"
476 /// 4. Always show the scrollbar:
477 /// "always"
478 /// 5. Never show the scrollbar:
479 /// "never"
480 "show": null
481 }
482 },
483 "collaboration_panel": {
484 // Whether to show the collaboration panel button in the status bar.
485 "button": true,
486 // Where to dock the collaboration panel. Can be 'left' or 'right'.
487 "dock": "left",
488 // Default width of the collaboration panel.
489 "default_width": 240
490 },
491 "chat_panel": {
492 // When to show the chat panel button in the status bar.
493 // Can be 'never', 'always', or 'when_in_call',
494 // or a boolean (interpreted as 'never'/'always').
495 "button": "when_in_call",
496 // Where to the chat panel. Can be 'left' or 'right'.
497 "dock": "right",
498 // Default width of the chat panel.
499 "default_width": 240
500 },
501 "git_panel": {
502 // Whether to show the git panel button in the status bar.
503 "button": true,
504 // Where to the git panel. Can be 'left' or 'right'.
505 "dock": "left",
506 // Default width of the git panel.
507 "default_width": 360,
508 // Style of the git status indicator in the panel.
509 //
510 // Default: icon
511 "status_style": "icon",
512 "scrollbar": {
513 // When to show the scrollbar in the git panel.
514 //
515 // Default: inherits editor scrollbar settings
516 "show": null
517 }
518 },
519 "message_editor": {
520 // Whether to automatically replace emoji shortcodes with emoji characters.
521 // For example: typing `:wave:` gets replaced with `👋`.
522 "auto_replace_emoji_shortcode": true
523 },
524 "notification_panel": {
525 // Whether to show the notification panel button in the status bar.
526 "button": true,
527 // Where to dock the notification panel. Can be 'left' or 'right'.
528 "dock": "right",
529 // Default width of the notification panel.
530 "default_width": 380
531 },
532 "assistant": {
533 // Version of this setting.
534 "version": "2",
535 // Whether the assistant is enabled.
536 "enabled": true,
537 // Whether to show the assistant panel button in the status bar.
538 "button": true,
539 // Where to dock the assistant panel. Can be 'left', 'right' or 'bottom'.
540 "dock": "right",
541 // Default width when the assistant is docked to the left or right.
542 "default_width": 640,
543 // Default height when the assistant is docked to the bottom.
544 "default_height": 320,
545 // The default model to use when creating new chats.
546 "default_model": {
547 // The provider to use.
548 "provider": "zed.dev",
549 // The model to use.
550 "model": "claude-3-5-sonnet"
551 }
552 },
553 // The settings for slash commands.
554 "slash_commands": {
555 // Settings for the `/docs` slash command.
556 "docs": {
557 // Whether `/docs` is enabled.
558 "enabled": false
559 },
560 // Settings for the `/project` slash command.
561 "project": {
562 // Whether `/project` is enabled.
563 "enabled": false
564 }
565 },
566 // Whether the screen sharing icon is shown in the os status bar.
567 "show_call_status_icon": true,
568 // Whether to use language servers to provide code intelligence.
569 "enable_language_server": true,
570 // Whether to perform linked edits of associated ranges, if the language server supports it.
571 // For example, when editing opening <html> tag, the contents of the closing </html> tag will be edited as well.
572 "linked_edits": true,
573 // The list of language servers to use (or disable) for all languages.
574 //
575 // This is typically customized on a per-language basis.
576 "language_servers": ["..."],
577 // When to automatically save edited buffers. This setting can
578 // take four values.
579 //
580 // 1. Never automatically save:
581 // "autosave": "off",
582 // 2. Save when changing focus away from the Zed window:
583 // "autosave": "on_window_change",
584 // 3. Save when changing focus away from a specific buffer:
585 // "autosave": "on_focus_change",
586 // 4. Save when idle for a certain amount of time:
587 // "autosave": { "after_delay": {"milliseconds": 500} },
588 "autosave": "off",
589 // Maximum number of tabs per pane. Unset for unlimited.
590 "max_tabs": null,
591 // Settings related to the editor's tab bar.
592 "tab_bar": {
593 // Whether or not to show the tab bar in the editor
594 "show": true,
595 // Whether or not to show the navigation history buttons.
596 "show_nav_history_buttons": true,
597 /// Whether or not to show the tab bar buttons.
598 "show_tab_bar_buttons": true
599 },
600 // Settings related to the editor's tabs
601 "tabs": {
602 // Show git status colors in the editor tabs.
603 "git_status": false,
604 // Position of the close button on the editor tabs.
605 "close_position": "right",
606 // Whether to show the file icon for a tab.
607 "file_icons": false,
608 // Whether to always show the close button on tabs.
609 "always_show_close_button": false,
610 // What to do after closing the current tab.
611 //
612 // 1. Activate the tab that was open previously (default)
613 // "history"
614 // 2. Activate the right neighbour tab if present
615 // "neighbour"
616 // 3. Activate the left neighbour tab if present
617 // "left_neighbour"
618 "activate_on_close": "history",
619 /// Which files containing diagnostic errors/warnings to mark in the tabs.
620 /// Diagnostics are only shown when file icons are also active.
621 /// This setting only works when can take the following three values:
622 ///
623 /// 1. Do not mark any files:
624 /// "off"
625 /// 2. Only mark files with errors:
626 /// "errors"
627 /// 3. Mark files with errors and warnings:
628 /// "all"
629 "show_diagnostics": "off"
630 },
631 // Settings related to preview tabs.
632 "preview_tabs": {
633 // Whether preview tabs should be enabled.
634 // Preview tabs allow you to open files in preview mode, where they close automatically
635 // when you switch to another file unless you explicitly pin them.
636 // This is useful for quickly viewing files without cluttering your workspace.
637 "enabled": true,
638 // Whether to open tabs in preview mode when selected from the file finder.
639 "enable_preview_from_file_finder": false,
640 // Whether a preview tab gets replaced when code navigation is used to navigate away from the tab.
641 "enable_preview_from_code_navigation": false
642 },
643 // Settings related to the file finder.
644 "file_finder": {
645 // Whether to show file icons in the file finder.
646 "file_icons": true,
647 // Determines how much space the file finder can take up in relation to the available window width.
648 // There are 5 possible width values:
649 //
650 // 1. Small: This value is essentially a fixed width.
651 // "modal_width": "small"
652 // 2. Medium:
653 // "modal_width": "medium"
654 // 3. Large:
655 // "modal_width": "large"
656 // 4. Extra Large:
657 // "modal_width": "xlarge"
658 // 5. Fullscreen: This value removes any horizontal padding, as it consumes the whole viewport width.
659 // "modal_width": "full"
660 //
661 // Default: small
662 "modal_max_width": "small"
663 },
664 // Whether or not to remove any trailing whitespace from lines of a buffer
665 // before saving it.
666 "remove_trailing_whitespace_on_save": true,
667 // Whether to start a new line with a comment when a previous line is a comment as well.
668 "extend_comment_on_newline": true,
669 // Whether or not to ensure there's a single newline at the end of a buffer
670 // when saving it.
671 "ensure_final_newline_on_save": true,
672 // Whether or not to perform a buffer format before saving
673 //
674 // Keep in mind, if the autosave with delay is enabled, format_on_save will be ignored
675 "format_on_save": "on",
676 // How to perform a buffer format. This setting can take 4 values:
677 //
678 // 1. Format code using the current language server:
679 // "formatter": "language_server"
680 // 2. Format code using an external command:
681 // "formatter": {
682 // "external": {
683 // "command": "prettier",
684 // "arguments": ["--stdin-filepath", "{buffer_path}"]
685 // }
686 // }
687 // 3. Format code using Zed's Prettier integration:
688 // "formatter": "prettier"
689 // 4. Default. Format files using Zed's Prettier integration (if applicable),
690 // or falling back to formatting via language server:
691 // "formatter": "auto"
692 "formatter": "auto",
693 // How to soft-wrap long lines of text.
694 // Possible values:
695 //
696 // 1. Prefer a single line generally, unless an overly long line is encountered.
697 // "soft_wrap": "none",
698 // "soft_wrap": "prefer_line", // (deprecated, same as "none")
699 // 2. Soft wrap lines that overflow the editor.
700 // "soft_wrap": "editor_width",
701 // 3. Soft wrap lines at the preferred line length.
702 // "soft_wrap": "preferred_line_length",
703 // 4. Soft wrap lines at the preferred line length or the editor width (whichever is smaller).
704 // "soft_wrap": "bounded",
705 "soft_wrap": "none",
706 // The column at which to soft-wrap lines, for buffers where soft-wrap
707 // is enabled.
708 "preferred_line_length": 80,
709 // Whether to indent lines using tab characters, as opposed to multiple
710 // spaces.
711 "hard_tabs": false,
712 // How many columns a tab should occupy.
713 "tab_size": 4,
714 // Control what info is collected by Zed.
715 "telemetry": {
716 // Send debug info like crash reports.
717 "diagnostics": true,
718 // Send anonymized usage data like what languages you're using Zed with.
719 "metrics": true
720 },
721 // Automatically update Zed. This setting may be ignored on Linux if
722 // installed through a package manager.
723 "auto_update": true,
724 // Diagnostics configuration.
725 "diagnostics": {
726 // Whether to show warnings or not by default.
727 "include_warnings": true
728 },
729 // Add files or globs of files that will be excluded by Zed entirely:
730 // they will be skipped during FS scan(s), file tree and file search
731 // will lack the corresponding file entries. Overrides `file_scan_inclusions`.
732 "file_scan_exclusions": [
733 "**/.git",
734 "**/.svn",
735 "**/.hg",
736 "**/.jj",
737 "**/CVS",
738 "**/.DS_Store",
739 "**/Thumbs.db",
740 "**/.classpath",
741 "**/.settings"
742 ],
743 // Add files or globs of files that will be included by Zed, even when
744 // ignored by git. This is useful for files that are not tracked by git,
745 // but are still important to your project. Note that globs that are
746 // overly broad can slow down Zed's file scanning. Overridden by `file_scan_exclusions`.
747 "file_scan_inclusions": [".env*"],
748 // Git gutter behavior configuration.
749 "git": {
750 // Control whether the git gutter is shown. May take 2 values:
751 // 1. Show the gutter
752 // "git_gutter": "tracked_files"
753 // 2. Hide the gutter
754 // "git_gutter": "hide"
755 "git_gutter": "tracked_files",
756 // Control whether the git blame information is shown inline,
757 // in the currently focused line.
758 "inline_blame": {
759 "enabled": true
760 // Sets a delay after which the inline blame information is shown.
761 // Delay is restarted with every cursor movement.
762 // "delay_ms": 600
763 //
764 // Whether or not to display the git commit summary on the same line.
765 // "show_commit_summary": false
766 //
767 // The minimum column number to show the inline blame information at
768 // "min_column": 0
769 }
770 },
771 // Configuration for how direnv configuration should be loaded. May take 2 values:
772 // 1. Load direnv configuration using `direnv export json` directly.
773 // "load_direnv": "direct"
774 // 2. Load direnv configuration through the shell hook, works for POSIX shells and fish.
775 // "load_direnv": "shell_hook"
776 "load_direnv": "direct",
777 "inline_completions": {
778 // A list of globs representing files that inline completions should be disabled for.
779 "disabled_globs": [
780 "**/.env*",
781 "**/*.pem",
782 "**/*.key",
783 "**/*.cert",
784 "**/*.crt",
785 "**/secrets.yml"
786 ]
787 },
788 // Settings specific to journaling
789 "journal": {
790 // The path of the directory where journal entries are stored
791 "path": "~",
792 // What format to display the hours in
793 // May take 2 values:
794 // 1. hour12
795 // 2. hour24
796 "hour_format": "hour12"
797 },
798 // Settings specific to the terminal
799 "terminal": {
800 // What shell to use when opening a terminal. May take 3 values:
801 // 1. Use the system's default terminal configuration in /etc/passwd
802 // "shell": "system"
803 // 2. A program:
804 // "shell": {
805 // "program": "sh"
806 // }
807 // 3. A program with arguments:
808 // "shell": {
809 // "with_arguments": {
810 // "program": "/bin/bash",
811 // "args": ["--login"]
812 // }
813 // }
814 "shell": "system",
815 // Where to dock terminals panel. Can be `left`, `right`, `bottom`.
816 "dock": "bottom",
817 // Default width when the terminal is docked to the left or right.
818 "default_width": 640,
819 // Default height when the terminal is docked to the bottom.
820 "default_height": 320,
821 // What working directory to use when launching the terminal.
822 // May take 4 values:
823 // 1. Use the current file's project directory. Will Fallback to the
824 // first project directory strategy if unsuccessful
825 // "working_directory": "current_project_directory"
826 // 2. Use the first project in this workspace's directory
827 // "working_directory": "first_project_directory"
828 // 3. Always use this platform's home directory (if we can find it)
829 // "working_directory": "always_home"
830 // 4. Always use a specific directory. This value will be shell expanded.
831 // If this path is not a valid directory the terminal will default to
832 // this platform's home directory (if we can find it)
833 // "working_directory": {
834 // "always": {
835 // "directory": "~/zed/projects/"
836 // }
837 // }
838 "working_directory": "current_project_directory",
839 // Set the cursor blinking behavior in the terminal.
840 // May take 3 values:
841 // 1. Never blink the cursor, ignoring the terminal mode
842 // "blinking": "off",
843 // 2. Default the cursor blink to off, but allow the terminal to
844 // set blinking
845 // "blinking": "terminal_controlled",
846 // 3. Always blink the cursor, ignoring the terminal mode
847 // "blinking": "on",
848 "blinking": "terminal_controlled",
849 // Default cursor shape for the terminal.
850 // 1. A block that surrounds the following character
851 // "block"
852 // 2. A vertical bar
853 // "bar"
854 // 3. An underline / underscore that runs along the following character
855 // "underline"
856 // 4. A box drawn around the following character
857 // "hollow"
858 //
859 // Default: not set, defaults to "block"
860 "cursor_shape": null,
861 // Set whether Alternate Scroll mode (code: ?1007) is active by default.
862 // Alternate Scroll mode converts mouse scroll events into up / down key
863 // presses when in the alternate screen (e.g. when running applications
864 // like vim or less). The terminal can still set and unset this mode.
865 // May take 2 values:
866 // 1. Default alternate scroll mode to on
867 // "alternate_scroll": "on",
868 // 2. Default alternate scroll mode to off
869 // "alternate_scroll": "off",
870 "alternate_scroll": "off",
871 // Set whether the option key behaves as the meta key.
872 // May take 2 values:
873 // 1. Rely on default platform handling of option key, on macOS
874 // this means generating certain unicode characters
875 // "option_as_meta": false,
876 // 2. Make the option keys behave as a 'meta' key, e.g. for emacs
877 // "option_as_meta": true,
878 "option_as_meta": false,
879 // Whether or not selecting text in the terminal will automatically
880 // copy to the system clipboard.
881 "copy_on_select": false,
882 // Whether to show the terminal button in the status bar
883 "button": true,
884 // Any key-value pairs added to this list will be added to the terminal's
885 // environment. Use `:` to separate multiple values.
886 "env": {
887 // "KEY": "value1:value2"
888 },
889 // Set the terminal's line height.
890 // May take 3 values:
891 // 1. Use a line height that's comfortable for reading, 1.618
892 // "line_height": "comfortable"
893 // 2. Use a standard line height, 1.3. This option is useful for TUIs,
894 // particularly if they use box characters
895 // "line_height": "standard",
896 // 3. Use a custom line height.
897 // "line_height": {
898 // "custom": 2
899 // },
900 "line_height": "comfortable",
901 // Activate the python virtual environment, if one is found, in the
902 // terminal's working directory (as resolved by the working_directory
903 // setting). Set this to "off" to disable this behavior.
904 "detect_venv": {
905 "on": {
906 // Default directories to search for virtual environments, relative
907 // to the current working directory. We recommend overriding this
908 // in your project's settings, rather than globally.
909 "directories": [".env", "env", ".venv", "venv"],
910 // Can also be `csh`, `fish`, `nushell` and `power_shell`
911 "activate_script": "default"
912 }
913 },
914 "toolbar": {
915 // Whether to display the terminal title in its toolbar's breadcrumbs.
916 // Only shown if the terminal title is not empty.
917 //
918 // The shell running in the terminal needs to be configured to emit the title.
919 // Example: `echo -e "\e]2;New Title\007";`
920 "breadcrumbs": true
921 },
922 /// Scrollbar-related settings
923 "scrollbar": {
924 /// When to show the scrollbar in the terminal.
925 /// This setting can take five values:
926 ///
927 /// 1. null (default): Inherit editor settings
928 /// 2. Show the scrollbar if there's important information or
929 /// follow the system's configured behavior (default):
930 /// "auto"
931 /// 3. Match the system's configured behavior:
932 /// "system"
933 /// 4. Always show the scrollbar:
934 /// "always"
935 /// 5. Never show the scrollbar:
936 /// "never"
937 "show": null
938 }
939 // Set the terminal's font size. If this option is not included,
940 // the terminal will default to matching the buffer's font size.
941 // "font_size": 15,
942 // Set the terminal's font family. If this option is not included,
943 // the terminal will default to matching the buffer's font family.
944 // "font_family": "Zed Plex Mono",
945 // Set the terminal's font fallbacks. If this option is not included,
946 // the terminal will default to matching the buffer's font fallbacks.
947 // This will be merged with the platform's default font fallbacks
948 // "font_fallbacks": ["FiraCode Nerd Fonts"],
949 // Sets the maximum number of lines in the terminal's scrollback buffer.
950 // Default: 10_000, maximum: 100_000 (all bigger values set will be treated as 100_000), 0 disables the scrolling.
951 // Existing terminals will not pick up this change until they are recreated.
952 // "max_scroll_history_lines": 10000,
953 },
954 "code_actions_on_format": {},
955 /// Settings related to running tasks.
956 "tasks": {
957 "variables": {}
958 },
959 // An object whose keys are language names, and whose values
960 // are arrays of filenames or extensions of files that should
961 // use those languages.
962 //
963 // For example, to treat files like `foo.notjs` as JavaScript,
964 // and `Embargo.lock` as TOML:
965 //
966 // {
967 // "JavaScript": ["notjs"],
968 // "TOML": ["Embargo.lock"]
969 // }
970 //
971 "file_types": {
972 "Plain Text": ["txt"],
973 "JSONC": ["**/.zed/**/*.json", "**/zed/**/*.json", "**/Zed/**/*.json", "**/.vscode/**/*.json"],
974 "Shell Script": [".env.*"]
975 },
976 /// By default use a recent system version of node, or install our own.
977 /// You can override this to use a version of node that is not in $PATH with:
978 /// {
979 /// "node": {
980 /// "path": "/path/to/node"
981 /// "npm_path": "/path/to/npm" (defaults to node_path/../npm)
982 /// }
983 /// }
984 /// or to ensure Zed always downloads and installs an isolated version of node:
985 /// {
986 /// "node": {
987 /// "ignore_system_version": true,
988 /// }
989 /// NOTE: changing this setting currently requires restarting Zed.
990 "node": {},
991 // The extensions that Zed should automatically install on startup.
992 //
993 // If you don't want any of these extensions, add this field to your settings
994 // and change the value to `false`.
995 "auto_install_extensions": {
996 "html": true
997 },
998 // Different settings for specific languages.
999 "languages": {
1000 "Astro": {
1001 "language_servers": ["astro-language-server", "..."],
1002 "prettier": {
1003 "allowed": true,
1004 "plugins": ["prettier-plugin-astro"]
1005 }
1006 },
1007 "Blade": {
1008 "prettier": {
1009 "allowed": true
1010 }
1011 },
1012 "C": {
1013 "format_on_save": "off",
1014 "use_on_type_format": false,
1015 "prettier": {
1016 "allowed": false
1017 }
1018 },
1019 "C++": {
1020 "format_on_save": "off",
1021 "use_on_type_format": false,
1022 "prettier": {
1023 "allowed": false
1024 }
1025 },
1026 "CSS": {
1027 "prettier": {
1028 "allowed": true
1029 }
1030 },
1031 "Dart": {
1032 "tab_size": 2
1033 },
1034 "Diff": {
1035 "remove_trailing_whitespace_on_save": false,
1036 "ensure_final_newline_on_save": false
1037 },
1038 "Elixir": {
1039 "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
1040 },
1041 "Erlang": {
1042 "language_servers": ["erlang-ls", "!elp", "..."]
1043 },
1044 "Go": {
1045 "code_actions_on_format": {
1046 "source.organizeImports": true
1047 }
1048 },
1049 "GraphQL": {
1050 "prettier": {
1051 "allowed": true
1052 }
1053 },
1054 "HEEX": {
1055 "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
1056 },
1057 "HTML": {
1058 "prettier": {
1059 "allowed": true
1060 }
1061 },
1062 "Java": {
1063 "prettier": {
1064 "allowed": true,
1065 "plugins": ["prettier-plugin-java"]
1066 }
1067 },
1068 "JavaScript": {
1069 "language_servers": ["!typescript-language-server", "vtsls", "..."],
1070 "prettier": {
1071 "allowed": true
1072 }
1073 },
1074 "JSON": {
1075 "prettier": {
1076 "allowed": true
1077 }
1078 },
1079 "JSONC": {
1080 "prettier": {
1081 "allowed": true
1082 }
1083 },
1084 "Markdown": {
1085 "format_on_save": "off",
1086 "use_on_type_format": false,
1087 "prettier": {
1088 "allowed": true
1089 }
1090 },
1091 "PHP": {
1092 "language_servers": ["phpactor", "!intelephense", "..."],
1093 "prettier": {
1094 "allowed": true,
1095 "plugins": ["@prettier/plugin-php"],
1096 "parser": "php"
1097 }
1098 },
1099 "Ruby": {
1100 "language_servers": ["solargraph", "!ruby-lsp", "!rubocop", "..."]
1101 },
1102 "SCSS": {
1103 "prettier": {
1104 "allowed": true
1105 }
1106 },
1107 "SQL": {
1108 "prettier": {
1109 "allowed": true,
1110 "plugins": ["prettier-plugin-sql"]
1111 }
1112 },
1113 "Starlark": {
1114 "language_servers": ["starpls", "!buck2-lsp", "..."]
1115 },
1116 "Svelte": {
1117 "language_servers": ["svelte-language-server", "..."],
1118 "prettier": {
1119 "allowed": true,
1120 "plugins": ["prettier-plugin-svelte"]
1121 }
1122 },
1123 "TSX": {
1124 "language_servers": ["!typescript-language-server", "vtsls", "..."],
1125 "prettier": {
1126 "allowed": true
1127 }
1128 },
1129 "Twig": {
1130 "prettier": {
1131 "allowed": true
1132 }
1133 },
1134 "TypeScript": {
1135 "language_servers": ["!typescript-language-server", "vtsls", "..."],
1136 "prettier": {
1137 "allowed": true
1138 }
1139 },
1140 "Vue.js": {
1141 "language_servers": ["vue-language-server", "..."],
1142 "prettier": {
1143 "allowed": true
1144 }
1145 },
1146 "XML": {
1147 "prettier": {
1148 "allowed": true,
1149 "plugins": ["@prettier/plugin-xml"]
1150 }
1151 },
1152 "YAML": {
1153 "prettier": {
1154 "allowed": true
1155 }
1156 },
1157 "Zig": {
1158 "language_servers": ["zls", "..."]
1159 }
1160 },
1161 // Different settings for specific language models.
1162 "language_models": {
1163 "anthropic": {
1164 "version": "1",
1165 "api_url": "https://api.anthropic.com"
1166 },
1167 "google": {
1168 "api_url": "https://generativelanguage.googleapis.com"
1169 },
1170 "ollama": {
1171 "api_url": "http://localhost:11434"
1172 },
1173 "openai": {
1174 "version": "1",
1175 "api_url": "https://api.openai.com/v1"
1176 },
1177 "lmstudio": {
1178 "api_url": "http://localhost:1234/api/v0"
1179 },
1180 "deepseek": {
1181 "api_url": "https://api.deepseek.com"
1182 }
1183 },
1184 // Zed's Prettier integration settings.
1185 // Allows to enable/disable formatting with Prettier
1186 // and configure default Prettier, used when no project-level Prettier installation is found.
1187 "prettier": {
1188 // // Whether to consider prettier formatter or not when attempting to format a file.
1189 // "allowed": false,
1190 //
1191 // // Use regular Prettier json configuration.
1192 // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
1193 // // the project has no other Prettier installed.
1194 // "plugins": [],
1195 //
1196 // // Use regular Prettier json configuration.
1197 // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
1198 // // the project has no other Prettier installed.
1199 // "trailingComma": "es5",
1200 // "tabWidth": 4,
1201 // "semi": false,
1202 // "singleQuote": true
1203 },
1204 // LSP Specific settings.
1205 "lsp": {
1206 // Specify the LSP name as a key here.
1207 // "rust-analyzer": {
1208 // // These initialization options are merged into Zed's defaults
1209 // "initialization_options": {
1210 // "check": {
1211 // "command": "clippy" // rust-analyzer.check.command (default: "check")
1212 // }
1213 // }
1214 // }
1215 },
1216 // Jupyter settings
1217 "jupyter": {
1218 "enabled": true
1219 // Specify the language name as the key and the kernel name as the value.
1220 // "kernel_selections": {
1221 // "python": "conda-base"
1222 // "typescript": "deno"
1223 // }
1224 },
1225 // Vim settings
1226 "vim": {
1227 "toggle_relative_line_numbers": false,
1228 "use_system_clipboard": "always",
1229 "use_multiline_find": false,
1230 "use_smartcase_find": false,
1231 "highlight_on_yank_duration": 200,
1232 "custom_digraphs": {}
1233 },
1234 // The server to connect to. If the environment variable
1235 // ZED_SERVER_URL is set, it will override this setting.
1236 "server_url": "https://zed.dev",
1237 // Settings overrides to use when using Zed Preview.
1238 // Mostly useful for developers who are managing multiple instances of Zed.
1239 "preview": {
1240 // "theme": "Andromeda"
1241 },
1242 // Settings overrides to use when using Zed Nightly.
1243 // Mostly useful for developers who are managing multiple instances of Zed.
1244 "nightly": {
1245 // "theme": "Andromeda"
1246 },
1247 // Settings overrides to use when using Zed Stable.
1248 // Mostly useful for developers who are managing multiple instances of Zed.
1249 "stable": {
1250 // "theme": "Andromeda"
1251 },
1252 // Settings overrides to use when using Zed Dev.
1253 // Mostly useful for developers who are managing multiple instances of Zed.
1254 "dev": {
1255 // "theme": "Andromeda"
1256 },
1257 // Task-related settings.
1258 "task": {
1259 // Whether to show task status indicator in the status bar. Default: true
1260 "show_status_indicator": true
1261 },
1262 // Whether to show full labels in line indicator or short ones
1263 //
1264 // Values:
1265 // - `short`: "2 s, 15 l, 32 c"
1266 // - `long`: "2 selections, 15 lines, 32 characters"
1267 // Default: long
1268 "line_indicator_format": "long",
1269 // Set a proxy to use. The proxy protocol is specified by the URI scheme.
1270 //
1271 // Supported URI scheme: `http`, `https`, `socks4`, `socks4a`, `socks5`,
1272 // `socks5h`. `http` will be used when no scheme is specified.
1273 //
1274 // By default no proxy will be used, or Zed will try get proxy settings from
1275 // environment variables.
1276 //
1277 // Examples:
1278 // - "proxy": "socks5h://localhost:10808"
1279 // - "proxy": "http://127.0.0.1:10809"
1280 "proxy": null,
1281 // Set to configure aliases for the command palette.
1282 // When typing a query which is a key of this object, the value will be used instead.
1283 //
1284 // Examples:
1285 // {
1286 // "W": "workspace::Save"
1287 // }
1288 "command_aliases": {},
1289 // Whether to show user picture in titlebar.
1290 "show_user_picture": true,
1291 // ssh_connections is an array of ssh connections.
1292 // You can configure these from `project: Open Remote` in the command palette.
1293 // Zed's ssh support will pull configuration from your ~/.ssh too.
1294 // Examples:
1295 // [
1296 // {
1297 // "host": "example-box",
1298 // // "port": 22, "username": "test", "args": ["-i", "/home/user/.ssh/id_rsa"]
1299 // "projects": [
1300 // {
1301 // "paths": ["/home/user/code/zed"]
1302 // }
1303 // ]
1304 // }
1305 // ]
1306 "ssh_connections": [],
1307 // Configures context servers for use in the Assistant.
1308 "context_servers": {}
1309}