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