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