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