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 "edit_prediction_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 wrap guides (vertical rulers) in the editor.
172 // Setting this to true will show a guide at the 'preferred_line_length' value
173 // if 'soft_wrap' is set to 'preferred_line_length', and will show any
174 // additional guides as specified by the 'wrap_guides' setting.
175 "show_wrap_guides": true,
176 // Character counts at which to show wrap guides in the editor.
177 "wrap_guides": [],
178 // Hide the values of in variables from visual display in private files
179 "redact_private_values": false,
180 // The default number of lines to expand excerpts in the multibuffer by.
181 "expand_excerpt_lines": 3,
182 // Globs to match against file paths to determine if a file is private.
183 "private_files": ["**/.env*", "**/*.pem", "**/*.key", "**/*.cert", "**/*.crt", "**/secrets.yml"],
184 // Whether to use additional LSP queries to format (and amend) the code after
185 // every "trigger" symbol input, defined by LSP server capabilities.
186 "use_on_type_format": true,
187 // Whether to automatically add matching closing characters when typing
188 // opening parenthesis, bracket, brace, single or double quote characters.
189 // For example, when you type (, Zed will add a closing ) at the correct position.
190 "use_autoclose": true,
191 // Whether to automatically surround selected text when typing opening parenthesis,
192 // bracket, brace, single or double quote characters.
193 // For example, when you select text and type (, Zed will surround the text with ().
194 "use_auto_surround": true,
195 // Whether indentation of pasted content should be adjusted based on the context.
196 "auto_indent_on_paste": true,
197 // Controls how the editor handles the autoclosed characters.
198 // When set to `false`(default), skipping over and auto-removing of the closing characters
199 // happen only for auto-inserted characters.
200 // Otherwise(when `true`), the closing characters are always skipped over and auto-removed
201 // no matter how they were inserted.
202 "always_treat_brackets_as_autoclosed": false,
203 // Controls whether edit predictions are shown immediately (true)
204 // or manually by triggering `editor::ShowEditPrediction` (false).
205 "show_edit_predictions": true,
206 // Controls whether edit predictions are shown in a given language scope.
207 // Example: ["string", "comment"]
208 "edit_predictions_disabled_in": [],
209 // Whether to show tabs and spaces in the editor.
210 // This setting can take four values:
211 //
212 // 1. Draw tabs and spaces only for the selected text (default):
213 // "selection"
214 // 2. Do not draw any tabs or spaces:
215 // "none"
216 // 3. Draw all invisible symbols:
217 // "all"
218 // 4. Draw whitespaces at boundaries only:
219 // "boundary"
220 // For a whitespace to be on a boundary, any of the following conditions need to be met:
221 // - It is a tab
222 // - It is adjacent to an edge (start or end)
223 // - It is adjacent to a whitespace (left or right)
224 "show_whitespaces": "selection",
225 // Settings related to calls in Zed
226 "calls": {
227 // Join calls with the microphone live by default
228 "mute_on_join": false,
229 // Share your project when you are the first to join a channel
230 "share_on_join": false
231 },
232 // Toolbar related settings
233 "toolbar": {
234 // Whether to show breadcrumbs.
235 "breadcrumbs": true,
236 // Whether to show quick action buttons.
237 "quick_actions": true,
238 // Whether to show the Selections menu in the editor toolbar
239 "selections_menu": true
240 },
241 // Scrollbar related settings
242 "scrollbar": {
243 // When to show the scrollbar in the editor.
244 // This setting can take four values:
245 //
246 // 1. Show the scrollbar if there's important information or
247 // follow the system's configured behavior (default):
248 // "auto"
249 // 2. Match the system's configured behavior:
250 // "system"
251 // 3. Always show the scrollbar:
252 // "always"
253 // 4. Never show the scrollbar:
254 // "never"
255 "show": "auto",
256 // Whether to show cursor positions in the scrollbar.
257 "cursors": true,
258 // Whether to show git diff indicators in the scrollbar.
259 "git_diff": true,
260 // Whether to show buffer search results in the scrollbar.
261 "search_results": true,
262 // Whether to show selected symbol occurrences in the scrollbar.
263 "selected_symbol": true,
264 // Which diagnostic indicators to show in the scrollbar:
265 // - "none" or false: do not show diagnostics
266 // - "error": show only errors
267 // - "warning": show only errors and warnings
268 // - "information": show only errors, warnings, and information
269 // - "all" or true: show all diagnostics
270 "diagnostics": "all",
271 /// Forcefully enable or disable the scrollbar for each axis
272 "axes": {
273 /// When false, forcefully disables the horizontal scrollbar. Otherwise, obey other settings.
274 "horizontal": true,
275 /// When false, forcefully disables the vertical scrollbar. Otherwise, obey other settings.
276 "vertical": true
277 }
278 },
279 // Enable middle-click paste on Linux.
280 "middle_click_paste": true,
281 // What to do when multibuffer is double clicked in some of its excerpts
282 // (parts of singleton buffers).
283 // May take 2 values:
284 // 1. Behave as a regular buffer and select the whole word (default).
285 // "double_click_in_multibuffer": "select"
286 // 2. Open the excerpt clicked as a new buffer in the new tab.
287 // "double_click_in_multibuffer": "open",
288 // For the case of "open", regular selection behavior can be achieved by holding `alt` when double clicking.
289 "double_click_in_multibuffer": "select",
290 "gutter": {
291 // Whether to show line numbers in the gutter.
292 "line_numbers": true,
293 // Whether to show code action buttons in the gutter.
294 "code_actions": true,
295 // Whether to show runnables buttons in the gutter.
296 "runnables": true,
297 // Whether to show fold buttons in the gutter.
298 "folds": true
299 },
300 "indent_guides": {
301 /// Whether to show indent guides in the editor.
302 "enabled": true,
303 /// The width of the indent guides in pixels, between 1 and 10.
304 "line_width": 1,
305 /// The width of the active indent guide in pixels, between 1 and 10.
306 "active_line_width": 1,
307 /// Determines how indent guides are colored.
308 /// This setting can take the following three values:
309 ///
310 /// 1. "disabled"
311 /// 2. "fixed"
312 /// 3. "indent_aware"
313 "coloring": "fixed",
314 /// Determines how indent guide backgrounds are colored.
315 /// This setting can take the following two values:
316 ///
317 /// 1. "disabled"
318 /// 2. "indent_aware"
319 "background_coloring": "disabled"
320 },
321 // Whether the editor will scroll beyond the last line.
322 "scroll_beyond_last_line": "one_page",
323 // The number of lines to keep above/below the cursor when scrolling.
324 "vertical_scroll_margin": 3,
325 // Whether to scroll when clicking near the edge of the visible text area.
326 "autoscroll_on_clicks": false,
327 // The number of characters to keep on either side when scrolling with the mouse
328 "horizontal_scroll_margin": 5,
329 // Scroll sensitivity multiplier. This multiplier is applied
330 // to both the horizontal and vertical delta values while scrolling.
331 "scroll_sensitivity": 1.0,
332 "relative_line_numbers": false,
333 // If 'search_wrap' is disabled, search result do not wrap around the end of the file.
334 "search_wrap": true,
335 // Search options to enable by default when opening new project and buffer searches.
336 "search": {
337 "whole_word": false,
338 "case_sensitive": false,
339 "include_ignored": false,
340 "regex": false
341 },
342 // When to populate a new search's query based on the text under the cursor.
343 // This setting can take the following three values:
344 //
345 // 1. Always populate the search query with the word under the cursor (default).
346 // "always"
347 // 2. Only populate the search query when there is text selected
348 // "selection"
349 // 3. Never populate the search query
350 // "never"
351 "seed_search_query_from_cursor": "always",
352 "use_smartcase_search": false,
353 // Inlay hint related settings
354 "inlay_hints": {
355 // Global switch to toggle hints on and off, switched off by default.
356 "enabled": false,
357 // Toggle certain types of hints on and off, all switched on by default.
358 "show_type_hints": true,
359 "show_parameter_hints": true,
360 // Corresponds to null/None LSP hint type value.
361 "show_other_hints": true,
362 // Whether to show a background for inlay hints.
363 //
364 // If set to `true`, the background will use the `hint.background` color from the current theme.
365 "show_background": false,
366 // Time to wait after editing the buffer, before requesting the hints,
367 // set to 0 to disable debouncing.
368 "edit_debounce_ms": 700,
369 // Time to wait after scrolling the buffer, before requesting the hints,
370 // set to 0 to disable debouncing.
371 "scroll_debounce_ms": 50
372 },
373 "project_panel": {
374 // Whether to show the project panel button in the status bar
375 "button": true,
376 // Default width of the project panel.
377 "default_width": 240,
378 // Where to dock the project panel. Can be 'left' or 'right'.
379 "dock": "left",
380 // Spacing between worktree entries in the project panel. Can be 'comfortable' or 'standard'.
381 "entry_spacing": "comfortable",
382 // Whether to show file icons in the project panel.
383 "file_icons": true,
384 // Whether to show folder icons or chevrons for directories in the project panel.
385 "folder_icons": true,
386 // Whether to show the git status in the project panel.
387 "git_status": true,
388 // Amount of indentation for nested items.
389 "indent_size": 20,
390 // Whether to reveal it in the project panel automatically,
391 // when a corresponding project entry becomes active.
392 // Gitignored entries are never auto revealed.
393 "auto_reveal_entries": true,
394 // Whether to fold directories automatically and show compact folders
395 // (e.g. "a/b/c" ) when a directory has only one subdirectory inside.
396 "auto_fold_dirs": true,
397 /// Scrollbar-related settings
398 "scrollbar": {
399 /// When to show the scrollbar in the project panel.
400 /// This setting can take five values:
401 ///
402 /// 1. null (default): Inherit editor settings
403 /// 2. Show the scrollbar if there's important information or
404 /// follow the system's configured behavior (default):
405 /// "auto"
406 /// 3. Match the system's configured behavior:
407 /// "system"
408 /// 4. Always show the scrollbar:
409 /// "always"
410 /// 5. Never show the scrollbar:
411 /// "never"
412 "show": null
413 },
414 /// Which files containing diagnostic errors/warnings to mark in the project panel.
415 /// This setting can take the following three values:
416 ///
417 /// 1. Do not mark any files:
418 /// "off"
419 /// 2. Only mark files with errors:
420 /// "errors"
421 /// 3. Mark files with errors and warnings:
422 /// "all"
423 "show_diagnostics": "all",
424 // Settings related to indent guides in the project panel.
425 "indent_guides": {
426 // When to show indent guides in the project panel.
427 // This setting can take two values:
428 //
429 // 1. Always show indent guides:
430 // "always"
431 // 2. Never show indent guides:
432 // "never"
433 "show": "always"
434 }
435 },
436 "outline_panel": {
437 // Whether to show the outline panel button in the status bar
438 "button": true,
439 // Default width of the outline panel.
440 "default_width": 300,
441 // Where to dock the outline panel. Can be 'left' or 'right'.
442 "dock": "left",
443 // Whether to show file icons in the outline panel.
444 "file_icons": true,
445 // Whether to show folder icons or chevrons for directories in the outline panel.
446 "folder_icons": true,
447 // Whether to show the git status in the outline panel.
448 "git_status": true,
449 // Amount of indentation for nested items.
450 "indent_size": 20,
451 // Whether to reveal it in the outline panel automatically,
452 // when a corresponding outline entry becomes active.
453 // Gitignored entries are never auto revealed.
454 "auto_reveal_entries": true,
455 /// Whether to fold directories automatically
456 /// when a directory has only one directory inside.
457 "auto_fold_dirs": true,
458 // Settings related to indent guides in the outline panel.
459 "indent_guides": {
460 // When to show indent guides in the outline panel.
461 // This setting can take two values:
462 //
463 // 1. Always show indent guides:
464 // "always"
465 // 2. Never show indent guides:
466 // "never"
467 "show": "always"
468 },
469 /// Scrollbar-related settings
470 "scrollbar": {
471 /// When to show the scrollbar in the project panel.
472 /// This setting can take five values:
473 ///
474 /// 1. null (default): Inherit editor settings
475 /// 2. Show the scrollbar if there's important information or
476 /// follow the system's configured behavior (default):
477 /// "auto"
478 /// 3. Match the system's configured behavior:
479 /// "system"
480 /// 4. Always show the scrollbar:
481 /// "always"
482 /// 5. Never show the scrollbar:
483 /// "never"
484 "show": null
485 }
486 },
487 "collaboration_panel": {
488 // Whether to show the collaboration panel button in the status bar.
489 "button": true,
490 // Where to dock the collaboration panel. Can be 'left' or 'right'.
491 "dock": "left",
492 // Default width of the collaboration panel.
493 "default_width": 240
494 },
495 "chat_panel": {
496 // When to show the chat panel button in the status bar.
497 // Can be 'never', 'always', or 'when_in_call',
498 // or a boolean (interpreted as 'never'/'always').
499 "button": "when_in_call",
500 // Where to the chat panel. Can be 'left' or 'right'.
501 "dock": "right",
502 // Default width of the chat panel.
503 "default_width": 240
504 },
505 "git_panel": {
506 // Whether to show the git panel button in the status bar.
507 "button": true,
508 // Where to the git panel. Can be 'left' or 'right'.
509 "dock": "left",
510 // Default width of the git panel.
511 "default_width": 360,
512 // Style of the git status indicator in the panel.
513 //
514 // Default: icon
515 "status_style": "icon",
516 "scrollbar": {
517 // When to show the scrollbar in the git panel.
518 //
519 // Default: inherits editor scrollbar settings
520 "show": null
521 }
522 },
523 "message_editor": {
524 // Whether to automatically replace emoji shortcodes with emoji characters.
525 // For example: typing `:wave:` gets replaced with `👋`.
526 "auto_replace_emoji_shortcode": true
527 },
528 "notification_panel": {
529 // Whether to show the notification panel button in the status bar.
530 "button": true,
531 // Where to dock the notification panel. Can be 'left' or 'right'.
532 "dock": "right",
533 // Default width of the notification panel.
534 "default_width": 380
535 },
536 "assistant": {
537 // Version of this setting.
538 "version": "2",
539 // Whether the assistant is enabled.
540 "enabled": true,
541 // Whether to show the assistant panel button in the status bar.
542 "button": true,
543 // Where to dock the assistant panel. Can be 'left', 'right' or 'bottom'.
544 "dock": "right",
545 // Default width when the assistant is docked to the left or right.
546 "default_width": 640,
547 // Default height when the assistant is docked to the bottom.
548 "default_height": 320,
549 // The default model to use when creating new chats.
550 "default_model": {
551 // The provider to use.
552 "provider": "zed.dev",
553 // The model to use.
554 "model": "claude-3-5-sonnet"
555 }
556 },
557 // The settings for slash commands.
558 "slash_commands": {
559 // Settings for the `/docs` slash command.
560 "docs": {
561 // Whether `/docs` is enabled.
562 "enabled": false
563 },
564 // Settings for the `/project` slash command.
565 "project": {
566 // Whether `/project` is enabled.
567 "enabled": false
568 }
569 },
570 // Whether the screen sharing icon is shown in the os status bar.
571 "show_call_status_icon": true,
572 // Whether to use language servers to provide code intelligence.
573 "enable_language_server": true,
574 // Whether to perform linked edits of associated ranges, if the language server supports it.
575 // For example, when editing opening <html> tag, the contents of the closing </html> tag will be edited as well.
576 "linked_edits": true,
577 // The list of language servers to use (or disable) for all languages.
578 //
579 // This is typically customized on a per-language basis.
580 "language_servers": ["..."],
581 // When to automatically save edited buffers. This setting can
582 // take four values.
583 //
584 // 1. Never automatically save:
585 // "autosave": "off",
586 // 2. Save when changing focus away from the Zed window:
587 // "autosave": "on_window_change",
588 // 3. Save when changing focus away from a specific buffer:
589 // "autosave": "on_focus_change",
590 // 4. Save when idle for a certain amount of time:
591 // "autosave": { "after_delay": {"milliseconds": 500} },
592 "autosave": "off",
593 // Maximum number of tabs per pane. Unset for unlimited.
594 "max_tabs": null,
595 // Settings related to the editor's tab bar.
596 "tab_bar": {
597 // Whether or not to show the tab bar in the editor
598 "show": true,
599 // Whether or not to show the navigation history buttons.
600 "show_nav_history_buttons": true,
601 /// Whether or not to show the tab bar buttons.
602 "show_tab_bar_buttons": true
603 },
604 // Settings related to the editor's tabs
605 "tabs": {
606 // Show git status colors in the editor tabs.
607 "git_status": false,
608 // Position of the close button on the editor tabs.
609 "close_position": "right",
610 // Whether to show the file icon for a tab.
611 "file_icons": false,
612 // Whether to always show the close button on tabs.
613 "always_show_close_button": false,
614 // What to do after closing the current tab.
615 //
616 // 1. Activate the tab that was open previously (default)
617 // "history"
618 // 2. Activate the right neighbour tab if present
619 // "neighbour"
620 // 3. Activate the left neighbour tab if present
621 // "left_neighbour"
622 "activate_on_close": "history",
623 /// Which files containing diagnostic errors/warnings to mark in the tabs.
624 /// Diagnostics are only shown when file icons are also active.
625 /// This setting only works when can take the following three values:
626 ///
627 /// 1. Do not mark any files:
628 /// "off"
629 /// 2. Only mark files with errors:
630 /// "errors"
631 /// 3. Mark files with errors and warnings:
632 /// "all"
633 "show_diagnostics": "off"
634 },
635 // Settings related to preview tabs.
636 "preview_tabs": {
637 // Whether preview tabs should be enabled.
638 // Preview tabs allow you to open files in preview mode, where they close automatically
639 // when you switch to another file unless you explicitly pin them.
640 // This is useful for quickly viewing files without cluttering your workspace.
641 "enabled": true,
642 // Whether to open tabs in preview mode when selected from the file finder.
643 "enable_preview_from_file_finder": false,
644 // Whether a preview tab gets replaced when code navigation is used to navigate away from the tab.
645 "enable_preview_from_code_navigation": false
646 },
647 // Settings related to the file finder.
648 "file_finder": {
649 // Whether to show file icons in the file finder.
650 "file_icons": true,
651 // Determines how much space the file finder can take up in relation to the available window width.
652 // There are 5 possible width values:
653 //
654 // 1. Small: This value is essentially a fixed width.
655 // "modal_max_width": "small"
656 // 2. Medium:
657 // "modal_max_width": "medium"
658 // 3. Large:
659 // "modal_max_width": "large"
660 // 4. Extra Large:
661 // "modal_max_width": "xlarge"
662 // 5. Fullscreen: This value removes any horizontal padding, as it consumes the whole viewport width.
663 // "modal_max_width": "full"
664 //
665 // Default: small
666 "modal_max_width": "small"
667 },
668 // Whether or not to remove any trailing whitespace from lines of a buffer
669 // before saving it.
670 "remove_trailing_whitespace_on_save": true,
671 // Whether to start a new line with a comment when a previous line is a comment as well.
672 "extend_comment_on_newline": true,
673 // Whether or not to ensure there's a single newline at the end of a buffer
674 // when saving it.
675 "ensure_final_newline_on_save": true,
676 // Whether or not to perform a buffer format before saving
677 //
678 // Keep in mind, if the autosave with delay is enabled, format_on_save will be ignored
679 "format_on_save": "on",
680 // How to perform a buffer format. This setting can take 4 values:
681 //
682 // 1. Format code using the current language server:
683 // "formatter": "language_server"
684 // 2. Format code using an external command:
685 // "formatter": {
686 // "external": {
687 // "command": "prettier",
688 // "arguments": ["--stdin-filepath", "{buffer_path}"]
689 // }
690 // }
691 // 3. Format code using Zed's Prettier integration:
692 // "formatter": "prettier"
693 // 4. Default. Format files using Zed's Prettier integration (if applicable),
694 // or falling back to formatting via language server:
695 // "formatter": "auto"
696 "formatter": "auto",
697 // How to soft-wrap long lines of text.
698 // Possible values:
699 //
700 // 1. Prefer a single line generally, unless an overly long line is encountered.
701 // "soft_wrap": "none",
702 // "soft_wrap": "prefer_line", // (deprecated, same as "none")
703 // 2. Soft wrap lines that overflow the editor.
704 // "soft_wrap": "editor_width",
705 // 3. Soft wrap lines at the preferred line length.
706 // "soft_wrap": "preferred_line_length",
707 // 4. Soft wrap lines at the preferred line length or the editor width (whichever is smaller).
708 // "soft_wrap": "bounded",
709 "soft_wrap": "none",
710 // The column at which to soft-wrap lines, for buffers where soft-wrap
711 // is enabled.
712 "preferred_line_length": 80,
713 // Whether to indent lines using tab characters, as opposed to multiple
714 // spaces.
715 "hard_tabs": false,
716 // How many columns a tab should occupy.
717 "tab_size": 4,
718 // Control what info is collected by Zed.
719 "telemetry": {
720 // Send debug info like crash reports.
721 "diagnostics": true,
722 // Send anonymized usage data like what languages you're using Zed with.
723 "metrics": true
724 },
725 // Automatically update Zed. This setting may be ignored on Linux if
726 // installed through a package manager.
727 "auto_update": true,
728 // Diagnostics configuration.
729 "diagnostics": {
730 // Whether to show warnings or not by default.
731 "include_warnings": true
732 },
733 // Add files or globs of files that will be excluded by Zed entirely:
734 // they will be skipped during FS scan(s), file tree and file search
735 // will lack the corresponding file entries. Overrides `file_scan_inclusions`.
736 "file_scan_exclusions": [
737 "**/.git",
738 "**/.svn",
739 "**/.hg",
740 "**/.jj",
741 "**/CVS",
742 "**/.DS_Store",
743 "**/Thumbs.db",
744 "**/.classpath",
745 "**/.settings"
746 ],
747 // Add files or globs of files that will be included by Zed, even when
748 // ignored by git. This is useful for files that are not tracked by git,
749 // but are still important to your project. Note that globs that are
750 // overly broad can slow down Zed's file scanning. Overridden by `file_scan_exclusions`.
751 "file_scan_inclusions": [".env*"],
752 // Git gutter behavior configuration.
753 "git": {
754 // Control whether the git gutter is shown. May take 2 values:
755 // 1. Show the gutter
756 // "git_gutter": "tracked_files"
757 // 2. Hide the gutter
758 // "git_gutter": "hide"
759 "git_gutter": "tracked_files",
760 // Control whether the git blame information is shown inline,
761 // in the currently focused line.
762 "inline_blame": {
763 "enabled": true
764 // Sets a delay after which the inline blame information is shown.
765 // Delay is restarted with every cursor movement.
766 // "delay_ms": 600
767 //
768 // Whether or not to display the git commit summary on the same line.
769 // "show_commit_summary": false
770 //
771 // The minimum column number to show the inline blame information at
772 // "min_column": 0
773 }
774 },
775 // Configuration for how direnv configuration should be loaded. May take 2 values:
776 // 1. Load direnv configuration using `direnv export json` directly.
777 // "load_direnv": "direct"
778 // 2. Load direnv configuration through the shell hook, works for POSIX shells and fish.
779 // "load_direnv": "shell_hook"
780 "load_direnv": "direct",
781 "edit_predictions": {
782 // A list of globs representing files that edit predictions should be disabled for.
783 // There's a sensible default list of globs already included.
784 // Any addition to this list will be merged with the default list.
785 "disabled_globs": [
786 "**/.env*",
787 "**/*.pem",
788 "**/*.key",
789 "**/*.cert",
790 "**/*.crt",
791 "**/.dev.vars",
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 // "mode": "eager_preview"
798 // 2. Display inline when holding modifier key (alt by default).
799 // "mode": "auto"
800 "mode": "eager_preview"
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}