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