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