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