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