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