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 "icon_theme": "Zed (Default)",
14 // The name of a base set of key bindings to use.
15 // This setting can take six values, each named after another
16 // text editor:
17 //
18 // 1. "VSCode"
19 // 2. "Atom"
20 // 3. "JetBrains"
21 // 4. "None"
22 // 5. "SublimeText"
23 // 6. "TextMate"
24 "base_keymap": "VSCode",
25 // Features that can be globally enabled or disabled
26 "features": {
27 // Which edit prediction provider to use.
28 "edit_prediction_provider": "zed"
29 },
30 // The name of a font to use for rendering text in the editor
31 "buffer_font_family": "Zed Plex Mono",
32 // Set the buffer text's font fallbacks, this will be merged with
33 // the platform's default fallbacks.
34 "buffer_font_fallbacks": null,
35 // The OpenType features to enable for text in the editor.
36 "buffer_font_features": {
37 // Disable ligatures:
38 // "calt": false
39 },
40 // The default font size for text in the editor
41 "buffer_font_size": 15,
42 // The weight of the editor font in standard CSS units from 100 to 900.
43 "buffer_font_weight": 400,
44 // Set the buffer's line height.
45 // May take 3 values:
46 // 1. Use a line height that's comfortable for reading (1.618)
47 // "buffer_line_height": "comfortable"
48 // 2. Use a standard line height, (1.3)
49 // "buffer_line_height": "standard",
50 // 3. Use a custom line height
51 // "buffer_line_height": {
52 // "custom": 2
53 // },
54 "buffer_line_height": "comfortable",
55 // The name of a font to use for rendering text in the UI
56 // You can set this to ".SystemUIFont" to use the system font
57 "ui_font_family": "Zed Plex Sans",
58 // Set the UI's font fallbacks, this will be merged with the platform's
59 // default font fallbacks.
60 "ui_font_fallbacks": null,
61 // The OpenType features to enable for text in the UI
62 "ui_font_features": {
63 // Disable ligatures:
64 "calt": false
65 },
66 // The weight of the UI font in standard CSS units from 100 to 900.
67 "ui_font_weight": 400,
68 // The default font size for text in the UI
69 "ui_font_size": 16,
70 // The default font size for text in the agent panel
71 "agent_font_size": 16,
72 // How much to fade out unused code.
73 "unnecessary_code_fade": 0.3,
74 // Active pane styling settings.
75 "active_pane_modifiers": {
76 // The factor to grow the active pane by. Defaults to 1.0
77 // which gives the same size as all other panes.
78 "magnification": 1.0,
79 // Inset border size of the active pane, in pixels.
80 "border_size": 0.0,
81 // Opacity of the inactive panes. 0 means transparent, 1 means opaque.
82 // Values are clamped to the [0.0, 1.0] range.
83 "inactive_opacity": 1.0
84 },
85 // Layout mode of the bottom dock. Defaults to "contained"
86 "bottom_dock_layout": "contained",
87 // The direction that you want to split panes horizontally. Defaults to "up"
88 "pane_split_direction_horizontal": "up",
89 // The direction that you want to split panes horizontally. Defaults to "left"
90 "pane_split_direction_vertical": "left",
91 // Centered layout related settings.
92 "centered_layout": {
93 // The relative width of the left padding of the central pane from the
94 // workspace when the centered layout is used.
95 "left_padding": 0.2,
96 // The relative width of the right padding of the central pane from the
97 // workspace when the centered layout is used.
98 "right_padding": 0.2
99 },
100 // All settings related to the image viewer.
101 "image_viewer": {
102 // The unit for image file sizes.
103 // By default we're setting it to binary.
104 // The second option is decimal.
105 "unit": "binary"
106 },
107 // The key to use for adding multiple cursors
108 // Currently "alt" or "cmd_or_ctrl" (also aliased as
109 // "cmd" and "ctrl") are supported.
110 "multi_cursor_modifier": "alt",
111 // Whether to enable vim modes and key bindings.
112 "vim_mode": false,
113 // Whether to show the informational hover box when moving the mouse
114 // over symbols in the editor.
115 "hover_popover_enabled": true,
116 // Time to wait before showing the informational hover box
117 "hover_popover_delay": 350,
118 // Whether to confirm before quitting Zed.
119 "confirm_quit": false,
120 // Whether to restore last closed project when fresh Zed instance is opened.
121 "restore_on_startup": "last_session",
122 // Whether to attempt to restore previous file's state when opening it again.
123 // The state is stored per pane.
124 // When disabled, defaults are applied instead of the state restoration.
125 //
126 // E.g. for editors, selections, folds and scroll positions are restored, if the same file is closed and, later, opened again in the same pane.
127 // When disabled, a single selection in the very beginning of the file, zero scroll position and no folds state is used as a default.
128 //
129 // Default: true
130 "restore_on_file_reopen": true,
131 // Size of the drop target in the editor.
132 "drop_target_size": 0.2,
133 // Whether the window should be closed when using 'close active item' on a window with no tabs.
134 // May take 3 values:
135 // 1. Use the current platform's convention
136 // "when_closing_with_no_tabs": "platform_default"
137 // 2. Always close the window:
138 // "when_closing_with_no_tabs": "close_window",
139 // 3. Never close the window
140 // "when_closing_with_no_tabs": "keep_window_open",
141 "when_closing_with_no_tabs": "platform_default",
142 // What to do when the last window is closed.
143 // May take 2 values:
144 // 1. Use the current platform's convention
145 // "on_last_window_closed": "platform_default"
146 // 2. Always quit the application
147 // "on_last_window_closed": "quit_app",
148 "on_last_window_closed": "platform_default",
149 // Whether to use the system provided dialogs for Open and Save As.
150 // When set to false, Zed will use the built-in keyboard-first pickers.
151 "use_system_path_prompts": true,
152 // Whether to use the system provided dialogs for prompts, such as confirmation
153 // prompts.
154 // When set to false, Zed will use its built-in prompts. Note that on Linux,
155 // this option is ignored and Zed will always use the built-in prompts.
156 "use_system_prompts": true,
157 // Whether the cursor blinks in the editor.
158 "cursor_blink": true,
159 // Cursor shape for the default editor.
160 // 1. A vertical bar
161 // "bar"
162 // 2. A block that surrounds the following character
163 // "block"
164 // 3. An underline / underscore that runs along the following character
165 // "underline"
166 // 4. A box drawn around the following character
167 // "hollow"
168 //
169 // Default: not set, defaults to "bar"
170 "cursor_shape": null,
171 // Determines when the mouse cursor should be hidden in an editor or input box.
172 //
173 // 1. Never hide the mouse cursor:
174 // "never"
175 // 2. Hide only when typing:
176 // "on_typing"
177 // 3. Hide on both typing and cursor movement:
178 // "on_typing_and_movement"
179 "hide_mouse": "on_typing_and_movement",
180 // Determines how snippets are sorted relative to other completion items.
181 //
182 // 1. Place snippets at the top of the completion list:
183 // "top"
184 // 2. Place snippets normally without any preference:
185 // "inline"
186 // 3. Place snippets at the bottom of the completion list:
187 // "bottom"
188 "snippet_sort_order": "inline",
189 // How to highlight the current line in the editor.
190 //
191 // 1. Don't highlight the current line:
192 // "none"
193 // 2. Highlight the gutter area:
194 // "gutter"
195 // 3. Highlight the editor area:
196 // "line"
197 // 4. Highlight the full line (default):
198 // "all"
199 "current_line_highlight": "all",
200 // Whether to highlight all occurrences of the selected text in an editor.
201 "selection_highlight": true,
202 // The debounce delay before querying highlights from the language
203 // server based on the current cursor location.
204 "lsp_highlight_debounce": 75,
205 // Whether to pop the completions menu while typing in an editor without
206 // explicitly requesting it.
207 "show_completions_on_input": true,
208 // Whether to display inline and alongside documentation for items in the
209 // completions menu
210 "show_completion_documentation": true,
211 // Show method signatures in the editor, when inside parentheses.
212 "auto_signature_help": false,
213 // Whether to show the signature help after completion or a bracket pair inserted.
214 // If `auto_signature_help` is enabled, this setting will be treated as enabled also.
215 "show_signature_help_after_edits": false,
216 // What to do when go to definition yields no results.
217 //
218 // 1. Do nothing: `none`
219 // 2. Find references for the same symbol: `find_all_references` (default)
220 "go_to_definition_fallback": "find_all_references",
221 // Whether to show wrap guides (vertical rulers) in the editor.
222 // Setting this to true will show a guide at the 'preferred_line_length' value
223 // if 'soft_wrap' is set to 'preferred_line_length', and will show any
224 // additional guides as specified by the 'wrap_guides' setting.
225 "show_wrap_guides": true,
226 // Character counts at which to show wrap guides in the editor.
227 "wrap_guides": [],
228 // Hide the values of in variables from visual display in private files
229 "redact_private_values": false,
230 // The default number of lines to expand excerpts in the multibuffer by.
231 "expand_excerpt_lines": 5,
232 // Globs to match against file paths to determine if a file is private.
233 "private_files": ["**/.env*", "**/*.pem", "**/*.key", "**/*.cert", "**/*.crt", "**/secrets.yml"],
234 // Whether to use additional LSP queries to format (and amend) the code after
235 // every "trigger" symbol input, defined by LSP server capabilities.
236 "use_on_type_format": true,
237 // Whether to automatically add matching closing characters when typing
238 // opening parenthesis, bracket, brace, single or double quote characters.
239 // For example, when you type (, Zed will add a closing ) at the correct position.
240 "use_autoclose": true,
241 // Whether to automatically surround selected text when typing opening parenthesis,
242 // bracket, brace, single or double quote characters.
243 // For example, when you select text and type (, Zed will surround the text with ().
244 "use_auto_surround": true,
245 // Whether indentation of pasted content should be adjusted based on the context.
246 "auto_indent_on_paste": true,
247 // Controls how the editor handles the autoclosed characters.
248 // When set to `false`(default), skipping over and auto-removing of the closing characters
249 // happen only for auto-inserted characters.
250 // Otherwise(when `true`), the closing characters are always skipped over and auto-removed
251 // no matter how they were inserted.
252 "always_treat_brackets_as_autoclosed": false,
253 // Controls where the `editor::Rewrap` action is allowed in the current language scope.
254 //
255 // This setting can take three values:
256 //
257 // 1. Only allow rewrapping in comments:
258 // "in_comments"
259 // 2. Only allow rewrapping in the current selection(s):
260 // "in_selections"
261 // 3. Allow rewrapping anywhere:
262 // "anywhere"
263 //
264 // When using values other than `in_comments`, it is possible for the rewrapping to produce code
265 // that is syntactically invalid. Keep this in mind when selecting which behavior you would like
266 // to use.
267 //
268 // Note: This setting has no effect in Vim mode, as rewrap is already allowed everywhere.
269 "allow_rewrap": "in_comments",
270 // Controls whether edit predictions are shown immediately (true)
271 // or manually by triggering `editor::ShowEditPrediction` (false).
272 "show_edit_predictions": true,
273 // Controls whether edit predictions are shown in a given language scope.
274 // Example: ["string", "comment"]
275 "edit_predictions_disabled_in": [],
276 // Whether to show tabs and spaces in the editor.
277 // This setting can take four values:
278 //
279 // 1. Draw tabs and spaces only for the selected text (default):
280 // "selection"
281 // 2. Do not draw any tabs or spaces:
282 // "none"
283 // 3. Draw all invisible symbols:
284 // "all"
285 // 4. Draw whitespaces at boundaries only:
286 // "boundary"
287 // For a whitespace to be on a boundary, any of the following conditions need to be met:
288 // - It is a tab
289 // - It is adjacent to an edge (start or end)
290 // - It is adjacent to a whitespace (left or right)
291 "show_whitespaces": "selection",
292 // Settings related to calls in Zed
293 "calls": {
294 // Join calls with the microphone live by default
295 "mute_on_join": false,
296 // Share your project when you are the first to join a channel
297 "share_on_join": false
298 },
299 // Toolbar related settings
300 "toolbar": {
301 // Whether to show breadcrumbs.
302 "breadcrumbs": true,
303 // Whether to show quick action buttons.
304 "quick_actions": true,
305 // Whether to show the Selections menu in the editor toolbar.
306 "selections_menu": true,
307 // Whether to show agent review buttons in the editor toolbar.
308 "agent_review": true
309 },
310 // Titlebar related settings
311 "title_bar": {
312 // Whether to show the branch icon beside branch switcher in the titlebar.
313 "show_branch_icon": false,
314 // Whether to show onboarding banners in the titlebar.
315 "show_onboarding_banner": true,
316 // Whether to show user picture in the titlebar.
317 "show_user_picture": true
318 },
319 // Scrollbar related settings
320 "scrollbar": {
321 // When to show the scrollbar in the editor.
322 // This setting can take four values:
323 //
324 // 1. Show the scrollbar if there's important information or
325 // follow the system's configured behavior (default):
326 // "auto"
327 // 2. Match the system's configured behavior:
328 // "system"
329 // 3. Always show the scrollbar:
330 // "always"
331 // 4. Never show the scrollbar:
332 // "never"
333 "show": "auto",
334 // Whether to show cursor positions in the scrollbar.
335 "cursors": true,
336 // Whether to show git diff indicators in the scrollbar.
337 "git_diff": true,
338 // Whether to show buffer search results in the scrollbar.
339 "search_results": true,
340 // Whether to show selected text occurrences in the scrollbar.
341 "selected_text": true,
342 // Whether to show selected symbol occurrences in the scrollbar.
343 "selected_symbol": true,
344 // Which diagnostic indicators to show in the scrollbar:
345 // - "none" or false: do not show diagnostics
346 // - "error": show only errors
347 // - "warning": show only errors and warnings
348 // - "information": show only errors, warnings, and information
349 // - "all" or true: show all diagnostics
350 "diagnostics": "all",
351 // Forcefully enable or disable the scrollbar for each axis
352 "axes": {
353 // When false, forcefully disables the horizontal scrollbar. Otherwise, obey other settings.
354 "horizontal": true,
355 // When false, forcefully disables the vertical scrollbar. Otherwise, obey other settings.
356 "vertical": true
357 }
358 },
359 // Minimap related settings
360 "minimap": {
361 // When to show the minimap in the editor.
362 // This setting can take three values:
363 // 1. Show the minimap if the editor's scrollbar is visible:
364 // "auto"
365 // 2. Always show the minimap:
366 // "always"
367 // 3. Never show the minimap:
368 // "never" (default)
369 "show": "never",
370 // When to show the minimap thumb.
371 // This setting can take two values:
372 // 1. Show the minimap thumb if the mouse is over the minimap:
373 // "hover"
374 // 2. Always show the minimap thumb:
375 // "always" (default)
376 "thumb": "always",
377 // How the minimap thumb border should look.
378 // This setting can take five values:
379 // 1. Display a border on all sides of the thumb:
380 // "thumb_border": "full"
381 // 2. Display a border on all sides except the left side of the thumb:
382 // "thumb_border": "left_open" (default)
383 // 3. Display a border on all sides except the right side of the thumb:
384 // "thumb_border": "right_open"
385 // 4. Display a border only on the left side of the thumb:
386 // "thumb_border": "left_only"
387 // 5. Display the thumb without any border:
388 // "thumb_border": "none"
389 "thumb_border": "left_open",
390 // How to highlight the current line in the minimap.
391 // This setting can take the following values:
392 //
393 // 1. `null` to inherit the editor `current_line_highlight` setting (default)
394 // 2. "line" or "all" to highlight the current line in the minimap.
395 // 3. "gutter" or "none" to not highlight the current line in the minimap.
396 "current_line_highlight": null,
397 // The width of the minimap in pixels.
398 "width": 100,
399 // The font size of the minimap in pixels.
400 "font_size": 2
401 },
402 // Enable middle-click paste on Linux.
403 "middle_click_paste": true,
404 // What to do when multibuffer is double clicked in some of its excerpts
405 // (parts of singleton buffers).
406 // May take 2 values:
407 // 1. Behave as a regular buffer and select the whole word (default).
408 // "double_click_in_multibuffer": "select"
409 // 2. Open the excerpt clicked as a new buffer in the new tab.
410 // "double_click_in_multibuffer": "open",
411 // For the case of "open", regular selection behavior can be achieved by holding `alt` when double clicking.
412 "double_click_in_multibuffer": "select",
413 "gutter": {
414 // Whether to show line numbers in the gutter.
415 "line_numbers": true,
416 // Whether to show runnables buttons in the gutter.
417 "runnables": true,
418 // Whether to show breakpoints in the gutter.
419 "breakpoints": true,
420 // Whether to show fold buttons in the gutter.
421 "folds": true
422 },
423 "indent_guides": {
424 // Whether to show indent guides in the editor.
425 "enabled": true,
426 // The width of the indent guides in pixels, between 1 and 10.
427 "line_width": 1,
428 // The width of the active indent guide in pixels, between 1 and 10.
429 "active_line_width": 1,
430 // Determines how indent guides are colored.
431 // This setting can take the following three values:
432 //
433 // 1. "disabled"
434 // 2. "fixed"
435 // 3. "indent_aware"
436 "coloring": "fixed",
437 // Determines how indent guide backgrounds are colored.
438 // This setting can take the following two values:
439 //
440 // 1. "disabled"
441 // 2. "indent_aware"
442 "background_coloring": "disabled"
443 },
444 // Whether the editor will scroll beyond the last line.
445 "scroll_beyond_last_line": "one_page",
446 // The number of lines to keep above/below the cursor when scrolling.
447 "vertical_scroll_margin": 3,
448 // Whether to scroll when clicking near the edge of the visible text area.
449 "autoscroll_on_clicks": false,
450 // The number of characters to keep on either side when scrolling with the mouse
451 "horizontal_scroll_margin": 5,
452 // Scroll sensitivity multiplier. This multiplier is applied
453 // to both the horizontal and vertical delta values while scrolling.
454 "scroll_sensitivity": 1.0,
455 "relative_line_numbers": false,
456 // If 'search_wrap' is disabled, search result do not wrap around the end of the file.
457 "search_wrap": true,
458 // Search options to enable by default when opening new project and buffer searches.
459 "search": {
460 "whole_word": false,
461 "case_sensitive": false,
462 "include_ignored": false,
463 "regex": false
464 },
465 // When to populate a new search's query based on the text under the cursor.
466 // This setting can take the following three values:
467 //
468 // 1. Always populate the search query with the word under the cursor (default).
469 // "always"
470 // 2. Only populate the search query when there is text selected
471 // "selection"
472 // 3. Never populate the search query
473 // "never"
474 "seed_search_query_from_cursor": "always",
475 // When enabled, automatically adjusts search case sensitivity based on your query.
476 // If your search query contains any uppercase letters, the search becomes case-sensitive;
477 // if it contains only lowercase letters, the search becomes case-insensitive.
478 "use_smartcase_search": false,
479 // Inlay hint related settings
480 "inlay_hints": {
481 // Global switch to toggle hints on and off, switched off by default.
482 "enabled": false,
483 // Toggle certain types of hints on and off, all switched on by default.
484 "show_type_hints": true,
485 "show_parameter_hints": true,
486 // Corresponds to null/None LSP hint type value.
487 "show_other_hints": true,
488 // Whether to show a background for inlay hints.
489 //
490 // If set to `true`, the background will use the `hint.background` color from the current theme.
491 "show_background": false,
492 // Time to wait after editing the buffer, before requesting the hints,
493 // set to 0 to disable debouncing.
494 "edit_debounce_ms": 700,
495 // Time to wait after scrolling the buffer, before requesting the hints,
496 // set to 0 to disable debouncing.
497 "scroll_debounce_ms": 50,
498 // A set of modifiers which, when pressed, will toggle the visibility of inlay hints.
499 // If the set if empty or not all the modifiers specified are pressed, inlay hints will not be toggled.
500 "toggle_on_modifiers_press": {
501 "control": false,
502 "shift": false,
503 "alt": false,
504 "platform": false,
505 "function": false
506 }
507 },
508 "project_panel": {
509 // Whether to show the project panel button in the status bar
510 "button": true,
511 // Whether to hide the gitignore entries in the project panel.
512 "hide_gitignore": false,
513 // Default width of the project panel.
514 "default_width": 240,
515 // Where to dock the project panel. Can be 'left' or 'right'.
516 "dock": "left",
517 // Spacing between worktree entries in the project panel. Can be 'comfortable' or 'standard'.
518 "entry_spacing": "comfortable",
519 // Whether to show file icons in the project panel.
520 "file_icons": true,
521 // Whether to show folder icons or chevrons for directories in the project panel.
522 "folder_icons": true,
523 // Whether to show the git status in the project panel.
524 "git_status": true,
525 // Amount of indentation for nested items.
526 "indent_size": 20,
527 // Whether to reveal it in the project panel automatically,
528 // when a corresponding project entry becomes active.
529 // Gitignored entries are never auto revealed.
530 "auto_reveal_entries": true,
531 // Whether to fold directories automatically and show compact folders
532 // (e.g. "a/b/c" ) when a directory has only one subdirectory inside.
533 "auto_fold_dirs": true,
534 // Scrollbar-related settings
535 "scrollbar": {
536 // When to show the scrollbar in the project panel.
537 // This setting can take five values:
538 //
539 // 1. null (default): Inherit editor settings
540 // 2. Show the scrollbar if there's important information or
541 // follow the system's configured behavior (default):
542 // "auto"
543 // 3. Match the system's configured behavior:
544 // "system"
545 // 4. Always show the scrollbar:
546 // "always"
547 // 5. Never show the scrollbar:
548 // "never"
549 "show": null
550 },
551 // Which files containing diagnostic errors/warnings to mark in the project panel.
552 // This setting can take the following three values:
553 //
554 // 1. Do not mark any files:
555 // "off"
556 // 2. Only mark files with errors:
557 // "errors"
558 // 3. Mark files with errors and warnings:
559 // "all"
560 "show_diagnostics": "all",
561 // Settings related to indent guides in the project panel.
562 "indent_guides": {
563 // When to show indent guides in the project panel.
564 // This setting can take two values:
565 //
566 // 1. Always show indent guides:
567 // "always"
568 // 2. Never show indent guides:
569 // "never"
570 "show": "always"
571 }
572 },
573 "outline_panel": {
574 // Whether to show the outline panel button in the status bar
575 "button": true,
576 // Default width of the outline panel.
577 "default_width": 300,
578 // Where to dock the outline panel. Can be 'left' or 'right'.
579 "dock": "left",
580 // Whether to show file icons in the outline panel.
581 "file_icons": true,
582 // Whether to show folder icons or chevrons for directories in the outline panel.
583 "folder_icons": true,
584 // Whether to show the git status in the outline panel.
585 "git_status": true,
586 // Amount of indentation for nested items.
587 "indent_size": 20,
588 // Whether to reveal it in the outline panel automatically,
589 // when a corresponding outline entry becomes active.
590 // Gitignored entries are never auto revealed.
591 "auto_reveal_entries": true,
592 // Whether to fold directories automatically
593 // when a directory has only one directory inside.
594 "auto_fold_dirs": true,
595 // Settings related to indent guides in the outline panel.
596 "indent_guides": {
597 // When to show indent guides in the outline panel.
598 // This setting can take two values:
599 //
600 // 1. Always show indent guides:
601 // "always"
602 // 2. Never show indent guides:
603 // "never"
604 "show": "always"
605 },
606 // Scrollbar-related settings
607 "scrollbar": {
608 // When to show the scrollbar in the project panel.
609 // This setting can take five values:
610 //
611 // 1. null (default): Inherit editor settings
612 // 2. Show the scrollbar if there's important information or
613 // follow the system's configured behavior (default):
614 // "auto"
615 // 3. Match the system's configured behavior:
616 // "system"
617 // 4. Always show the scrollbar:
618 // "always"
619 // 5. Never show the scrollbar:
620 // "never"
621 "show": null
622 }
623 },
624 "collaboration_panel": {
625 // Whether to show the collaboration panel button in the status bar.
626 "button": true,
627 // Where to dock the collaboration panel. Can be 'left' or 'right'.
628 "dock": "left",
629 // Default width of the collaboration panel.
630 "default_width": 240
631 },
632 "chat_panel": {
633 // When to show the chat panel button in the status bar.
634 // Can be 'never', 'always', or 'when_in_call',
635 // or a boolean (interpreted as 'never'/'always').
636 "button": "when_in_call",
637 // Where to the chat panel. Can be 'left' or 'right'.
638 "dock": "right",
639 // Default width of the chat panel.
640 "default_width": 240
641 },
642 "git_panel": {
643 // Whether to show the git panel button in the status bar.
644 "button": true,
645 // Where to show the git panel. Can be 'left' or 'right'.
646 "dock": "left",
647 // Default width of the git panel.
648 "default_width": 360,
649 // Style of the git status indicator in the panel.
650 //
651 // Default: icon
652 "status_style": "icon",
653 // What branch name to use if init.defaultBranch
654 // is not set
655 //
656 // Default: main
657 "fallback_branch_name": "main",
658 // Whether to sort entries in the panel by path
659 // or by status (the default).
660 //
661 // Default: false
662 "sort_by_path": false,
663 "scrollbar": {
664 // When to show the scrollbar in the git panel.
665 //
666 // Default: inherits editor scrollbar settings
667 "show": null
668 }
669 },
670 "message_editor": {
671 // Whether to automatically replace emoji shortcodes with emoji characters.
672 // For example: typing `:wave:` gets replaced with `👋`.
673 "auto_replace_emoji_shortcode": true
674 },
675 "notification_panel": {
676 // Whether to show the notification panel button in the status bar.
677 "button": true,
678 // Where to dock the notification panel. Can be 'left' or 'right'.
679 "dock": "right",
680 // Default width of the notification panel.
681 "default_width": 380
682 },
683 "agent": {
684 // Version of this setting.
685 "version": "2",
686 // Whether the agent is enabled.
687 "enabled": true,
688 /// What completion mode to start new threads in, if available. Can be 'normal' or 'max'.
689 "preferred_completion_mode": "normal",
690 // Whether to show the agent panel button in the status bar.
691 "button": true,
692 // Where to dock the agent panel. Can be 'left', 'right' or 'bottom'.
693 "dock": "right",
694 // Default width when the agent panel is docked to the left or right.
695 "default_width": 640,
696 // Default height when the agent panel is docked to the bottom.
697 "default_height": 320,
698 // The default model to use when creating new threads.
699 "default_model": {
700 // The provider to use.
701 "provider": "zed.dev",
702 // The model to use.
703 "model": "claude-3-7-sonnet-latest"
704 },
705 // The model to use when applying edits from the agent.
706 "editor_model": {
707 // The provider to use.
708 "provider": "zed.dev",
709 // The model to use.
710 "model": "claude-3-7-sonnet-latest"
711 },
712 // Additional parameters for language model requests. When making a request to a model, parameters will be taken
713 // from the last entry in this list that matches the model's provider and name. In each entry, both provider
714 // and model are optional, so that you can specify parameters for either one.
715 "model_parameters": [
716 // To set parameters for all requests to OpenAI models:
717 // {
718 // "provider": "openai",
719 // "temperature": 0.5
720 // }
721 //
722 // To set parameters for all requests in general:
723 // {
724 // "temperature": 0
725 // }
726 //
727 // To set parameters for a specific provider and model:
728 // {
729 // "provider": "zed.dev",
730 // "model": "claude-3-7-sonnet-latest",
731 // "temperature": 1.0
732 // }
733 ],
734 // When enabled, the agent can run potentially destructive actions without asking for your confirmation.
735 "always_allow_tool_actions": false,
736 // When enabled, the agent will stream edits.
737 "stream_edits": false,
738 // When enabled, agent edits will be displayed in single-file editors for review
739 "single_file_review": true,
740 "default_profile": "write",
741 "profiles": {
742 "write": {
743 "name": "Write",
744 "enable_all_context_servers": true,
745 "tools": {
746 "copy_path": true,
747 "create_directory": true,
748 "create_file": true,
749 "delete_path": true,
750 "diagnostics": true,
751 "edit_file": true,
752 "fetch": true,
753 "list_directory": true,
754 "move_path": true,
755 "now": true,
756 "find_path": true,
757 "read_file": true,
758 "grep": true,
759 "terminal": true,
760 "thinking": true,
761 "web_search": true
762 }
763 },
764 "ask": {
765 "name": "Ask",
766 // We don't know which of the context server tools are safe for the "Ask" profile, so we don't enable them by default.
767 // "enable_all_context_servers": true,
768 "tools": {
769 "contents": true,
770 "diagnostics": true,
771 "fetch": true,
772 "list_directory": true,
773 "now": true,
774 "find_path": true,
775 "read_file": true,
776 "open": true,
777 "grep": true,
778 "thinking": true,
779 "web_search": true
780 }
781 },
782 "minimal": {
783 "name": "Minimal",
784 "enable_all_context_servers": false,
785 "tools": {}
786 }
787 },
788 // Where to show notifications when the agent has either completed
789 // its response, or else needs confirmation before it can run a
790 // tool action.
791 // "primary_screen" - Show the notification only on your primary screen (default)
792 // "all_screens" - Show these notifications on all screens
793 // "never" - Never show these notifications
794 "notify_when_agent_waiting": "primary_screen"
795 },
796 // The settings for slash commands.
797 "slash_commands": {
798 // Settings for the `/docs` slash command.
799 "docs": {
800 // Whether `/docs` is enabled.
801 "enabled": false
802 },
803 // Settings for the `/project` slash command.
804 "project": {
805 // Whether `/project` is enabled.
806 "enabled": false
807 }
808 },
809 // Whether the screen sharing icon is shown in the os status bar.
810 "show_call_status_icon": true,
811 // Whether to use language servers to provide code intelligence.
812 "enable_language_server": true,
813 // Whether to perform linked edits of associated ranges, if the language server supports it.
814 // For example, when editing opening <html> tag, the contents of the closing </html> tag will be edited as well.
815 "linked_edits": true,
816 // The list of language servers to use (or disable) for all languages.
817 //
818 // This is typically customized on a per-language basis.
819 "language_servers": ["..."],
820 // When to automatically save edited buffers. This setting can
821 // take four values.
822 //
823 // 1. Never automatically save:
824 // "autosave": "off",
825 // 2. Save when changing focus away from the Zed window:
826 // "autosave": "on_window_change",
827 // 3. Save when changing focus away from a specific buffer:
828 // "autosave": "on_focus_change",
829 // 4. Save when idle for a certain amount of time:
830 // "autosave": { "after_delay": {"milliseconds": 500} },
831 "autosave": "off",
832 // Maximum number of tabs per pane. Unset for unlimited.
833 "max_tabs": null,
834 // Settings related to the editor's tab bar.
835 "tab_bar": {
836 // Whether or not to show the tab bar in the editor
837 "show": true,
838 // Whether or not to show the navigation history buttons.
839 "show_nav_history_buttons": true,
840 // Whether or not to show the tab bar buttons.
841 "show_tab_bar_buttons": true
842 },
843 // Settings related to the editor's tabs
844 "tabs": {
845 // Show git status colors in the editor tabs.
846 "git_status": false,
847 // Position of the close button on the editor tabs.
848 // One of: ["right", "left", "hidden"]
849 "close_position": "right",
850 // Whether to show the file icon for a tab.
851 "file_icons": false,
852 // Controls the appearance behavior of the tab's close button.
853 //
854 // 1. Show it just upon hovering the tab. (default)
855 // "hover"
856 // 2. Show it persistently.
857 // "always"
858 // 3. Never show it, even if hovering it.
859 // "hidden"
860 "show_close_button": "hover",
861 // What to do after closing the current tab.
862 //
863 // 1. Activate the tab that was open previously (default)
864 // "history"
865 // 2. Activate the right neighbour tab if present
866 // "neighbour"
867 // 3. Activate the left neighbour tab if present
868 // "left_neighbour"
869 "activate_on_close": "history",
870 // Which files containing diagnostic errors/warnings to mark in the tabs.
871 // Diagnostics are only shown when file icons are also active.
872 // This setting only works when can take the following three values:
873 //
874 // 1. Do not mark any files:
875 // "off"
876 // 2. Only mark files with errors:
877 // "errors"
878 // 3. Mark files with errors and warnings:
879 // "all"
880 "show_diagnostics": "off"
881 },
882 // Settings related to preview tabs.
883 "preview_tabs": {
884 // Whether preview tabs should be enabled.
885 // Preview tabs allow you to open files in preview mode, where they close automatically
886 // when you switch to another file unless you explicitly pin them.
887 // This is useful for quickly viewing files without cluttering your workspace.
888 "enabled": true,
889 // Whether to open tabs in preview mode when selected from the file finder.
890 "enable_preview_from_file_finder": false,
891 // Whether a preview tab gets replaced when code navigation is used to navigate away from the tab.
892 "enable_preview_from_code_navigation": false
893 },
894 // Settings related to the file finder.
895 "file_finder": {
896 // Whether to show file icons in the file finder.
897 "file_icons": true,
898 // Determines how much space the file finder can take up in relation to the available window width.
899 // There are 5 possible width values:
900 //
901 // 1. Small: This value is essentially a fixed width.
902 // "modal_max_width": "small"
903 // 2. Medium:
904 // "modal_max_width": "medium"
905 // 3. Large:
906 // "modal_max_width": "large"
907 // 4. Extra Large:
908 // "modal_max_width": "xlarge"
909 // 5. Fullscreen: This value removes any horizontal padding, as it consumes the whole viewport width.
910 // "modal_max_width": "full"
911 //
912 // Default: small
913 "modal_max_width": "small",
914 // Determines whether the file finder should skip focus for the active file in search results.
915 // There are 2 possible values:
916 //
917 // 1. true: When searching for files, if the currently active file appears as the first result,
918 // auto-focus will skip it and focus the second result instead.
919 // "skip_focus_for_active_in_search": true
920 //
921 // 2. false: When searching for files, the first result will always receive focus,
922 // even if it's the currently active file.
923 // "skip_focus_for_active_in_search": false
924 //
925 // Default: true
926 "skip_focus_for_active_in_search": true
927 },
928 // Whether or not to remove any trailing whitespace from lines of a buffer
929 // before saving it.
930 "remove_trailing_whitespace_on_save": true,
931 // Whether to start a new line with a comment when a previous line is a comment as well.
932 "extend_comment_on_newline": true,
933 // Removes any lines containing only whitespace at the end of the file and
934 // ensures just one newline at the end.
935 "ensure_final_newline_on_save": true,
936 // Whether or not to perform a buffer format before saving
937 //
938 // Keep in mind, if the autosave with delay is enabled, format_on_save will be ignored
939 "format_on_save": "on",
940 // How to perform a buffer format. This setting can take 4 values:
941 //
942 // 1. Format code using the current language server:
943 // "formatter": "language_server"
944 // 2. Format code using an external command:
945 // "formatter": {
946 // "external": {
947 // "command": "prettier",
948 // "arguments": ["--stdin-filepath", "{buffer_path}"]
949 // }
950 // }
951 // 3. Format code using Zed's Prettier integration:
952 // "formatter": "prettier"
953 // 4. Default. Format files using Zed's Prettier integration (if applicable),
954 // or falling back to formatting via language server:
955 // "formatter": "auto"
956 "formatter": "auto",
957 // How to soft-wrap long lines of text.
958 // Possible values:
959 //
960 // 1. Prefer a single line generally, unless an overly long line is encountered.
961 // "soft_wrap": "none",
962 // "soft_wrap": "prefer_line", // (deprecated, same as "none")
963 // 2. Soft wrap lines that overflow the editor.
964 // "soft_wrap": "editor_width",
965 // 3. Soft wrap lines at the preferred line length.
966 // "soft_wrap": "preferred_line_length",
967 // 4. Soft wrap lines at the preferred line length or the editor width (whichever is smaller).
968 // "soft_wrap": "bounded",
969 "soft_wrap": "none",
970 // The column at which to soft-wrap lines, for buffers where soft-wrap
971 // is enabled.
972 "preferred_line_length": 80,
973 // Whether to indent lines using tab characters, as opposed to multiple
974 // spaces.
975 "hard_tabs": false,
976 // How many columns a tab should occupy.
977 "tab_size": 4,
978 // What debuggers are preferred by default for all languages.
979 "debuggers": [],
980 // Control what info is collected by Zed.
981 "telemetry": {
982 // Send debug info like crash reports.
983 "diagnostics": true,
984 // Send anonymized usage data like what languages you're using Zed with.
985 "metrics": true
986 },
987 // Automatically update Zed. This setting may be ignored on Linux if
988 // installed through a package manager.
989 "auto_update": true,
990 // Diagnostics configuration.
991 "diagnostics": {
992 // Whether to show warnings or not by default.
993 "include_warnings": true,
994 // Settings for inline diagnostics
995 "inline": {
996 // Whether to show diagnostics inline or not
997 "enabled": false,
998 // The delay in milliseconds to show inline diagnostics after the
999 // last diagnostic update.
1000 "update_debounce_ms": 150,
1001 // The amount of padding between the end of the source line and the start
1002 // of the inline diagnostic in units of em widths.
1003 "padding": 4,
1004 // The minimum column to display inline diagnostics. This setting can be
1005 // used to horizontally align inline diagnostics at some column. Lines
1006 // longer than this value will still push diagnostics further to the right.
1007 "min_column": 0,
1008 // The minimum severity of the diagnostics to show inline.
1009 // Shows all diagnostics when not specified.
1010 "max_severity": null
1011 },
1012 "cargo": {
1013 // When enabled, Zed disables rust-analyzer's check on save and starts to query
1014 // Cargo diagnostics separately.
1015 "fetch_cargo_diagnostics": false
1016 }
1017 },
1018 // Files or globs of files that will be excluded by Zed entirely. They will be skipped during file
1019 // scans, file searches, and not be displayed in the project file tree. Takes precedence over `file_scan_inclusions`.
1020 "file_scan_exclusions": [
1021 "**/.git",
1022 "**/.svn",
1023 "**/.hg",
1024 "**/.jj",
1025 "**/CVS",
1026 "**/.DS_Store",
1027 "**/Thumbs.db",
1028 "**/.classpath",
1029 "**/.settings"
1030 ],
1031 // Files or globs of files that will be included by Zed, even when ignored by git. This is useful
1032 // for files that are not tracked by git, but are still important to your project. Note that globs
1033 // that are overly broad can slow down Zed's file scanning. `file_scan_exclusions` takes
1034 // precedence over these inclusions.
1035 "file_scan_inclusions": [".env*"],
1036 // Git gutter behavior configuration.
1037 "git": {
1038 // Control whether the git gutter is shown. May take 2 values:
1039 // 1. Show the gutter
1040 // "git_gutter": "tracked_files"
1041 // 2. Hide the gutter
1042 // "git_gutter": "hide"
1043 "git_gutter": "tracked_files",
1044 // Control whether the git blame information is shown inline,
1045 // in the currently focused line.
1046 "inline_blame": {
1047 "enabled": true
1048 // Sets a delay after which the inline blame information is shown.
1049 // Delay is restarted with every cursor movement.
1050 // "delay_ms": 600
1051 //
1052 // Whether or not to display the git commit summary on the same line.
1053 // "show_commit_summary": false
1054 //
1055 // The minimum column number to show the inline blame information at
1056 // "min_column": 0
1057 },
1058 // How git hunks are displayed visually in the editor.
1059 // This setting can take two values:
1060 //
1061 // 1. Show unstaged hunks filled and staged hunks hollow:
1062 // "hunk_style": "staged_hollow"
1063 // 2. Show unstaged hunks hollow and staged hunks filled:
1064 // "hunk_style": "unstaged_hollow"
1065 "hunk_style": "staged_hollow"
1066 },
1067 // The list of custom Git hosting providers.
1068 "git_hosting_providers": [
1069 // {
1070 // "provider": "github",
1071 // "name": "BigCorp GitHub",
1072 // "base_url": "https://code.big-corp.com"
1073 // }
1074 ],
1075 // Configuration for how direnv configuration should be loaded. May take 2 values:
1076 // 1. Load direnv configuration using `direnv export json` directly.
1077 // "load_direnv": "direct"
1078 // 2. Load direnv configuration through the shell hook, works for POSIX shells and fish.
1079 // "load_direnv": "shell_hook"
1080 "load_direnv": "direct",
1081 "edit_predictions": {
1082 // A list of globs representing files that edit predictions should be disabled for.
1083 // There's a sensible default list of globs already included.
1084 // Any addition to this list will be merged with the default list.
1085 // Globs are matched relative to the worktree root,
1086 // except when starting with a slash (/) or equivalent in Windows.
1087 "disabled_globs": ["**/.env*", "**/*.pem", "**/*.key", "**/*.cert", "**/*.crt", "**/.dev.vars", "**/secrets.yml"],
1088 // When to show edit predictions previews in buffer.
1089 // This setting takes two possible values:
1090 // 1. Display predictions inline when there are no language server completions available.
1091 // "mode": "eager"
1092 // 2. Display predictions inline only when holding a modifier key (alt by default).
1093 // "mode": "subtle"
1094 "mode": "eager",
1095 // Whether edit predictions are enabled when editing text threads.
1096 // This setting has no effect if globally disabled.
1097 "enabled_in_text_threads": true
1098 },
1099 // Settings specific to journaling
1100 "journal": {
1101 // The path of the directory where journal entries are stored
1102 "path": "~",
1103 // What format to display the hours in
1104 // May take 2 values:
1105 // 1. hour12
1106 // 2. hour24
1107 "hour_format": "hour12"
1108 },
1109 // Settings specific to the terminal
1110 "terminal": {
1111 // What shell to use when opening a terminal. May take 3 values:
1112 // 1. Use the system's default terminal configuration in /etc/passwd
1113 // "shell": "system"
1114 // 2. A program:
1115 // "shell": {
1116 // "program": "sh"
1117 // }
1118 // 3. A program with arguments:
1119 // "shell": {
1120 // "with_arguments": {
1121 // "program": "/bin/bash",
1122 // "args": ["--login"]
1123 // }
1124 // }
1125 "shell": "system",
1126 // Where to dock terminals panel. Can be `left`, `right`, `bottom`.
1127 "dock": "bottom",
1128 // Default width when the terminal is docked to the left or right.
1129 "default_width": 640,
1130 // Default height when the terminal is docked to the bottom.
1131 "default_height": 320,
1132 // What working directory to use when launching the terminal.
1133 // May take 4 values:
1134 // 1. Use the current file's project directory. Will Fallback to the
1135 // first project directory strategy if unsuccessful
1136 // "working_directory": "current_project_directory"
1137 // 2. Use the first project in this workspace's directory
1138 // "working_directory": "first_project_directory"
1139 // 3. Always use this platform's home directory (if we can find it)
1140 // "working_directory": "always_home"
1141 // 4. Always use a specific directory. This value will be shell expanded.
1142 // If this path is not a valid directory the terminal will default to
1143 // this platform's home directory (if we can find it)
1144 // "working_directory": {
1145 // "always": {
1146 // "directory": "~/zed/projects/"
1147 // }
1148 // }
1149 "working_directory": "current_project_directory",
1150 // Set the cursor blinking behavior in the terminal.
1151 // May take 3 values:
1152 // 1. Never blink the cursor, ignoring the terminal mode
1153 // "blinking": "off",
1154 // 2. Default the cursor blink to off, but allow the terminal to
1155 // set blinking
1156 // "blinking": "terminal_controlled",
1157 // 3. Always blink the cursor, ignoring the terminal mode
1158 // "blinking": "on",
1159 "blinking": "terminal_controlled",
1160 // Default cursor shape for the terminal.
1161 // 1. A block that surrounds the following character
1162 // "block"
1163 // 2. A vertical bar
1164 // "bar"
1165 // 3. An underline / underscore that runs along the following character
1166 // "underline"
1167 // 4. A box drawn around the following character
1168 // "hollow"
1169 //
1170 // Default: not set, defaults to "block"
1171 "cursor_shape": null,
1172 // Set whether Alternate Scroll mode (code: ?1007) is active by default.
1173 // Alternate Scroll mode converts mouse scroll events into up / down key
1174 // presses when in the alternate screen (e.g. when running applications
1175 // like vim or less). The terminal can still set and unset this mode.
1176 // May take 2 values:
1177 // 1. Default alternate scroll mode to on
1178 // "alternate_scroll": "on",
1179 // 2. Default alternate scroll mode to off
1180 // "alternate_scroll": "off",
1181 "alternate_scroll": "on",
1182 // Set whether the option key behaves as the meta key.
1183 // May take 2 values:
1184 // 1. Rely on default platform handling of option key, on macOS
1185 // this means generating certain unicode characters
1186 // "option_as_meta": false,
1187 // 2. Make the option keys behave as a 'meta' key, e.g. for emacs
1188 // "option_as_meta": true,
1189 "option_as_meta": false,
1190 // Whether or not selecting text in the terminal will automatically
1191 // copy to the system clipboard.
1192 "copy_on_select": false,
1193 // Whether to show the terminal button in the status bar
1194 "button": true,
1195 // Any key-value pairs added to this list will be added to the terminal's
1196 // environment. Use `:` to separate multiple values.
1197 "env": {
1198 // "KEY": "value1:value2"
1199 },
1200 // Set the terminal's line height.
1201 // May take 3 values:
1202 // 1. Use a line height that's comfortable for reading, 1.618
1203 // "line_height": "comfortable"
1204 // 2. Use a standard line height, 1.3. This option is useful for TUIs,
1205 // particularly if they use box characters
1206 // "line_height": "standard",
1207 // 3. Use a custom line height.
1208 // "line_height": {
1209 // "custom": 2
1210 // },
1211 "line_height": "comfortable",
1212 // Activate the python virtual environment, if one is found, in the
1213 // terminal's working directory (as resolved by the working_directory
1214 // setting). Set this to "off" to disable this behavior.
1215 "detect_venv": {
1216 "on": {
1217 // Default directories to search for virtual environments, relative
1218 // to the current working directory. We recommend overriding this
1219 // in your project's settings, rather than globally.
1220 "directories": [".env", "env", ".venv", "venv"],
1221 // Can also be `csh`, `fish`, `nushell` and `power_shell`
1222 "activate_script": "default"
1223 }
1224 },
1225 "toolbar": {
1226 // Whether to display the terminal title in its toolbar's breadcrumbs.
1227 // Only shown if the terminal title is not empty.
1228 //
1229 // The shell running in the terminal needs to be configured to emit the title.
1230 // Example: `echo -e "\e]2;New Title\007";`
1231 "breadcrumbs": true
1232 },
1233 // Scrollbar-related settings
1234 "scrollbar": {
1235 // When to show the scrollbar in the terminal.
1236 // This setting can take five values:
1237 //
1238 // 1. null (default): Inherit editor settings
1239 // 2. Show the scrollbar if there's important information or
1240 // follow the system's configured behavior (default):
1241 // "auto"
1242 // 3. Match the system's configured behavior:
1243 // "system"
1244 // 4. Always show the scrollbar:
1245 // "always"
1246 // 5. Never show the scrollbar:
1247 // "never"
1248 "show": null
1249 }
1250 // Set the terminal's font size. If this option is not included,
1251 // the terminal will default to matching the buffer's font size.
1252 // "font_size": 15,
1253 // Set the terminal's font family. If this option is not included,
1254 // the terminal will default to matching the buffer's font family.
1255 // "font_family": "Zed Plex Mono",
1256 // Set the terminal's font fallbacks. If this option is not included,
1257 // the terminal will default to matching the buffer's font fallbacks.
1258 // This will be merged with the platform's default font fallbacks
1259 // "font_fallbacks": ["FiraCode Nerd Fonts"],
1260 // Sets the maximum number of lines in the terminal's scrollback buffer.
1261 // Default: 10_000, maximum: 100_000 (all bigger values set will be treated as 100_000), 0 disables the scrolling.
1262 // Existing terminals will not pick up this change until they are recreated.
1263 // "max_scroll_history_lines": 10000,
1264 },
1265 "code_actions_on_format": {},
1266 // Settings related to running tasks.
1267 "tasks": {
1268 "variables": {},
1269 "enabled": true
1270 },
1271 // An object whose keys are language names, and whose values
1272 // are arrays of filenames or extensions of files that should
1273 // use those languages.
1274 //
1275 // For example, to treat files like `foo.notjs` as JavaScript,
1276 // and `Embargo.lock` as TOML:
1277 //
1278 // {
1279 // "JavaScript": ["notjs"],
1280 // "TOML": ["Embargo.lock"]
1281 // }
1282 //
1283 "file_types": {
1284 "JSONC": ["**/.zed/**/*.json", "**/zed/**/*.json", "**/Zed/**/*.json", "**/.vscode/**/*.json"],
1285 "Shell Script": [".env.*"]
1286 },
1287 // By default use a recent system version of node, or install our own.
1288 // You can override this to use a version of node that is not in $PATH with:
1289 // {
1290 // "node": {
1291 // "path": "/path/to/node"
1292 // "npm_path": "/path/to/npm" (defaults to node_path/../npm)
1293 // }
1294 // }
1295 // or to ensure Zed always downloads and installs an isolated version of node:
1296 // {
1297 // "node": {
1298 // "ignore_system_version": true,
1299 // }
1300 // NOTE: changing this setting currently requires restarting Zed.
1301 "node": {},
1302 // The extensions that Zed should automatically install on startup.
1303 //
1304 // If you don't want any of these extensions, add this field to your settings
1305 // and change the value to `false`.
1306 "auto_install_extensions": {
1307 "html": true
1308 },
1309 // Controls how completions are processed for this language.
1310 "completions": {
1311 // Controls how words are completed.
1312 // For large documents, not all words may be fetched for completion.
1313 //
1314 // May take 3 values:
1315 // 1. "enabled"
1316 // Always fetch document's words for completions along with LSP completions.
1317 // 2. "fallback"
1318 // Only if LSP response errors or times out, use document's words to show completions.
1319 // 3. "disabled"
1320 // Never fetch or complete document's words for completions.
1321 // (Word-based completions can still be queried via a separate action)
1322 //
1323 // Default: fallback
1324 "words": "fallback",
1325 // Whether to fetch LSP completions or not.
1326 //
1327 // Default: true
1328 "lsp": true,
1329 // When fetching LSP completions, determines how long to wait for a response of a particular server.
1330 // When set to 0, waits indefinitely.
1331 //
1332 // Default: 0
1333 "lsp_fetch_timeout_ms": 0,
1334 // Controls what range to replace when accepting LSP completions.
1335 //
1336 // When LSP servers give an `InsertReplaceEdit` completion, they provides two ranges: `insert` and `replace`. Usually, `insert`
1337 // contains the word prefix before your cursor and `replace` contains the whole word.
1338 //
1339 // Effectively, this setting just changes whether Zed will use the received range for `insert` or `replace`, so the results may
1340 // differ depending on the underlying LSP server.
1341 //
1342 // Possible values:
1343 // 1. "insert"
1344 // Replaces text before the cursor, using the `insert` range described in the LSP specification.
1345 // 2. "replace"
1346 // Replaces text before and after the cursor, using the `replace` range described in the LSP specification.
1347 // 3. "replace_subsequence"
1348 // Behaves like `"replace"` if the text that would be replaced is a subsequence of the completion text,
1349 // and like `"insert"` otherwise.
1350 // 4. "replace_suffix"
1351 // Behaves like `"replace"` if the text after the cursor is a suffix of the completion, and like
1352 // `"insert"` otherwise.
1353 "lsp_insert_mode": "replace_suffix"
1354 },
1355 // Different settings for specific languages.
1356 "languages": {
1357 "Astro": {
1358 "language_servers": ["astro-language-server", "..."],
1359 "prettier": {
1360 "allowed": true,
1361 "plugins": ["prettier-plugin-astro"]
1362 }
1363 },
1364 "Blade": {
1365 "prettier": {
1366 "allowed": true
1367 }
1368 },
1369 "C": {
1370 "format_on_save": "off",
1371 "use_on_type_format": false,
1372 "prettier": {
1373 "allowed": false
1374 }
1375 },
1376 "C++": {
1377 "format_on_save": "off",
1378 "use_on_type_format": false,
1379 "prettier": {
1380 "allowed": false
1381 }
1382 },
1383 "CSS": {
1384 "prettier": {
1385 "allowed": true
1386 }
1387 },
1388 "Dart": {
1389 "tab_size": 2
1390 },
1391 "Diff": {
1392 "show_edit_predictions": false,
1393 "remove_trailing_whitespace_on_save": false,
1394 "ensure_final_newline_on_save": false
1395 },
1396 "Elixir": {
1397 "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
1398 },
1399 "Elm": {
1400 "tab_size": 4
1401 },
1402 "Erlang": {
1403 "language_servers": ["erlang-ls", "!elp", "..."]
1404 },
1405 "Git Commit": {
1406 "allow_rewrap": "anywhere"
1407 },
1408 "Go": {
1409 "code_actions_on_format": {
1410 "source.organizeImports": true
1411 }
1412 },
1413 "GraphQL": {
1414 "prettier": {
1415 "allowed": true
1416 }
1417 },
1418 "HEEX": {
1419 "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
1420 },
1421 "HTML": {
1422 "prettier": {
1423 "allowed": true
1424 }
1425 },
1426 "Java": {
1427 "prettier": {
1428 "allowed": true,
1429 "plugins": ["prettier-plugin-java"]
1430 }
1431 },
1432 "JavaScript": {
1433 "language_servers": ["!typescript-language-server", "vtsls", "..."],
1434 "prettier": {
1435 "allowed": true
1436 }
1437 },
1438 "JSON": {
1439 "prettier": {
1440 "allowed": true
1441 }
1442 },
1443 "JSONC": {
1444 "prettier": {
1445 "allowed": true
1446 }
1447 },
1448 "LaTeX": {
1449 "format_on_save": "on",
1450 "formatter": "language_server",
1451 "language_servers": ["texlab", "..."],
1452 "prettier": {
1453 "allowed": false
1454 }
1455 },
1456 "Markdown": {
1457 "format_on_save": "off",
1458 "use_on_type_format": false,
1459 "allow_rewrap": "anywhere",
1460 "soft_wrap": "editor_width",
1461 "prettier": {
1462 "allowed": true
1463 }
1464 },
1465 "PHP": {
1466 "language_servers": ["phpactor", "!intelephense", "..."],
1467 "prettier": {
1468 "allowed": true,
1469 "plugins": ["@prettier/plugin-php"],
1470 "parser": "php"
1471 }
1472 },
1473 "Plain Text": {
1474 "allow_rewrap": "anywhere"
1475 },
1476 "Ruby": {
1477 "language_servers": ["solargraph", "!ruby-lsp", "!rubocop", "..."]
1478 },
1479 "SCSS": {
1480 "prettier": {
1481 "allowed": true
1482 }
1483 },
1484 "SQL": {
1485 "prettier": {
1486 "allowed": true,
1487 "plugins": ["prettier-plugin-sql"]
1488 }
1489 },
1490 "Starlark": {
1491 "language_servers": ["starpls", "!buck2-lsp", "..."]
1492 },
1493 "Svelte": {
1494 "language_servers": ["svelte-language-server", "..."],
1495 "prettier": {
1496 "allowed": true,
1497 "plugins": ["prettier-plugin-svelte"]
1498 }
1499 },
1500 "TSX": {
1501 "language_servers": ["!typescript-language-server", "vtsls", "..."],
1502 "prettier": {
1503 "allowed": true
1504 }
1505 },
1506 "Twig": {
1507 "prettier": {
1508 "allowed": true
1509 }
1510 },
1511 "TypeScript": {
1512 "language_servers": ["!typescript-language-server", "vtsls", "..."],
1513 "prettier": {
1514 "allowed": true
1515 }
1516 },
1517 "Vue.js": {
1518 "language_servers": ["vue-language-server", "..."],
1519 "prettier": {
1520 "allowed": true
1521 }
1522 },
1523 "XML": {
1524 "prettier": {
1525 "allowed": true,
1526 "plugins": ["@prettier/plugin-xml"]
1527 }
1528 },
1529 "YAML": {
1530 "prettier": {
1531 "allowed": true
1532 }
1533 },
1534 "Zig": {
1535 "language_servers": ["zls", "..."]
1536 }
1537 },
1538 // Different settings for specific language models.
1539 "language_models": {
1540 "anthropic": {
1541 "version": "1",
1542 "api_url": "https://api.anthropic.com"
1543 },
1544 "google": {
1545 "api_url": "https://generativelanguage.googleapis.com"
1546 },
1547 "ollama": {
1548 "api_url": "http://localhost:11434"
1549 },
1550 "openai": {
1551 "version": "1",
1552 "api_url": "https://api.openai.com/v1"
1553 },
1554 "lmstudio": {
1555 "api_url": "http://localhost:1234/api/v0"
1556 },
1557 "deepseek": {
1558 "api_url": "https://api.deepseek.com"
1559 },
1560 "mistral": {
1561 "api_url": "https://api.mistral.ai/v1"
1562 }
1563 },
1564 // Zed's Prettier integration settings.
1565 // Allows to enable/disable formatting with Prettier
1566 // and configure default Prettier, used when no project-level Prettier installation is found.
1567 "prettier": {
1568 // // Whether to consider prettier formatter or not when attempting to format a file.
1569 // "allowed": false,
1570 //
1571 // // Use regular Prettier json configuration.
1572 // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
1573 // // the project has no other Prettier installed.
1574 // "plugins": [],
1575 //
1576 // // Use regular Prettier json configuration.
1577 // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
1578 // // the project has no other Prettier installed.
1579 // "trailingComma": "es5",
1580 // "tabWidth": 4,
1581 // "semi": false,
1582 // "singleQuote": true
1583 },
1584 // Settings for auto-closing of JSX tags.
1585 "jsx_tag_auto_close": {
1586 "enabled": true
1587 },
1588 // LSP Specific settings.
1589 "lsp": {
1590 // Specify the LSP name as a key here.
1591 // "rust-analyzer": {
1592 // // A special flag for rust-analyzer integration, to use server-provided tasks
1593 // enable_lsp_tasks": true,
1594 // // These initialization options are merged into Zed's defaults
1595 // "initialization_options": {
1596 // "check": {
1597 // "command": "clippy" // rust-analyzer.check.command (default: "check")
1598 // }
1599 // }
1600 // }
1601 },
1602 // Jupyter settings
1603 "jupyter": {
1604 "enabled": true
1605 // Specify the language name as the key and the kernel name as the value.
1606 // "kernel_selections": {
1607 // "python": "conda-base"
1608 // "typescript": "deno"
1609 // }
1610 },
1611 // Vim settings
1612 "vim": {
1613 "default_mode": "normal",
1614 "toggle_relative_line_numbers": false,
1615 "use_system_clipboard": "always",
1616 "use_multiline_find": false,
1617 "use_smartcase_find": false,
1618 "highlight_on_yank_duration": 200,
1619 "custom_digraphs": {},
1620 // Cursor shape for the each mode.
1621 // Specify the mode as the key and the shape as the value.
1622 // The mode can be one of the following: "normal", "replace", "insert", "visual".
1623 // The shape can be one of the following: "block", "bar", "underline", "hollow".
1624 "cursor_shape": {}
1625 },
1626 // The server to connect to. If the environment variable
1627 // ZED_SERVER_URL is set, it will override this setting.
1628 "server_url": "https://zed.dev",
1629 // Settings overrides to use when using Zed Preview.
1630 // Mostly useful for developers who are managing multiple instances of Zed.
1631 "preview": {
1632 // "theme": "Andromeda"
1633 },
1634 // Settings overrides to use when using Zed Nightly.
1635 // Mostly useful for developers who are managing multiple instances of Zed.
1636 "nightly": {
1637 // "theme": "Andromeda"
1638 },
1639 // Settings overrides to use when using Zed Stable.
1640 // Mostly useful for developers who are managing multiple instances of Zed.
1641 "stable": {
1642 // "theme": "Andromeda"
1643 },
1644 // Settings overrides to use when using Zed Dev.
1645 // Mostly useful for developers who are managing multiple instances of Zed.
1646 "dev": {
1647 // "theme": "Andromeda"
1648 },
1649 // Whether to show full labels in line indicator or short ones
1650 //
1651 // Values:
1652 // - `short`: "2 s, 15 l, 32 c"
1653 // - `long`: "2 selections, 15 lines, 32 characters"
1654 // Default: long
1655 "line_indicator_format": "long",
1656 // Set a proxy to use. The proxy protocol is specified by the URI scheme.
1657 //
1658 // Supported URI scheme: `http`, `https`, `socks4`, `socks4a`, `socks5`,
1659 // `socks5h`. `http` will be used when no scheme is specified.
1660 //
1661 // By default no proxy will be used, or Zed will try get proxy settings from
1662 // environment variables.
1663 //
1664 // Examples:
1665 // - "proxy": "socks5h://localhost:10808"
1666 // - "proxy": "http://127.0.0.1:10809"
1667 "proxy": null,
1668 // Set to configure aliases for the command palette.
1669 // When typing a query which is a key of this object, the value will be used instead.
1670 //
1671 // Examples:
1672 // {
1673 // "W": "workspace::Save"
1674 // }
1675 "command_aliases": {},
1676 // ssh_connections is an array of ssh connections.
1677 // You can configure these from `project: Open Remote` in the command palette.
1678 // Zed's ssh support will pull configuration from your ~/.ssh too.
1679 // Examples:
1680 // [
1681 // {
1682 // "host": "example-box",
1683 // // "port": 22, "username": "test", "args": ["-i", "/home/user/.ssh/id_rsa"]
1684 // "projects": [
1685 // {
1686 // "paths": ["/home/user/code/zed"]
1687 // }
1688 // ]
1689 // }
1690 // ]
1691 "ssh_connections": [],
1692 // Configures context servers for use by the agent.
1693 "context_servers": {},
1694 "debugger": {
1695 "stepping_granularity": "line",
1696 "save_breakpoints": true,
1697 "button": true
1698 }
1699}