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