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