1{
2 // The name of the Zed theme to use for the UI.
3 //
4 // `mode` is one of:
5 // - "system": Use the theme that corresponds to the system's appearance
6 // - "light": Use the theme indicated by the "light" field
7 // - "dark": Use the theme indicated by the "dark" field
8 "theme": {
9 "mode": "system",
10 "light": "One Light",
11 "dark": "One Dark"
12 },
13 // The name of a base set of key bindings to use.
14 // This setting can take four values, each named after another
15 // text editor:
16 //
17 // 1. "VSCode"
18 // 2. "JetBrains"
19 // 3. "SublimeText"
20 // 4. "Atom"
21 "base_keymap": "VSCode",
22 // Features that can be globally enabled or disabled
23 "features": {
24 // Which inline completion provider to use.
25 "inline_completion_provider": "copilot"
26 },
27 // The name of a font to use for rendering text in the editor
28 "buffer_font_family": "Zed Plex Mono",
29 // Set the buffer text's font fallbacks, this will be merged with
30 // the platform's default fallbacks.
31 "buffer_font_fallbacks": null,
32 // The OpenType features to enable for text in the editor.
33 "buffer_font_features": {
34 // Disable ligatures:
35 // "calt": false
36 },
37 // The default font size for text in the editor
38 "buffer_font_size": 15,
39 // The weight of the editor font in standard CSS units from 100 to 900.
40 "buffer_font_weight": 400,
41 // Set the buffer's line height.
42 // May take 3 values:
43 // 1. Use a line height that's comfortable for reading (1.618)
44 // "buffer_line_height": "comfortable"
45 // 2. Use a standard line height, (1.3)
46 // "buffer_line_height": "standard",
47 // 3. Use a custom line height
48 // "buffer_line_height": {
49 // "custom": 2
50 // },
51 "buffer_line_height": "comfortable",
52 // The name of a font to use for rendering text in the UI
53 // You can set this to ".SystemUIFont" to use the system font
54 "ui_font_family": "Zed Plex Sans",
55 // Set the UI's font fallbacks, this will be merged with the platform's
56 // default font fallbacks.
57 "ui_font_fallbacks": null,
58 // The OpenType features to enable for text in the UI
59 "ui_font_features": {
60 // Disable ligatures:
61 "calt": false
62 },
63 // The weight of the UI font in standard CSS units from 100 to 900.
64 "ui_font_weight": 400,
65 // The default font size for text in the UI
66 "ui_font_size": 16,
67 // How much to fade out unused code.
68 "unnecessary_code_fade": 0.3,
69 // The factor to grow the active pane by. Defaults to 1.0
70 // which gives the same size as all other panes.
71 "active_pane_magnification": 1.0,
72 // The direction that you want to split panes horizontally. Defaults to "up"
73 "pane_split_direction_horizontal": "up",
74 // The direction that you want to split panes horizontally. Defaults to "left"
75 "pane_split_direction_vertical": "left",
76 // Centered layout related settings.
77 "centered_layout": {
78 // The relative width of the left padding of the central pane from the
79 // workspace when the centered layout is used.
80 "left_padding": 0.2,
81 // The relative width of the right padding of the central pane from the
82 // workspace when the centered layout is used.
83 "right_padding": 0.2
84 },
85 // The key to use for adding multiple cursors
86 // Currently "alt" or "cmd_or_ctrl" (also aliased as
87 // "cmd" and "ctrl") are supported.
88 "multi_cursor_modifier": "alt",
89 // Whether to enable vim modes and key bindings.
90 "vim_mode": false,
91 // Whether to show the informational hover box when moving the mouse
92 // over symbols in the editor.
93 "hover_popover_enabled": true,
94 // Whether to confirm before quitting Zed.
95 "confirm_quit": false,
96 // Whether to restore last closed project when fresh Zed instance is opened.
97 "restore_on_startup": "last_session",
98 // Size of the drop target in the editor.
99 "drop_target_size": 0.2,
100 // Whether the window should be closed when using 'close active item' on a window with no tabs.
101 // May take 3 values:
102 // 1. Use the current platform's convention
103 // "when_closing_with_no_tabs": "platform_default"
104 // 2. Always close the window:
105 // "when_closing_with_no_tabs": "close_window",
106 // 3. Never close the window
107 // "when_closing_with_no_tabs": "keep_window_open",
108 "when_closing_with_no_tabs": "platform_default",
109 // Whether to use the system provided dialogs for Open and Save As.
110 // When set to false, Zed will use the built-in keyboard-first pickers.
111 "use_system_path_prompts": true,
112 // Whether the cursor blinks in the editor.
113 "cursor_blink": true,
114 // How to highlight the current line in the editor.
115 //
116 // 1. Don't highlight the current line:
117 // "none"
118 // 2. Highlight the gutter area:
119 // "gutter"
120 // 3. Highlight the editor area:
121 // "line"
122 // 4. Highlight the full line (default):
123 // "all"
124 "current_line_highlight": "all",
125 // Whether to pop the completions menu while typing in an editor without
126 // explicitly requesting it.
127 "show_completions_on_input": true,
128 // Whether to display inline and alongside documentation for items in the
129 // completions menu
130 "show_completion_documentation": true,
131 // The debounce delay before re-querying the language server for completion
132 // documentation when not included in original completion list.
133 "completion_documentation_secondary_query_debounce": 300,
134 // Show method signatures in the editor, when inside parentheses.
135 "auto_signature_help": false,
136 /// Whether to show the signature help after completion or a bracket pair inserted.
137 /// If `auto_signature_help` is enabled, this setting will be treated as enabled also.
138 "show_signature_help_after_edits": true,
139 // Whether to show wrap guides (vertical rulers) in the editor.
140 // Setting this to true will show a guide at the 'preferred_line_length' value
141 // if softwrap is set to 'preferred_line_length', and will show any
142 // additional guides as specified by the 'wrap_guides' setting.
143 "show_wrap_guides": true,
144 // Character counts at which to show wrap guides in the editor.
145 "wrap_guides": [],
146 // Hide the values of in variables from visual display in private files
147 "redact_private_values": false,
148 // The default number of lines to expand excerpts in the multibuffer by.
149 "expand_excerpt_lines": 3,
150 // Globs to match against file paths to determine if a file is private.
151 "private_files": ["**/.env*", "**/*.pem", "**/*.key", "**/*.cert", "**/*.crt", "**/secrets.yml"],
152 // Whether to use additional LSP queries to format (and amend) the code after
153 // every "trigger" symbol input, defined by LSP server capabilities.
154 "use_on_type_format": true,
155 // Whether to automatically add matching closing characters when typing
156 // opening parenthesis, bracket, brace, single or double quote characters.
157 // For example, when you type (, Zed will add a closing ) at the correct position.
158 "use_autoclose": true,
159 // Whether to automatically surround selected text when typing opening parenthesis,
160 // bracket, brace, single or double quote characters.
161 // For example, when you select text and type (, Zed will surround the text with ().
162 "use_auto_surround": true,
163 // Controls how the editor handles the autoclosed characters.
164 // When set to `false`(default), skipping over and auto-removing of the closing characters
165 // happen only for auto-inserted characters.
166 // Otherwise(when `true`), the closing characters are always skipped over and auto-removed
167 // no matter how they were inserted.
168 "always_treat_brackets_as_autoclosed": false,
169 // Controls whether inline completions are shown immediately (true)
170 // or manually by triggering `editor::ShowInlineCompletion` (false).
171 "show_inline_completions": true,
172 // Whether to show tabs and spaces in the editor.
173 // This setting can take three values:
174 //
175 // 1. Draw tabs and spaces only for the selected text (default):
176 // "selection"
177 // 2. Do not draw any tabs or spaces:
178 // "none"
179 // 3. Draw all invisible symbols:
180 // "all"
181 // 4. Draw whitespaces at boundaries only:
182 // "boundary"
183 // For a whitespace to be on a boundary, any of the following conditions need to be met:
184 // - It is a tab
185 // - It is adjacent to an edge (start or end)
186 // - It is adjacent to a whitespace (left or right)
187 "show_whitespaces": "selection",
188 // Settings related to calls in Zed
189 "calls": {
190 // Join calls with the microphone live by default
191 "mute_on_join": false,
192 // Share your project when you are the first to join a channel
193 "share_on_join": false
194 },
195 // Toolbar related settings
196 "toolbar": {
197 // Whether to show breadcrumbs.
198 "breadcrumbs": true,
199 // Whether to show quick action buttons.
200 "quick_actions": true,
201 // Whether to show the Selections menu in the editor toolbar
202 "selections_menu": true
203 },
204 // Scrollbar related settings
205 "scrollbar": {
206 // When to show the scrollbar in the editor.
207 // This setting can take four values:
208 //
209 // 1. Show the scrollbar if there's important information or
210 // follow the system's configured behavior (default):
211 // "auto"
212 // 2. Match the system's configured behavior:
213 // "system"
214 // 3. Always show the scrollbar:
215 // "always"
216 // 4. Never show the scrollbar:
217 // "never"
218 "show": "auto",
219 // Whether to show cursor positions in the scrollbar.
220 "cursors": true,
221 // Whether to show git diff indicators in the scrollbar.
222 "git_diff": true,
223 // Whether to show buffer search results in the scrollbar.
224 "search_results": true,
225 // Whether to show selected symbol occurrences in the scrollbar.
226 "selected_symbol": true,
227 // Whether to show diagnostic indicators in the scrollbar.
228 "diagnostics": true
229 },
230 // Enable middle-click paste on Linux.
231 "middle_click_paste": true,
232 // What to do when multibuffer is double clicked in some of its excerpts
233 // (parts of singleton buffers).
234 // May take 2 values:
235 // 1. Behave as a regular buffer and select the whole word (default).
236 // "double_click_in_multibuffer": "select"
237 // 2. Open the excerpt clicked as a new buffer in the new tab.
238 // "double_click_in_multibuffer": "open",
239 // For the case of "open", regular selection behavior can be achieved by holding `alt` when double clicking.
240 "double_click_in_multibuffer": "select",
241 "gutter": {
242 // Whether to show line numbers in the gutter.
243 "line_numbers": true,
244 // Whether to show code action buttons in the gutter.
245 "code_actions": true,
246 // Whether to show runnables buttons in the gutter.
247 "runnables": true,
248 // Whether to show fold buttons in the gutter.
249 "folds": true
250 },
251 "indent_guides": {
252 /// Whether to show indent guides in the editor.
253 "enabled": true,
254 /// The width of the indent guides in pixels, between 1 and 10.
255 "line_width": 1,
256 /// The width of the active indent guide in pixels, between 1 and 10.
257 "active_line_width": 1,
258 /// Determines how indent guides are colored.
259 /// This setting can take the following three values:
260 ///
261 /// 1. "disabled"
262 /// 2. "fixed"
263 /// 3. "indent_aware"
264 "coloring": "fixed",
265 /// Determines how indent guide backgrounds are colored.
266 /// This setting can take the following two values:
267 ///
268 /// 1. "disabled"
269 /// 2. "indent_aware"
270 "background_coloring": "disabled"
271 },
272 // Whether the editor will scroll beyond the last line.
273 "scroll_beyond_last_line": "one_page",
274 // The number of lines to keep above/below the cursor when scrolling.
275 "vertical_scroll_margin": 3,
276 // Scroll sensitivity multiplier. This multiplier is applied
277 // to both the horizontal and vertical delta values while scrolling.
278 "scroll_sensitivity": 1.0,
279 "relative_line_numbers": false,
280 // If 'search_wrap' is disabled, search result do not wrap around the end of the file.
281 "search_wrap": true,
282 // When to populate a new search's query based on the text under the cursor.
283 // This setting can take the following three values:
284 //
285 // 1. Always populate the search query with the word under the cursor (default).
286 // "always"
287 // 2. Only populate the search query when there is text selected
288 // "selection"
289 // 3. Never populate the search query
290 // "never"
291 "seed_search_query_from_cursor": "always",
292 "use_smartcase_search": false,
293 // Inlay hint related settings
294 "inlay_hints": {
295 // Global switch to toggle hints on and off, switched off by default.
296 "enabled": false,
297 // Toggle certain types of hints on and off, all switched on by default.
298 "show_type_hints": true,
299 "show_parameter_hints": true,
300 // Corresponds to null/None LSP hint type value.
301 "show_other_hints": true,
302 // Time to wait after editing the buffer, before requesting the hints,
303 // set to 0 to disable debouncing.
304 "edit_debounce_ms": 700,
305 // Time to wait after scrolling the buffer, before requesting the hints,
306 // set to 0 to disable debouncing.
307 "scroll_debounce_ms": 50
308 },
309 "project_panel": {
310 // Whether to show the project panel button in the status bar
311 "button": true,
312 // Default width of the project panel.
313 "default_width": 240,
314 // Where to dock the project panel. Can be 'left' or 'right'.
315 "dock": "left",
316 // Whether to show file icons in the project panel.
317 "file_icons": true,
318 // Whether to show folder icons or chevrons for directories in the project panel.
319 "folder_icons": true,
320 // Whether to show the git status in the project panel.
321 "git_status": true,
322 // Amount of indentation for nested items.
323 "indent_size": 20,
324 // Whether to reveal it in the project panel automatically,
325 // when a corresponding project entry becomes active.
326 // Gitignored entries are never auto revealed.
327 "auto_reveal_entries": true,
328 // Whether to fold directories automatically and show compact folders
329 // (e.g. "a/b/c" ) when a directory has only one subdirectory inside.
330 "auto_fold_dirs": true,
331 /// Scrollbar-related settings
332 "scrollbar": {
333 /// When to show the scrollbar in the project panel.
334 ///
335 /// Default: always
336 "show": "always"
337 }
338 },
339 "outline_panel": {
340 // Whether to show the outline panel button in the status bar
341 "button": true,
342 // Default width of the outline panel.
343 "default_width": 300,
344 // Where to dock the outline panel. Can be 'left' or 'right'.
345 "dock": "left",
346 // Whether to show file icons in the outline panel.
347 "file_icons": true,
348 // Whether to show folder icons or chevrons for directories in the outline panel.
349 "folder_icons": true,
350 // Whether to show the git status in the outline panel.
351 "git_status": true,
352 // Amount of indentation for nested items.
353 "indent_size": 20,
354 // Whether to reveal it in the outline panel automatically,
355 // when a corresponding outline entry becomes active.
356 // Gitignored entries are never auto revealed.
357 "auto_reveal_entries": true,
358 /// Whether to fold directories automatically
359 /// when a directory has only one directory inside.
360 "auto_fold_dirs": true
361 },
362 "collaboration_panel": {
363 // Whether to show the collaboration panel button in the status bar.
364 "button": true,
365 // Where to dock the collaboration panel. Can be 'left' or 'right'.
366 "dock": "left",
367 // Default width of the collaboration panel.
368 "default_width": 240
369 },
370 "chat_panel": {
371 // Whether to show the chat panel button in the status bar.
372 "button": true,
373 // Where to the chat panel. Can be 'left' or 'right'.
374 "dock": "right",
375 // Default width of the chat panel.
376 "default_width": 240
377 },
378 "message_editor": {
379 // Whether to automatically replace emoji shortcodes with emoji characters.
380 // For example: typing `:wave:` gets replaced with `👋`.
381 "auto_replace_emoji_shortcode": true
382 },
383 "notification_panel": {
384 // Whether to show the notification panel button in the status bar.
385 "button": true,
386 // Where to dock the notification panel. Can be 'left' or 'right'.
387 "dock": "right",
388 // Default width of the notification panel.
389 "default_width": 380
390 },
391 "assistant": {
392 // Version of this setting.
393 "version": "2",
394 // Whether the assistant is enabled.
395 "enabled": true,
396 // Whether to show the assistant panel button in the status bar.
397 "button": true,
398 // Where to dock the assistant panel. Can be 'left', 'right' or 'bottom'.
399 "dock": "right",
400 // Default width when the assistant is docked to the left or right.
401 "default_width": 640,
402 // Default height when the assistant is docked to the bottom.
403 "default_height": 320,
404 // The default model to use when creating new contexts.
405 "default_model": {
406 // The provider to use.
407 "provider": "zed.dev",
408 // The model to use.
409 "model": "claude-3-5-sonnet"
410 }
411 },
412 // The settings for slash commands.
413 "slash_commands": {
414 // Settings for the `/docs` slash command.
415 "docs": {
416 // Whether `/docs` is enabled.
417 "enabled": false
418 },
419 // Settings for the `/project` slash command.
420 "project": {
421 // Whether `/project` is enabled.
422 "enabled": false
423 }
424 },
425 // Whether the screen sharing icon is shown in the os status bar.
426 "show_call_status_icon": true,
427 // Whether to use language servers to provide code intelligence.
428 "enable_language_server": true,
429 // Whether to perform linked edits of associated ranges, if the language server supports it.
430 // For example, when editing opening <html> tag, the contents of the closing </html> tag will be edited as well.
431 "linked_edits": true,
432 // The list of language servers to use (or disable) for all languages.
433 //
434 // This is typically customized on a per-language basis.
435 "language_servers": ["..."],
436 // When to automatically save edited buffers. This setting can
437 // take four values.
438 //
439 // 1. Never automatically save:
440 // "autosave": "off",
441 // 2. Save when changing focus away from the Zed window:
442 // "autosave": "on_window_change",
443 // 3. Save when changing focus away from a specific buffer:
444 // "autosave": "on_focus_change",
445 // 4. Save when idle for a certain amount of time:
446 // "autosave": { "after_delay": {"milliseconds": 500} },
447 "autosave": "off",
448 // Settings related to the editor's tab bar.
449 "tab_bar": {
450 // Whether or not to show the tab bar in the editor
451 "show": true,
452 // Whether or not to show the navigation history buttons.
453 "show_nav_history_buttons": true
454 },
455 // Settings related to the editor's tabs
456 "tabs": {
457 // Show git status colors in the editor tabs.
458 "git_status": false,
459 // Position of the close button on the editor tabs.
460 "close_position": "right",
461 // Whether to show the file icon for a tab.
462 "file_icons": false
463 },
464 // Settings related to preview tabs.
465 "preview_tabs": {
466 // Whether preview tabs should be enabled.
467 // Preview tabs allow you to open files in preview mode, where they close automatically
468 // when you switch to another file unless you explicitly pin them.
469 // This is useful for quickly viewing files without cluttering your workspace.
470 "enabled": true,
471 // Whether to open tabs in preview mode when selected from the file finder.
472 "enable_preview_from_file_finder": false,
473 // Whether a preview tab gets replaced when code navigation is used to navigate away from the tab.
474 "enable_preview_from_code_navigation": false
475 },
476 // Whether or not to remove any trailing whitespace from lines of a buffer
477 // before saving it.
478 "remove_trailing_whitespace_on_save": true,
479 // Whether to start a new line with a comment when a previous line is a comment as well.
480 "extend_comment_on_newline": true,
481 // Whether or not to ensure there's a single newline at the end of a buffer
482 // when saving it.
483 "ensure_final_newline_on_save": true,
484 // Whether or not to perform a buffer format before saving
485 //
486 // Keep in mind, if the autosave with delay is enabled, format_on_save will be ignored
487 "format_on_save": "on",
488 // How to perform a buffer format. This setting can take 4 values:
489 //
490 // 1. Format code using the current language server:
491 // "formatter": "language_server"
492 // 2. Format code using an external command:
493 // "formatter": {
494 // "external": {
495 // "command": "prettier",
496 // "arguments": ["--stdin-filepath", "{buffer_path}"]
497 // }
498 // }
499 // 3. Format code using Zed's Prettier integration:
500 // "formatter": "prettier"
501 // 4. Default. Format files using Zed's Prettier integration (if applicable),
502 // or falling back to formatting via language server:
503 // "formatter": "auto"
504 "formatter": "auto",
505 // How to soft-wrap long lines of text.
506 // Possible values:
507 //
508 // 1. Do not soft wrap.
509 // "soft_wrap": "none",
510 // 2. Prefer a single line generally, unless an overly long line is encountered.
511 // "soft_wrap": "prefer_line",
512 // 3. Soft wrap lines that overflow the editor.
513 // "soft_wrap": "editor_width",
514 // 4. Soft wrap lines at the preferred line length.
515 // "soft_wrap": "preferred_line_length",
516 // 5. Soft wrap lines at the preferred line length or the editor width (whichever is smaller).
517 // "soft_wrap": "bounded",
518 "soft_wrap": "prefer_line",
519 // The column at which to soft-wrap lines, for buffers where soft-wrap
520 // is enabled.
521 "preferred_line_length": 80,
522 // Whether to indent lines using tab characters, as opposed to multiple
523 // spaces.
524 "hard_tabs": false,
525 // How many columns a tab should occupy.
526 "tab_size": 4,
527 // Control what info is collected by Zed.
528 "telemetry": {
529 // Send debug info like crash reports.
530 "diagnostics": true,
531 // Send anonymized usage data like what languages you're using Zed with.
532 "metrics": true
533 },
534 // Automatically update Zed. This setting may be ignored on Linux if
535 // installed through a package manager.
536 "auto_update": true,
537 // Diagnostics configuration.
538 "diagnostics": {
539 // Whether to show warnings or not by default.
540 "include_warnings": true
541 },
542 // Add files or globs of files that will be excluded by Zed entirely:
543 // they will be skipped during FS scan(s), file tree and file search
544 // will lack the corresponding file entries.
545 "file_scan_exclusions": [
546 "**/.git",
547 "**/.svn",
548 "**/.hg",
549 "**/CVS",
550 "**/.DS_Store",
551 "**/Thumbs.db",
552 "**/.classpath",
553 "**/.settings"
554 ],
555 // Git gutter behavior configuration.
556 "git": {
557 // Control whether the git gutter is shown. May take 2 values:
558 // 1. Show the gutter
559 // "git_gutter": "tracked_files"
560 // 2. Hide the gutter
561 // "git_gutter": "hide"
562 "git_gutter": "tracked_files",
563 // Control whether the git blame information is shown inline,
564 // in the currently focused line.
565 "inline_blame": {
566 "enabled": true
567 // Sets a delay after which the inline blame information is shown.
568 // Delay is restarted with every cursor movement.
569 // "delay_ms": 600
570 }
571 },
572 // Configuration for how direnv configuration should be loaded. May take 2 values:
573 // 1. Load direnv configuration through the shell hook, works for POSIX shells and fish.
574 // "load_direnv": "shell_hook"
575 // 2. Load direnv configuration using `direnv export json` directly.
576 // This can help with some shells that otherwise would not detect
577 // the direnv environment, such as nushell or elvish.
578 // "load_direnv": "direct"
579 "load_direnv": "shell_hook",
580 "inline_completions": {
581 // A list of globs representing files that inline completions should be disabled for.
582 "disabled_globs": [".env"]
583 },
584 // Settings specific to journaling
585 "journal": {
586 // The path of the directory where journal entries are stored
587 "path": "~",
588 // What format to display the hours in
589 // May take 2 values:
590 // 1. hour12
591 // 2. hour24
592 "hour_format": "hour12"
593 },
594 // Settings specific to the terminal
595 "terminal": {
596 // What shell to use when opening a terminal. May take 3 values:
597 // 1. Use the system's default terminal configuration in /etc/passwd
598 // "shell": "system"
599 // 2. A program:
600 // "shell": {
601 // "program": "sh"
602 // }
603 // 3. A program with arguments:
604 // "shell": {
605 // "with_arguments": {
606 // "program": "/bin/bash",
607 // "args": ["--login"]
608 // }
609 // }
610 "shell": "system",
611 // Where to dock terminals panel. Can be `left`, `right`, `bottom`.
612 "dock": "bottom",
613 // Default width when the terminal is docked to the left or right.
614 "default_width": 640,
615 // Default height when the terminal is docked to the bottom.
616 "default_height": 320,
617 // What working directory to use when launching the terminal.
618 // May take 4 values:
619 // 1. Use the current file's project directory. Will Fallback to the
620 // first project directory strategy if unsuccessful
621 // "working_directory": "current_project_directory"
622 // 2. Use the first project in this workspace's directory
623 // "working_directory": "first_project_directory"
624 // 3. Always use this platform's home directory (if we can find it)
625 // "working_directory": "always_home"
626 // 4. Always use a specific directory. This value will be shell expanded.
627 // If this path is not a valid directory the terminal will default to
628 // this platform's home directory (if we can find it)
629 // "working_directory": {
630 // "always": {
631 // "directory": "~/zed/projects/"
632 // }
633 // }
634 "working_directory": "current_project_directory",
635 // Set the cursor blinking behavior in the terminal.
636 // May take 3 values:
637 // 1. Never blink the cursor, ignoring the terminal mode
638 // "blinking": "off",
639 // 2. Default the cursor blink to off, but allow the terminal to
640 // set blinking
641 // "blinking": "terminal_controlled",
642 // 3. Always blink the cursor, ignoring the terminal mode
643 // "blinking": "on",
644 "blinking": "terminal_controlled",
645 // Set whether Alternate Scroll mode (code: ?1007) is active by default.
646 // Alternate Scroll mode converts mouse scroll events into up / down key
647 // presses when in the alternate screen (e.g. when running applications
648 // like vim or less). The terminal can still set and unset this mode.
649 // May take 2 values:
650 // 1. Default alternate scroll mode to on
651 // "alternate_scroll": "on",
652 // 2. Default alternate scroll mode to off
653 // "alternate_scroll": "off",
654 "alternate_scroll": "off",
655 // Set whether the option key behaves as the meta key.
656 // May take 2 values:
657 // 1. Rely on default platform handling of option key, on macOS
658 // this means generating certain unicode characters
659 // "option_to_meta": false,
660 // 2. Make the option keys behave as a 'meta' key, e.g. for emacs
661 // "option_to_meta": true,
662 "option_as_meta": true,
663 // Whether or not selecting text in the terminal will automatically
664 // copy to the system clipboard.
665 "copy_on_select": false,
666 // Whether to show the terminal button in the status bar
667 "button": true,
668 // Any key-value pairs added to this list will be added to the terminal's
669 // environment. Use `:` to separate multiple values.
670 "env": {
671 // "KEY": "value1:value2"
672 },
673 // Set the terminal's line height.
674 // May take 3 values:
675 // 1. Use a line height that's comfortable for reading, 1.618
676 // "line_height": "comfortable"
677 // 2. Use a standard line height, 1.3. This option is useful for TUIs,
678 // particularly if they use box characters
679 // "line_height": "standard",
680 // 3. Use a custom line height.
681 // "line_height": {
682 // "custom": 2
683 // },
684 "line_height": "comfortable",
685 // Activate the python virtual environment, if one is found, in the
686 // terminal's working directory (as resolved by the working_directory
687 // setting). Set this to "off" to disable this behavior.
688 "detect_venv": {
689 "on": {
690 // Default directories to search for virtual environments, relative
691 // to the current working directory. We recommend overriding this
692 // in your project's settings, rather than globally.
693 "directories": [".env", "env", ".venv", "venv"],
694 // Can also be `csh`, `fish`, and `nushell`
695 "activate_script": "default"
696 }
697 },
698 "toolbar": {
699 // Whether to display the terminal title in its toolbar.
700 "title": true
701 }
702 // Set the terminal's font size. If this option is not included,
703 // the terminal will default to matching the buffer's font size.
704 // "font_size": 15,
705 // Set the terminal's font family. If this option is not included,
706 // the terminal will default to matching the buffer's font family.
707 // "font_family": "Zed Plex Mono",
708 // Set the terminal's font fallbacks. If this option is not included,
709 // the terminal will default to matching the buffer's font fallbacks.
710 // This will be merged with the platform's default font fallbacks
711 // "font_fallbacks": ["FiraCode Nerd Fonts"],
712 // Sets the maximum number of lines in the terminal's scrollback buffer.
713 // Default: 10_000, maximum: 100_000 (all bigger values set will be treated as 100_000), 0 disables the scrolling.
714 // Existing terminals will not pick up this change until they are recreated.
715 // "max_scroll_history_lines": 10000,
716 },
717 "code_actions_on_format": {},
718 /// Settings related to running tasks.
719 "tasks": {
720 "variables": {}
721 },
722 // An object whose keys are language names, and whose values
723 // are arrays of filenames or extensions of files that should
724 // use those languages.
725 //
726 // For example, to treat files like `foo.notjs` as JavaScript,
727 // and `Embargo.lock` as TOML:
728 //
729 // {
730 // "JavaScript": ["notjs"],
731 // "TOML": ["Embargo.lock"]
732 // }
733 //
734 "file_types": {
735 "JSON": ["flake.lock"],
736 "JSONC": [
737 "**/.zed/**/*.json",
738 "**/zed/**/*.json",
739 "**/Zed/**/*.json",
740 "tsconfig.json",
741 "pyrightconfig.json"
742 ]
743 },
744 // The extensions that Zed should automatically install on startup.
745 //
746 // If you don't want any of these extensions, add this field to your settings
747 // and change the value to `false`.
748 "auto_install_extensions": {
749 "html": true
750 },
751 // Different settings for specific languages.
752 "languages": {
753 "Astro": {
754 "prettier": {
755 "allowed": true,
756 "plugins": ["prettier-plugin-astro"]
757 }
758 },
759 "Blade": {
760 "prettier": {
761 "allowed": true
762 }
763 },
764 "C": {
765 "format_on_save": "off",
766 "use_on_type_format": false
767 },
768 "C++": {
769 "format_on_save": "off",
770 "use_on_type_format": false
771 },
772 "CSS": {
773 "prettier": {
774 "allowed": true
775 }
776 },
777 "Elixir": {
778 "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
779 },
780 "Erlang": {
781 "language_servers": ["erlang-ls", "!elp", "..."]
782 },
783 "Go": {
784 "code_actions_on_format": {
785 "source.organizeImports": true
786 }
787 },
788 "GraphQL": {
789 "prettier": {
790 "allowed": true
791 }
792 },
793 "HEEX": {
794 "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
795 },
796 "HTML": {
797 "prettier": {
798 "allowed": true
799 }
800 },
801 "Java": {
802 "prettier": {
803 "allowed": true,
804 "plugins": ["prettier-plugin-java"]
805 }
806 },
807 "JavaScript": {
808 "language_servers": ["!typescript-language-server", "vtsls", "..."],
809 "prettier": {
810 "allowed": true
811 }
812 },
813 "JSON": {
814 "prettier": {
815 "allowed": true
816 }
817 },
818 "JSONC": {
819 "prettier": {
820 "allowed": true
821 }
822 },
823 "Markdown": {
824 "format_on_save": "off",
825 "use_on_type_format": false,
826 "prettier": {
827 "allowed": true
828 }
829 },
830 "PHP": {
831 "language_servers": ["phpactor", "!intelephense", "..."],
832 "prettier": {
833 "allowed": true,
834 "plugins": ["@prettier/plugin-php"],
835 "parser": "php"
836 }
837 },
838 "Ruby": {
839 "language_servers": ["solargraph", "!ruby-lsp", "!rubocop", "..."]
840 },
841 "SCSS": {
842 "prettier": {
843 "allowed": true
844 }
845 },
846 "SQL": {
847 "prettier": {
848 "allowed": true,
849 "plugins": ["prettier-plugin-sql"]
850 }
851 },
852 "Starlark": {
853 "language_servers": ["starpls", "!buck2-lsp", "..."]
854 },
855 "Svelte": {
856 "language_servers": ["svelte-language-server", "..."],
857 "prettier": {
858 "allowed": true,
859 "plugins": ["prettier-plugin-svelte"]
860 }
861 },
862 "TSX": {
863 "language_servers": ["!typescript-language-server", "vtsls", "..."],
864 "prettier": {
865 "allowed": true
866 }
867 },
868 "Twig": {
869 "prettier": {
870 "allowed": true
871 }
872 },
873 "TypeScript": {
874 "language_servers": ["!typescript-language-server", "vtsls", "..."],
875 "prettier": {
876 "allowed": true
877 }
878 },
879 "Vue.js": {
880 "language_servers": ["vue-language-server", "..."],
881 "prettier": {
882 "allowed": true
883 }
884 },
885 "XML": {
886 "prettier": {
887 "allowed": true,
888 "plugins": ["@prettier/plugin-xml"]
889 }
890 },
891 "YAML": {
892 "prettier": {
893 "allowed": true
894 }
895 }
896 },
897 // Different settings for specific language models.
898 "language_models": {
899 "anthropic": {
900 "version": "1",
901 "api_url": "https://api.anthropic.com"
902 },
903 "google": {
904 "api_url": "https://generativelanguage.googleapis.com"
905 },
906 "ollama": {
907 "api_url": "http://localhost:11434",
908 "low_speed_timeout_in_seconds": 60
909 },
910 "openai": {
911 "version": "1",
912 "api_url": "https://api.openai.com/v1"
913 }
914 },
915 // Zed's Prettier integration settings.
916 // Allows to enable/disable formatting with Prettier
917 // and configure default Prettier, used when no project-level Prettier installation is found.
918 "prettier": {
919 // // Whether to consider prettier formatter or not when attempting to format a file.
920 // "allowed": false,
921 //
922 // // Use regular Prettier json configuration.
923 // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
924 // // the project has no other Prettier installed.
925 // "plugins": [],
926 //
927 // // Use regular Prettier json configuration.
928 // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
929 // // the project has no other Prettier installed.
930 // "trailingComma": "es5",
931 // "tabWidth": 4,
932 // "semi": false,
933 // "singleQuote": true
934 },
935 // LSP Specific settings.
936 "lsp": {
937 // Specify the LSP name as a key here.
938 // "rust-analyzer": {
939 // // These initialization options are merged into Zed's defaults
940 // "initialization_options": {
941 // "check": {
942 // "command": "clippy" // rust-analyzer.check.command (default: "check")
943 // }
944 // }
945 // }
946 },
947 // Jupyter settings
948 "jupyter": {
949 "enabled": true
950 // Specify the language name as the key and the kernel name as the value.
951 // "kernel_selections": {
952 // "python": "conda-base"
953 // "typescript": "deno"
954 // }
955 },
956 // Vim settings
957 "vim": {
958 "toggle_relative_line_numbers": false,
959 "use_system_clipboard": "always",
960 "use_multiline_find": false,
961 "use_smartcase_find": false,
962 "custom_digraphs": {}
963 },
964 // The server to connect to. If the environment variable
965 // ZED_SERVER_URL is set, it will override this setting.
966 "server_url": "https://zed.dev",
967 // Settings overrides to use when using Zed Preview.
968 // Mostly useful for developers who are managing multiple instances of Zed.
969 "preview": {
970 // "theme": "Andromeda"
971 },
972 // Settings overrides to use when using Zed Nightly.
973 // Mostly useful for developers who are managing multiple instances of Zed.
974 "nightly": {
975 // "theme": "Andromeda"
976 },
977 // Settings overrides to use when using Zed Stable.
978 // Mostly useful for developers who are managing multiple instances of Zed.
979 "stable": {
980 // "theme": "Andromeda"
981 },
982 // Settings overrides to use when using Zed Dev.
983 // Mostly useful for developers who are managing multiple instances of Zed.
984 "dev": {
985 // "theme": "Andromeda"
986 },
987 // Task-related settings.
988 "task": {
989 // Whether to show task status indicator in the status bar. Default: true
990 "show_status_indicator": true
991 },
992 // Whether to show full labels in line indicator or short ones
993 //
994 // Values:
995 // - `short`: "2 s, 15 l, 32 c"
996 // - `long`: "2 selections, 15 lines, 32 characters"
997 // Default: long
998 "line_indicator_format": "long",
999 // Set a proxy to use. The proxy protocol is specified by the URI scheme.
1000 //
1001 // Supported URI scheme: `http`, `https`, `socks4`, `socks4a`, `socks5`,
1002 // `socks5h`. `http` will be used when no scheme is specified.
1003 //
1004 // By default no proxy will be used, or Zed will try get proxy settings from
1005 // environment variables.
1006 //
1007 // Examples:
1008 // - "proxy": "socks5://localhost:10808"
1009 // - "proxy": "http://127.0.0.1:10809"
1010 "proxy": null,
1011 // Set to configure aliases for the command palette.
1012 // When typing a query which is a key of this object, the value will be used instead.
1013 //
1014 // Examples:
1015 // {
1016 // "W": "workspace::Save"
1017 // }
1018 "command_aliases": {},
1019 // ssh_connections is an array of ssh connections.
1020 // By default this setting is null, which disables the direct ssh connection support.
1021 // You can configure these from `project: Open Remote` in the command palette.
1022 // Zed's ssh support will pull configuration from your ~/.ssh too.
1023 // Examples:
1024 // [
1025 // {
1026 // "host": "example-box",
1027 // "projects": [
1028 // {
1029 // "paths": ["/home/user/code/zed"]
1030 // }
1031 // ]
1032 // }
1033 // ]
1034 "ssh_connections": null,
1035 // Configures the Context Server Protocol binaries
1036 //
1037 // Examples:
1038 // {
1039 // "id": "server-1",
1040 // "executable": "/path",
1041 // "args": ['arg1", "args2"]
1042 // }
1043 "experimental.context_servers": {
1044 "servers": []
1045 }
1046}