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