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