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": ["**/.env*", "**/*.pem", "**/*.key", "**/*.cert", "**/*.crt", "**/secrets.yml"]
780 },
781 // Settings specific to journaling
782 "journal": {
783 // The path of the directory where journal entries are stored
784 "path": "~",
785 // What format to display the hours in
786 // May take 2 values:
787 // 1. hour12
788 // 2. hour24
789 "hour_format": "hour12"
790 },
791 // Settings specific to the terminal
792 "terminal": {
793 // What shell to use when opening a terminal. May take 3 values:
794 // 1. Use the system's default terminal configuration in /etc/passwd
795 // "shell": "system"
796 // 2. A program:
797 // "shell": {
798 // "program": "sh"
799 // }
800 // 3. A program with arguments:
801 // "shell": {
802 // "with_arguments": {
803 // "program": "/bin/bash",
804 // "args": ["--login"]
805 // }
806 // }
807 "shell": "system",
808 // Where to dock terminals panel. Can be `left`, `right`, `bottom`.
809 "dock": "bottom",
810 // Default width when the terminal is docked to the left or right.
811 "default_width": 640,
812 // Default height when the terminal is docked to the bottom.
813 "default_height": 320,
814 // What working directory to use when launching the terminal.
815 // May take 4 values:
816 // 1. Use the current file's project directory. Will Fallback to the
817 // first project directory strategy if unsuccessful
818 // "working_directory": "current_project_directory"
819 // 2. Use the first project in this workspace's directory
820 // "working_directory": "first_project_directory"
821 // 3. Always use this platform's home directory (if we can find it)
822 // "working_directory": "always_home"
823 // 4. Always use a specific directory. This value will be shell expanded.
824 // If this path is not a valid directory the terminal will default to
825 // this platform's home directory (if we can find it)
826 // "working_directory": {
827 // "always": {
828 // "directory": "~/zed/projects/"
829 // }
830 // }
831 "working_directory": "current_project_directory",
832 // Set the cursor blinking behavior in the terminal.
833 // May take 3 values:
834 // 1. Never blink the cursor, ignoring the terminal mode
835 // "blinking": "off",
836 // 2. Default the cursor blink to off, but allow the terminal to
837 // set blinking
838 // "blinking": "terminal_controlled",
839 // 3. Always blink the cursor, ignoring the terminal mode
840 // "blinking": "on",
841 "blinking": "terminal_controlled",
842 // Default cursor shape for the terminal.
843 // 1. A block that surrounds the following character
844 // "block"
845 // 2. A vertical bar
846 // "bar"
847 // 3. An underline / underscore that runs along the following character
848 // "underline"
849 // 4. A box drawn around the following character
850 // "hollow"
851 //
852 // Default: not set, defaults to "block"
853 "cursor_shape": null,
854 // Set whether Alternate Scroll mode (code: ?1007) is active by default.
855 // Alternate Scroll mode converts mouse scroll events into up / down key
856 // presses when in the alternate screen (e.g. when running applications
857 // like vim or less). The terminal can still set and unset this mode.
858 // May take 2 values:
859 // 1. Default alternate scroll mode to on
860 // "alternate_scroll": "on",
861 // 2. Default alternate scroll mode to off
862 // "alternate_scroll": "off",
863 "alternate_scroll": "off",
864 // Set whether the option key behaves as the meta key.
865 // May take 2 values:
866 // 1. Rely on default platform handling of option key, on macOS
867 // this means generating certain unicode characters
868 // "option_as_meta": false,
869 // 2. Make the option keys behave as a 'meta' key, e.g. for emacs
870 // "option_as_meta": true,
871 "option_as_meta": false,
872 // Whether or not selecting text in the terminal will automatically
873 // copy to the system clipboard.
874 "copy_on_select": false,
875 // Whether to show the terminal button in the status bar
876 "button": true,
877 // Any key-value pairs added to this list will be added to the terminal's
878 // environment. Use `:` to separate multiple values.
879 "env": {
880 // "KEY": "value1:value2"
881 },
882 // Set the terminal's line height.
883 // May take 3 values:
884 // 1. Use a line height that's comfortable for reading, 1.618
885 // "line_height": "comfortable"
886 // 2. Use a standard line height, 1.3. This option is useful for TUIs,
887 // particularly if they use box characters
888 // "line_height": "standard",
889 // 3. Use a custom line height.
890 // "line_height": {
891 // "custom": 2
892 // },
893 "line_height": "comfortable",
894 // Activate the python virtual environment, if one is found, in the
895 // terminal's working directory (as resolved by the working_directory
896 // setting). Set this to "off" to disable this behavior.
897 "detect_venv": {
898 "on": {
899 // Default directories to search for virtual environments, relative
900 // to the current working directory. We recommend overriding this
901 // in your project's settings, rather than globally.
902 "directories": [".env", "env", ".venv", "venv"],
903 // Can also be `csh`, `fish`, `nushell` and `power_shell`
904 "activate_script": "default"
905 }
906 },
907 "toolbar": {
908 // Whether to display the terminal title in its toolbar's breadcrumbs.
909 // Only shown if the terminal title is not empty.
910 //
911 // The shell running in the terminal needs to be configured to emit the title.
912 // Example: `echo -e "\e]2;New Title\007";`
913 "breadcrumbs": true
914 },
915 /// Scrollbar-related settings
916 "scrollbar": {
917 /// When to show the scrollbar in the terminal.
918 /// This setting can take five values:
919 ///
920 /// 1. null (default): Inherit editor settings
921 /// 2. Show the scrollbar if there's important information or
922 /// follow the system's configured behavior (default):
923 /// "auto"
924 /// 3. Match the system's configured behavior:
925 /// "system"
926 /// 4. Always show the scrollbar:
927 /// "always"
928 /// 5. Never show the scrollbar:
929 /// "never"
930 "show": null
931 }
932 // Set the terminal's font size. If this option is not included,
933 // the terminal will default to matching the buffer's font size.
934 // "font_size": 15,
935 // Set the terminal's font family. If this option is not included,
936 // the terminal will default to matching the buffer's font family.
937 // "font_family": "Zed Plex Mono",
938 // Set the terminal's font fallbacks. If this option is not included,
939 // the terminal will default to matching the buffer's font fallbacks.
940 // This will be merged with the platform's default font fallbacks
941 // "font_fallbacks": ["FiraCode Nerd Fonts"],
942 // Sets the maximum number of lines in the terminal's scrollback buffer.
943 // Default: 10_000, maximum: 100_000 (all bigger values set will be treated as 100_000), 0 disables the scrolling.
944 // Existing terminals will not pick up this change until they are recreated.
945 // "max_scroll_history_lines": 10000,
946 },
947 "code_actions_on_format": {},
948 /// Settings related to running tasks.
949 "tasks": {
950 "variables": {}
951 },
952 // An object whose keys are language names, and whose values
953 // are arrays of filenames or extensions of files that should
954 // use those languages.
955 //
956 // For example, to treat files like `foo.notjs` as JavaScript,
957 // and `Embargo.lock` as TOML:
958 //
959 // {
960 // "JavaScript": ["notjs"],
961 // "TOML": ["Embargo.lock"]
962 // }
963 //
964 "file_types": {
965 "Plain Text": ["txt"],
966 "JSONC": ["**/.zed/**/*.json", "**/zed/**/*.json", "**/Zed/**/*.json", "**/.vscode/**/*.json"],
967 "Shell Script": [".env.*"]
968 },
969 /// By default use a recent system version of node, or install our own.
970 /// You can override this to use a version of node that is not in $PATH with:
971 /// {
972 /// "node": {
973 /// "path": "/path/to/node"
974 /// "npm_path": "/path/to/npm" (defaults to node_path/../npm)
975 /// }
976 /// }
977 /// or to ensure Zed always downloads and installs an isolated version of node:
978 /// {
979 /// "node": {
980 /// "ignore_system_version": true,
981 /// }
982 /// NOTE: changing this setting currently requires restarting Zed.
983 "node": {},
984 // The extensions that Zed should automatically install on startup.
985 //
986 // If you don't want any of these extensions, add this field to your settings
987 // and change the value to `false`.
988 "auto_install_extensions": {
989 "html": true
990 },
991 // Different settings for specific languages.
992 "languages": {
993 "Astro": {
994 "language_servers": ["astro-language-server", "..."],
995 "prettier": {
996 "allowed": true,
997 "plugins": ["prettier-plugin-astro"]
998 }
999 },
1000 "Blade": {
1001 "prettier": {
1002 "allowed": true
1003 }
1004 },
1005 "C": {
1006 "format_on_save": "off",
1007 "use_on_type_format": false,
1008 "prettier": {
1009 "allowed": false
1010 }
1011 },
1012 "C++": {
1013 "format_on_save": "off",
1014 "use_on_type_format": false,
1015 "prettier": {
1016 "allowed": false
1017 }
1018 },
1019 "CSS": {
1020 "prettier": {
1021 "allowed": true
1022 }
1023 },
1024 "Dart": {
1025 "tab_size": 2
1026 },
1027 "Diff": {
1028 "remove_trailing_whitespace_on_save": false,
1029 "ensure_final_newline_on_save": false
1030 },
1031 "Elixir": {
1032 "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
1033 },
1034 "Erlang": {
1035 "language_servers": ["erlang-ls", "!elp", "..."]
1036 },
1037 "Go": {
1038 "code_actions_on_format": {
1039 "source.organizeImports": true
1040 }
1041 },
1042 "GraphQL": {
1043 "prettier": {
1044 "allowed": true
1045 }
1046 },
1047 "HEEX": {
1048 "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
1049 },
1050 "HTML": {
1051 "prettier": {
1052 "allowed": true
1053 }
1054 },
1055 "Java": {
1056 "prettier": {
1057 "allowed": true,
1058 "plugins": ["prettier-plugin-java"]
1059 }
1060 },
1061 "JavaScript": {
1062 "language_servers": ["!typescript-language-server", "vtsls", "..."],
1063 "prettier": {
1064 "allowed": true
1065 }
1066 },
1067 "JSON": {
1068 "prettier": {
1069 "allowed": true
1070 }
1071 },
1072 "JSONC": {
1073 "prettier": {
1074 "allowed": true
1075 }
1076 },
1077 "Markdown": {
1078 "format_on_save": "off",
1079 "use_on_type_format": false,
1080 "prettier": {
1081 "allowed": true
1082 }
1083 },
1084 "PHP": {
1085 "language_servers": ["phpactor", "!intelephense", "..."],
1086 "prettier": {
1087 "allowed": true,
1088 "plugins": ["@prettier/plugin-php"],
1089 "parser": "php"
1090 }
1091 },
1092 "Ruby": {
1093 "language_servers": ["solargraph", "!ruby-lsp", "!rubocop", "..."]
1094 },
1095 "SCSS": {
1096 "prettier": {
1097 "allowed": true
1098 }
1099 },
1100 "SQL": {
1101 "prettier": {
1102 "allowed": true,
1103 "plugins": ["prettier-plugin-sql"]
1104 }
1105 },
1106 "Starlark": {
1107 "language_servers": ["starpls", "!buck2-lsp", "..."]
1108 },
1109 "Svelte": {
1110 "language_servers": ["svelte-language-server", "..."],
1111 "prettier": {
1112 "allowed": true,
1113 "plugins": ["prettier-plugin-svelte"]
1114 }
1115 },
1116 "TSX": {
1117 "language_servers": ["!typescript-language-server", "vtsls", "..."],
1118 "prettier": {
1119 "allowed": true
1120 }
1121 },
1122 "Twig": {
1123 "prettier": {
1124 "allowed": true
1125 }
1126 },
1127 "TypeScript": {
1128 "language_servers": ["!typescript-language-server", "vtsls", "..."],
1129 "prettier": {
1130 "allowed": true
1131 }
1132 },
1133 "Vue.js": {
1134 "language_servers": ["vue-language-server", "..."],
1135 "prettier": {
1136 "allowed": true
1137 }
1138 },
1139 "XML": {
1140 "prettier": {
1141 "allowed": true,
1142 "plugins": ["@prettier/plugin-xml"]
1143 }
1144 },
1145 "YAML": {
1146 "prettier": {
1147 "allowed": true
1148 }
1149 },
1150 "Zig": {
1151 "language_servers": ["zls", "..."]
1152 }
1153 },
1154 // Different settings for specific language models.
1155 "language_models": {
1156 "anthropic": {
1157 "version": "1",
1158 "api_url": "https://api.anthropic.com"
1159 },
1160 "google": {
1161 "api_url": "https://generativelanguage.googleapis.com"
1162 },
1163 "ollama": {
1164 "api_url": "http://localhost:11434"
1165 },
1166 "openai": {
1167 "version": "1",
1168 "api_url": "https://api.openai.com/v1"
1169 },
1170 "lmstudio": {
1171 "api_url": "http://localhost:1234/api/v0"
1172 },
1173 "deepseek": {
1174 "api_url": "https://api.deepseek.com"
1175 }
1176 },
1177 // Zed's Prettier integration settings.
1178 // Allows to enable/disable formatting with Prettier
1179 // and configure default Prettier, used when no project-level Prettier installation is found.
1180 "prettier": {
1181 // // Whether to consider prettier formatter or not when attempting to format a file.
1182 // "allowed": false,
1183 //
1184 // // Use regular Prettier json configuration.
1185 // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
1186 // // the project has no other Prettier installed.
1187 // "plugins": [],
1188 //
1189 // // Use regular Prettier json configuration.
1190 // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
1191 // // the project has no other Prettier installed.
1192 // "trailingComma": "es5",
1193 // "tabWidth": 4,
1194 // "semi": false,
1195 // "singleQuote": true
1196 },
1197 // LSP Specific settings.
1198 "lsp": {
1199 // Specify the LSP name as a key here.
1200 // "rust-analyzer": {
1201 // // These initialization options are merged into Zed's defaults
1202 // "initialization_options": {
1203 // "check": {
1204 // "command": "clippy" // rust-analyzer.check.command (default: "check")
1205 // }
1206 // }
1207 // }
1208 },
1209 // Jupyter settings
1210 "jupyter": {
1211 "enabled": true
1212 // Specify the language name as the key and the kernel name as the value.
1213 // "kernel_selections": {
1214 // "python": "conda-base"
1215 // "typescript": "deno"
1216 // }
1217 },
1218 // Vim settings
1219 "vim": {
1220 "toggle_relative_line_numbers": false,
1221 "use_system_clipboard": "always",
1222 "use_multiline_find": false,
1223 "use_smartcase_find": false,
1224 "highlight_on_yank_duration": 200,
1225 "custom_digraphs": {}
1226 },
1227 // The server to connect to. If the environment variable
1228 // ZED_SERVER_URL is set, it will override this setting.
1229 "server_url": "https://zed.dev",
1230 // Settings overrides to use when using Zed Preview.
1231 // Mostly useful for developers who are managing multiple instances of Zed.
1232 "preview": {
1233 // "theme": "Andromeda"
1234 },
1235 // Settings overrides to use when using Zed Nightly.
1236 // Mostly useful for developers who are managing multiple instances of Zed.
1237 "nightly": {
1238 // "theme": "Andromeda"
1239 },
1240 // Settings overrides to use when using Zed Stable.
1241 // Mostly useful for developers who are managing multiple instances of Zed.
1242 "stable": {
1243 // "theme": "Andromeda"
1244 },
1245 // Settings overrides to use when using Zed Dev.
1246 // Mostly useful for developers who are managing multiple instances of Zed.
1247 "dev": {
1248 // "theme": "Andromeda"
1249 },
1250 // Task-related settings.
1251 "task": {
1252 // Whether to show task status indicator in the status bar. Default: true
1253 "show_status_indicator": true
1254 },
1255 // Whether to show full labels in line indicator or short ones
1256 //
1257 // Values:
1258 // - `short`: "2 s, 15 l, 32 c"
1259 // - `long`: "2 selections, 15 lines, 32 characters"
1260 // Default: long
1261 "line_indicator_format": "long",
1262 // Set a proxy to use. The proxy protocol is specified by the URI scheme.
1263 //
1264 // Supported URI scheme: `http`, `https`, `socks4`, `socks4a`, `socks5`,
1265 // `socks5h`. `http` will be used when no scheme is specified.
1266 //
1267 // By default no proxy will be used, or Zed will try get proxy settings from
1268 // environment variables.
1269 //
1270 // Examples:
1271 // - "proxy": "socks5h://localhost:10808"
1272 // - "proxy": "http://127.0.0.1:10809"
1273 "proxy": null,
1274 // Set to configure aliases for the command palette.
1275 // When typing a query which is a key of this object, the value will be used instead.
1276 //
1277 // Examples:
1278 // {
1279 // "W": "workspace::Save"
1280 // }
1281 "command_aliases": {},
1282 // Whether to show user picture in titlebar.
1283 "show_user_picture": true,
1284 // ssh_connections is an array of ssh connections.
1285 // You can configure these from `project: Open Remote` in the command palette.
1286 // Zed's ssh support will pull configuration from your ~/.ssh too.
1287 // Examples:
1288 // [
1289 // {
1290 // "host": "example-box",
1291 // // "port": 22, "username": "test", "args": ["-i", "/home/user/.ssh/id_rsa"]
1292 // "projects": [
1293 // {
1294 // "paths": ["/home/user/code/zed"]
1295 // }
1296 // ]
1297 // }
1298 // ]
1299 "ssh_connections": [],
1300 // Configures context servers for use in the Assistant.
1301 "context_servers": {}
1302}