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