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