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 // Inlay hint related settings
293 "inlay_hints": {
294 // Global switch to toggle hints on and off, switched off by default.
295 "enabled": false,
296 // Toggle certain types of hints on and off, all switched on by default.
297 "show_type_hints": true,
298 "show_parameter_hints": true,
299 // Corresponds to null/None LSP hint type value.
300 "show_other_hints": true,
301 // Time to wait after editing the buffer, before requesting the hints,
302 // set to 0 to disable debouncing.
303 "edit_debounce_ms": 700,
304 // Time to wait after scrolling the buffer, before requesting the hints,
305 // set to 0 to disable debouncing.
306 "scroll_debounce_ms": 50
307 },
308 "project_panel": {
309 // Whether to show the project panel button in the status bar
310 "button": true,
311 // Default width of the project panel.
312 "default_width": 240,
313 // Where to dock the project panel. Can be 'left' or 'right'.
314 "dock": "left",
315 // Whether to show file icons in the project panel.
316 "file_icons": true,
317 // Whether to show folder icons or chevrons for directories in the project panel.
318 "folder_icons": true,
319 // Whether to show the git status in the project panel.
320 "git_status": true,
321 // Amount of indentation for nested items.
322 "indent_size": 20,
323 // Whether to reveal it in the project panel automatically,
324 // when a corresponding project entry becomes active.
325 // Gitignored entries are never auto revealed.
326 "auto_reveal_entries": true,
327 // Whether to fold directories automatically and show compact folders
328 // (e.g. "a/b/c" ) when a directory has only one subdirectory inside.
329 "auto_fold_dirs": true,
330 /// Scrollbar-related settings
331 "scrollbar": {
332 /// When to show the scrollbar in the project panel.
333 ///
334 /// Default: always
335 "show": "always"
336 }
337 },
338 "outline_panel": {
339 // Whether to show the outline panel button in the status bar
340 "button": true,
341 // Default width of the outline panel.
342 "default_width": 300,
343 // Where to dock the outline panel. Can be 'left' or 'right'.
344 "dock": "left",
345 // Whether to show file icons in the outline panel.
346 "file_icons": true,
347 // Whether to show folder icons or chevrons for directories in the outline panel.
348 "folder_icons": true,
349 // Whether to show the git status in the outline panel.
350 "git_status": true,
351 // Amount of indentation for nested items.
352 "indent_size": 20,
353 // Whether to reveal it in the outline panel automatically,
354 // when a corresponding outline entry becomes active.
355 // Gitignored entries are never auto revealed.
356 "auto_reveal_entries": true,
357 /// Whether to fold directories automatically
358 /// when a directory has only one directory inside.
359 "auto_fold_dirs": true
360 },
361 "collaboration_panel": {
362 // Whether to show the collaboration panel button in the status bar.
363 "button": true,
364 // Where to dock the collaboration panel. Can be 'left' or 'right'.
365 "dock": "left",
366 // Default width of the collaboration panel.
367 "default_width": 240
368 },
369 "chat_panel": {
370 // Whether to show the chat panel button in the status bar.
371 "button": true,
372 // Where to the chat panel. Can be 'left' or 'right'.
373 "dock": "right",
374 // Default width of the chat panel.
375 "default_width": 240
376 },
377 "message_editor": {
378 // Whether to automatically replace emoji shortcodes with emoji characters.
379 // For example: typing `:wave:` gets replaced with `👋`.
380 "auto_replace_emoji_shortcode": true
381 },
382 "notification_panel": {
383 // Whether to show the notification panel button in the status bar.
384 "button": true,
385 // Where to dock the notification panel. Can be 'left' or 'right'.
386 "dock": "right",
387 // Default width of the notification panel.
388 "default_width": 380
389 },
390 "assistant": {
391 // Version of this setting.
392 "version": "2",
393 // Whether the assistant is enabled.
394 "enabled": true,
395 // Whether to show the assistant panel button in the status bar.
396 "button": true,
397 // Where to dock the assistant panel. Can be 'left', 'right' or 'bottom'.
398 "dock": "right",
399 // Default width when the assistant is docked to the left or right.
400 "default_width": 640,
401 // Default height when the assistant is docked to the bottom.
402 "default_height": 320,
403 // The default model to use when creating new contexts.
404 "default_model": {
405 // The provider to use.
406 "provider": "zed.dev",
407 // The model to use.
408 "model": "claude-3-5-sonnet"
409 }
410 },
411 // The settings for slash commands.
412 "slash_commands": {
413 // Settings for the `/docs` slash command.
414 "docs": {
415 // Whether `/docs` is enabled.
416 "enabled": false
417 },
418 // Settings for the `/project` slash command.
419 "project": {
420 // Whether `/project` is enabled.
421 "enabled": false
422 }
423 },
424 // Whether the screen sharing icon is shown in the os status bar.
425 "show_call_status_icon": true,
426 // Whether to use language servers to provide code intelligence.
427 "enable_language_server": true,
428 // Whether to perform linked edits of associated ranges, if the language server supports it.
429 // For example, when editing opening <html> tag, the contents of the closing </html> tag will be edited as well.
430 "linked_edits": true,
431 // The list of language servers to use (or disable) for all languages.
432 //
433 // This is typically customized on a per-language basis.
434 "language_servers": ["..."],
435 // When to automatically save edited buffers. This setting can
436 // take four values.
437 //
438 // 1. Never automatically save:
439 // "autosave": "off",
440 // 2. Save when changing focus away from the Zed window:
441 // "autosave": "on_window_change",
442 // 3. Save when changing focus away from a specific buffer:
443 // "autosave": "on_focus_change",
444 // 4. Save when idle for a certain amount of time:
445 // "autosave": { "after_delay": {"milliseconds": 500} },
446 "autosave": "off",
447 // Settings related to the editor's tab bar.
448 "tab_bar": {
449 // Whether or not to show the tab bar in the editor
450 "show": true,
451 // Whether or not to show the navigation history buttons.
452 "show_nav_history_buttons": true
453 },
454 // Settings related to the editor's tabs
455 "tabs": {
456 // Show git status colors in the editor tabs.
457 "git_status": false,
458 // Position of the close button on the editor tabs.
459 "close_position": "right",
460 // Whether to show the file icon for a tab.
461 "file_icons": false
462 },
463 // Settings related to preview tabs.
464 "preview_tabs": {
465 // Whether preview tabs should be enabled.
466 // Preview tabs allow you to open files in preview mode, where they close automatically
467 // when you switch to another file unless you explicitly pin them.
468 // This is useful for quickly viewing files without cluttering your workspace.
469 "enabled": true,
470 // Whether to open tabs in preview mode when selected from the file finder.
471 "enable_preview_from_file_finder": false,
472 // Whether a preview tab gets replaced when code navigation is used to navigate away from the tab.
473 "enable_preview_from_code_navigation": false
474 },
475 // Whether or not to remove any trailing whitespace from lines of a buffer
476 // before saving it.
477 "remove_trailing_whitespace_on_save": true,
478 // Whether to start a new line with a comment when a previous line is a comment as well.
479 "extend_comment_on_newline": true,
480 // Whether or not to ensure there's a single newline at the end of a buffer
481 // when saving it.
482 "ensure_final_newline_on_save": true,
483 // Whether or not to perform a buffer format before saving
484 //
485 // Keep in mind, if the autosave with delay is enabled, format_on_save will be ignored
486 "format_on_save": "on",
487 // How to perform a buffer format. This setting can take 4 values:
488 //
489 // 1. Format code using the current language server:
490 // "formatter": "language_server"
491 // 2. Format code using an external command:
492 // "formatter": {
493 // "external": {
494 // "command": "prettier",
495 // "arguments": ["--stdin-filepath", "{buffer_path}"]
496 // }
497 // }
498 // 3. Format code using Zed's Prettier integration:
499 // "formatter": "prettier"
500 // 4. Default. Format files using Zed's Prettier integration (if applicable),
501 // or falling back to formatting via language server:
502 // "formatter": "auto"
503 "formatter": "auto",
504 // How to soft-wrap long lines of text.
505 // Possible values:
506 //
507 // 1. Do not soft wrap.
508 // "soft_wrap": "none",
509 // 2. Prefer a single line generally, unless an overly long line is encountered.
510 // "soft_wrap": "prefer_line",
511 // 3. Soft wrap lines that overflow the editor.
512 // "soft_wrap": "editor_width",
513 // 4. Soft wrap lines at the preferred line length.
514 // "soft_wrap": "preferred_line_length",
515 // 5. Soft wrap lines at the preferred line length or the editor width (whichever is smaller).
516 // "soft_wrap": "bounded",
517 "soft_wrap": "prefer_line",
518 // The column at which to soft-wrap lines, for buffers where soft-wrap
519 // is enabled.
520 "preferred_line_length": 80,
521 // Whether to indent lines using tab characters, as opposed to multiple
522 // spaces.
523 "hard_tabs": false,
524 // How many columns a tab should occupy.
525 "tab_size": 4,
526 // Control what info is collected by Zed.
527 "telemetry": {
528 // Send debug info like crash reports.
529 "diagnostics": true,
530 // Send anonymized usage data like what languages you're using Zed with.
531 "metrics": true
532 },
533 // Automatically update Zed. This setting may be ignored on Linux if
534 // installed through a package manager.
535 "auto_update": true,
536 // Diagnostics configuration.
537 "diagnostics": {
538 // Whether to show warnings or not by default.
539 "include_warnings": true
540 },
541 // Add files or globs of files that will be excluded by Zed entirely:
542 // they will be skipped during FS scan(s), file tree and file search
543 // will lack the corresponding file entries.
544 "file_scan_exclusions": [
545 "**/.git",
546 "**/.svn",
547 "**/.hg",
548 "**/CVS",
549 "**/.DS_Store",
550 "**/Thumbs.db",
551 "**/.classpath",
552 "**/.settings"
553 ],
554 // Git gutter behavior configuration.
555 "git": {
556 // Control whether the git gutter is shown. May take 2 values:
557 // 1. Show the gutter
558 // "git_gutter": "tracked_files"
559 // 2. Hide the gutter
560 // "git_gutter": "hide"
561 "git_gutter": "tracked_files",
562 // Control whether the git blame information is shown inline,
563 // in the currently focused line.
564 "inline_blame": {
565 "enabled": true
566 // Sets a delay after which the inline blame information is shown.
567 // Delay is restarted with every cursor movement.
568 // "delay_ms": 600
569 }
570 },
571 // Configuration for how direnv configuration should be loaded. May take 2 values:
572 // 1. Load direnv configuration through the shell hook, works for POSIX shells and fish.
573 // "load_direnv": "shell_hook"
574 // 2. Load direnv configuration using `direnv export json` directly.
575 // This can help with some shells that otherwise would not detect
576 // the direnv environment, such as nushell or elvish.
577 // "load_direnv": "direct"
578 "load_direnv": "shell_hook",
579 "inline_completions": {
580 // A list of globs representing files that inline completions should be disabled for.
581 "disabled_globs": [".env"]
582 },
583 // Settings specific to journaling
584 "journal": {
585 // The path of the directory where journal entries are stored
586 "path": "~",
587 // What format to display the hours in
588 // May take 2 values:
589 // 1. hour12
590 // 2. hour24
591 "hour_format": "hour12"
592 },
593 // Settings specific to the terminal
594 "terminal": {
595 // What shell to use when opening a terminal. May take 3 values:
596 // 1. Use the system's default terminal configuration in /etc/passwd
597 // "shell": "system"
598 // 2. A program:
599 // "shell": {
600 // "program": "sh"
601 // }
602 // 3. A program with arguments:
603 // "shell": {
604 // "with_arguments": {
605 // "program": "/bin/bash",
606 // "arguments": ["--login"]
607 // }
608 // }
609 "shell": "system",
610 // Where to dock terminals panel. Can be `left`, `right`, `bottom`.
611 "dock": "bottom",
612 // Default width when the terminal is docked to the left or right.
613 "default_width": 640,
614 // Default height when the terminal is docked to the bottom.
615 "default_height": 320,
616 // What working directory to use when launching the terminal.
617 // May take 4 values:
618 // 1. Use the current file's project directory. Will Fallback to the
619 // first project directory strategy if unsuccessful
620 // "working_directory": "current_project_directory"
621 // 2. Use the first project in this workspace's directory
622 // "working_directory": "first_project_directory"
623 // 3. Always use this platform's home directory (if we can find it)
624 // "working_directory": "always_home"
625 // 4. Always use a specific directory. This value will be shell expanded.
626 // If this path is not a valid directory the terminal will default to
627 // this platform's home directory (if we can find it)
628 // "working_directory": {
629 // "always": {
630 // "directory": "~/zed/projects/"
631 // }
632 // }
633 "working_directory": "current_project_directory",
634 // Set the cursor blinking behavior in the terminal.
635 // May take 3 values:
636 // 1. Never blink the cursor, ignoring the terminal mode
637 // "blinking": "off",
638 // 2. Default the cursor blink to off, but allow the terminal to
639 // set blinking
640 // "blinking": "terminal_controlled",
641 // 3. Always blink the cursor, ignoring the terminal mode
642 // "blinking": "on",
643 "blinking": "terminal_controlled",
644 // Set whether Alternate Scroll mode (code: ?1007) is active by default.
645 // Alternate Scroll mode converts mouse scroll events into up / down key
646 // presses when in the alternate screen (e.g. when running applications
647 // like vim or less). The terminal can still set and unset this mode.
648 // May take 2 values:
649 // 1. Default alternate scroll mode to on
650 // "alternate_scroll": "on",
651 // 2. Default alternate scroll mode to off
652 // "alternate_scroll": "off",
653 "alternate_scroll": "off",
654 // Set whether the option key behaves as the meta key.
655 // May take 2 values:
656 // 1. Rely on default platform handling of option key, on macOS
657 // this means generating certain unicode characters
658 // "option_to_meta": false,
659 // 2. Make the option keys behave as a 'meta' key, e.g. for emacs
660 // "option_to_meta": true,
661 "option_as_meta": true,
662 // Whether or not selecting text in the terminal will automatically
663 // copy to the system clipboard.
664 "copy_on_select": false,
665 // Whether to show the terminal button in the status bar
666 "button": true,
667 // Any key-value pairs added to this list will be added to the terminal's
668 // environment. Use `:` to separate multiple values.
669 "env": {
670 // "KEY": "value1:value2"
671 },
672 // Set the terminal's line height.
673 // May take 3 values:
674 // 1. Use a line height that's comfortable for reading, 1.618
675 // "line_height": "comfortable"
676 // 2. Use a standard line height, 1.3. This option is useful for TUIs,
677 // particularly if they use box characters
678 // "line_height": "standard",
679 // 3. Use a custom line height.
680 // "line_height": {
681 // "custom": 2
682 // },
683 "line_height": "comfortable",
684 // Activate the python virtual environment, if one is found, in the
685 // terminal's working directory (as resolved by the working_directory
686 // setting). Set this to "off" to disable this behavior.
687 "detect_venv": {
688 "on": {
689 // Default directories to search for virtual environments, relative
690 // to the current working directory. We recommend overriding this
691 // in your project's settings, rather than globally.
692 "directories": [".env", "env", ".venv", "venv"],
693 // Can also be `csh`, `fish`, and `nushell`
694 "activate_script": "default"
695 }
696 },
697 "toolbar": {
698 // Whether to display the terminal title in its toolbar.
699 "title": true
700 }
701 // Set the terminal's font size. If this option is not included,
702 // the terminal will default to matching the buffer's font size.
703 // "font_size": 15,
704 // Set the terminal's font family. If this option is not included,
705 // the terminal will default to matching the buffer's font family.
706 // "font_family": "Zed Plex Mono",
707 // Set the terminal's font fallbacks. If this option is not included,
708 // the terminal will default to matching the buffer's font fallbacks.
709 // This will be merged with the platform's default font fallbacks
710 // "font_fallbacks": ["FiraCode Nerd Fonts"],
711 // Sets the maximum number of lines in the terminal's scrollback buffer.
712 // Default: 10_000, maximum: 100_000 (all bigger values set will be treated as 100_000), 0 disables the scrolling.
713 // Existing terminals will not pick up this change until they are recreated.
714 // "max_scroll_history_lines": 10000,
715 },
716 "code_actions_on_format": {},
717 /// Settings related to running tasks.
718 "tasks": {
719 "variables": {}
720 },
721 // An object whose keys are language names, and whose values
722 // are arrays of filenames or extensions of files that should
723 // use those languages.
724 //
725 // For example, to treat files like `foo.notjs` as JavaScript,
726 // and `Embargo.lock` as TOML:
727 //
728 // {
729 // "JavaScript": ["notjs"],
730 // "TOML": ["Embargo.lock"]
731 // }
732 //
733 "file_types": {
734 "JSON": ["flake.lock"],
735 "JSONC": [
736 "**/.zed/**/*.json",
737 "**/zed/**/*.json",
738 "**/Zed/**/*.json",
739 "tsconfig.json",
740 "pyrightconfig.json"
741 ]
742 },
743 // The extensions that Zed should automatically install on startup.
744 //
745 // If you don't want any of these extensions, add this field to your settings
746 // and change the value to `false`.
747 "auto_install_extensions": {
748 "html": true
749 },
750 // Different settings for specific languages.
751 "languages": {
752 "Astro": {
753 "prettier": {
754 "allowed": true,
755 "plugins": ["prettier-plugin-astro"]
756 }
757 },
758 "Blade": {
759 "prettier": {
760 "allowed": true
761 }
762 },
763 "C": {
764 "format_on_save": "off",
765 "use_on_type_format": false
766 },
767 "C++": {
768 "format_on_save": "off",
769 "use_on_type_format": false
770 },
771 "CSS": {
772 "prettier": {
773 "allowed": true
774 }
775 },
776 "Elixir": {
777 "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
778 },
779 "Erlang": {
780 "language_servers": ["erlang-ls", "!elp", "..."]
781 },
782 "Go": {
783 "code_actions_on_format": {
784 "source.organizeImports": true
785 }
786 },
787 "GraphQL": {
788 "prettier": {
789 "allowed": true
790 }
791 },
792 "HEEX": {
793 "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
794 },
795 "HTML": {
796 "prettier": {
797 "allowed": true
798 }
799 },
800 "Java": {
801 "prettier": {
802 "allowed": true,
803 "plugins": ["prettier-plugin-java"]
804 }
805 },
806 "JavaScript": {
807 "language_servers": ["!typescript-language-server", "vtsls", "..."],
808 "prettier": {
809 "allowed": true
810 }
811 },
812 "JSON": {
813 "prettier": {
814 "allowed": true
815 }
816 },
817 "JSONC": {
818 "prettier": {
819 "allowed": true
820 }
821 },
822 "Markdown": {
823 "format_on_save": "off",
824 "use_on_type_format": false,
825 "prettier": {
826 "allowed": true
827 }
828 },
829 "PHP": {
830 "language_servers": ["phpactor", "!intelephense", "..."],
831 "prettier": {
832 "allowed": true,
833 "plugins": ["@prettier/plugin-php"],
834 "parser": "php"
835 }
836 },
837 "Ruby": {
838 "language_servers": ["solargraph", "!ruby-lsp", "!rubocop", "..."]
839 },
840 "SCSS": {
841 "prettier": {
842 "allowed": true
843 }
844 },
845 "SQL": {
846 "prettier": {
847 "allowed": true,
848 "plugins": ["prettier-plugin-sql"]
849 }
850 },
851 "Starlark": {
852 "language_servers": ["starpls", "!buck2-lsp", "..."]
853 },
854 "Svelte": {
855 "language_servers": ["svelte-language-server", "..."],
856 "prettier": {
857 "allowed": true,
858 "plugins": ["prettier-plugin-svelte"]
859 }
860 },
861 "TSX": {
862 "language_servers": ["!typescript-language-server", "vtsls", "..."],
863 "prettier": {
864 "allowed": true
865 }
866 },
867 "Twig": {
868 "prettier": {
869 "allowed": true
870 }
871 },
872 "TypeScript": {
873 "language_servers": ["!typescript-language-server", "vtsls", "..."],
874 "prettier": {
875 "allowed": true
876 }
877 },
878 "Vue.js": {
879 "language_servers": ["vue-language-server", "..."],
880 "prettier": {
881 "allowed": true
882 }
883 },
884 "XML": {
885 "prettier": {
886 "allowed": true,
887 "plugins": ["@prettier/plugin-xml"]
888 }
889 },
890 "YAML": {
891 "prettier": {
892 "allowed": true
893 }
894 }
895 },
896 // Different settings for specific language models.
897 "language_models": {
898 "anthropic": {
899 "version": "1",
900 "api_url": "https://api.anthropic.com"
901 },
902 "google": {
903 "api_url": "https://generativelanguage.googleapis.com"
904 },
905 "ollama": {
906 "api_url": "http://localhost:11434",
907 "low_speed_timeout_in_seconds": 60
908 },
909 "openai": {
910 "version": "1",
911 "api_url": "https://api.openai.com/v1"
912 }
913 },
914 // Zed's Prettier integration settings.
915 // Allows to enable/disable formatting with Prettier
916 // and configure default Prettier, used when no project-level Prettier installation is found.
917 "prettier": {
918 // // Whether to consider prettier formatter or not when attempting to format a file.
919 // "allowed": false,
920 //
921 // // Use regular Prettier json configuration.
922 // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
923 // // the project has no other Prettier installed.
924 // "plugins": [],
925 //
926 // // Use regular Prettier json configuration.
927 // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
928 // // the project has no other Prettier installed.
929 // "trailingComma": "es5",
930 // "tabWidth": 4,
931 // "semi": false,
932 // "singleQuote": true
933 },
934 // LSP Specific settings.
935 "lsp": {
936 // Specify the LSP name as a key here.
937 // "rust-analyzer": {
938 // // These initialization options are merged into Zed's defaults
939 // "initialization_options": {
940 // "check": {
941 // "command": "clippy" // rust-analyzer.check.command (default: "check")
942 // }
943 // }
944 // }
945 },
946 // Jupyter settings
947 "jupyter": {
948 "enabled": true
949 // Specify the language name as the key and the kernel name as the value.
950 // "kernel_selections": {
951 // "python": "conda-base"
952 // "typescript": "deno"
953 // }
954 },
955 // Vim settings
956 "vim": {
957 "toggle_relative_line_numbers": false,
958 "use_system_clipboard": "always",
959 "use_multiline_find": false,
960 "use_smartcase_find": false,
961 "custom_digraphs": {}
962 },
963 // The server to connect to. If the environment variable
964 // ZED_SERVER_URL is set, it will override this setting.
965 "server_url": "https://zed.dev",
966 // Settings overrides to use when using Zed Preview.
967 // Mostly useful for developers who are managing multiple instances of Zed.
968 "preview": {
969 // "theme": "Andromeda"
970 },
971 // Settings overrides to use when using Zed Nightly.
972 // Mostly useful for developers who are managing multiple instances of Zed.
973 "nightly": {
974 // "theme": "Andromeda"
975 },
976 // Settings overrides to use when using Zed Stable.
977 // Mostly useful for developers who are managing multiple instances of Zed.
978 "stable": {
979 // "theme": "Andromeda"
980 },
981 // Settings overrides to use when using Zed Dev.
982 // Mostly useful for developers who are managing multiple instances of Zed.
983 "dev": {
984 // "theme": "Andromeda"
985 },
986 // Task-related settings.
987 "task": {
988 // Whether to show task status indicator in the status bar. Default: true
989 "show_status_indicator": true
990 },
991 // Whether to show full labels in line indicator or short ones
992 //
993 // Values:
994 // - `short`: "2 s, 15 l, 32 c"
995 // - `long`: "2 selections, 15 lines, 32 characters"
996 // Default: long
997 "line_indicator_format": "long",
998 // Set a proxy to use. The proxy protocol is specified by the URI scheme.
999 //
1000 // Supported URI scheme: `http`, `https`, `socks4`, `socks4a`, `socks5`,
1001 // `socks5h`. `http` will be used when no scheme is specified.
1002 //
1003 // By default no proxy will be used, or Zed will try get proxy settings from
1004 // environment variables.
1005 //
1006 // Examples:
1007 // - "proxy": "socks5://localhost:10808"
1008 // - "proxy": "http://127.0.0.1:10809"
1009 "proxy": null,
1010 // Set to configure aliases for the command palette.
1011 // When typing a query which is a key of this object, the value will be used instead.
1012 //
1013 // Examples:
1014 // {
1015 // "W": "workspace::Save"
1016 // }
1017 "command_aliases": {},
1018 // ssh_connections is an array of ssh connections.
1019 // By default this setting is null, which disables the direct ssh connection support.
1020 // You can configure these from `project: Open Remote` in the command palette.
1021 // Zed's ssh support will pull configuration from your ~/.ssh too.
1022 // Examples:
1023 // [
1024 // {
1025 // "host": "example-box",
1026 // "projects": [
1027 // {
1028 // "paths": ["/home/user/code/zed"]
1029 // }
1030 // ]
1031 // }
1032 // ]
1033 "ssh_connections": null,
1034 // Configures the Context Server Protocol binaries
1035 //
1036 // Examples:
1037 // {
1038 // "id": "server-1",
1039 // "executable": "/path",
1040 // "args": ['arg1", "args2"]
1041 // }
1042 "experimental.context_servers": {
1043 "servers": []
1044 }
1045}