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