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 "soft_wrap": "prefer_line",
514 // The column at which to soft-wrap lines, for buffers where soft-wrap
515 // is enabled.
516 "preferred_line_length": 80,
517 // Whether to indent lines using tab characters, as opposed to multiple
518 // spaces.
519 "hard_tabs": false,
520 // How many columns a tab should occupy.
521 "tab_size": 4,
522 // Control what info is collected by Zed.
523 "telemetry": {
524 // Send debug info like crash reports.
525 "diagnostics": true,
526 // Send anonymized usage data like what languages you're using Zed with.
527 "metrics": true
528 },
529 // Automatically update Zed. This setting may be ignored on Linux if
530 // installed through a package manager.
531 "auto_update": true,
532 // Diagnostics configuration.
533 "diagnostics": {
534 // Whether to show warnings or not by default.
535 "include_warnings": true
536 },
537 // Add files or globs of files that will be excluded by Zed entirely:
538 // they will be skipped during FS scan(s), file tree and file search
539 // will lack the corresponding file entries.
540 "file_scan_exclusions": [
541 "**/.git",
542 "**/.svn",
543 "**/.hg",
544 "**/CVS",
545 "**/.DS_Store",
546 "**/Thumbs.db",
547 "**/.classpath",
548 "**/.settings"
549 ],
550 // Git gutter behavior configuration.
551 "git": {
552 // Control whether the git gutter is shown. May take 2 values:
553 // 1. Show the gutter
554 // "git_gutter": "tracked_files"
555 // 2. Hide the gutter
556 // "git_gutter": "hide"
557 "git_gutter": "tracked_files",
558 // Control whether the git blame information is shown inline,
559 // in the currently focused line.
560 "inline_blame": {
561 "enabled": true
562 // Sets a delay after which the inline blame information is shown.
563 // Delay is restarted with every cursor movement.
564 // "delay_ms": 600
565 }
566 },
567 // Configuration for how direnv configuration should be loaded. May take 2 values:
568 // 1. Load direnv configuration through the shell hook, works for POSIX shells and fish.
569 // "load_direnv": "shell_hook"
570 // 2. Load direnv configuration using `direnv export json` directly.
571 // This can help with some shells that otherwise would not detect
572 // the direnv environment, such as nushell or elvish.
573 // "load_direnv": "direct"
574 "load_direnv": "shell_hook",
575 "inline_completions": {
576 // A list of globs representing files that inline completions should be disabled for.
577 "disabled_globs": [".env"]
578 },
579 // Settings specific to journaling
580 "journal": {
581 // The path of the directory where journal entries are stored
582 "path": "~",
583 // What format to display the hours in
584 // May take 2 values:
585 // 1. hour12
586 // 2. hour24
587 "hour_format": "hour12"
588 },
589 // Settings specific to the terminal
590 "terminal": {
591 // What shell to use when opening a terminal. May take 3 values:
592 // 1. Use the system's default terminal configuration in /etc/passwd
593 // "shell": "system"
594 // 2. A program:
595 // "shell": {
596 // "program": "sh"
597 // }
598 // 3. A program with arguments:
599 // "shell": {
600 // "with_arguments": {
601 // "program": "/bin/bash",
602 // "arguments": ["--login"]
603 // }
604 // }
605 "shell": "system",
606 // Where to dock terminals panel. Can be `left`, `right`, `bottom`.
607 "dock": "bottom",
608 // Default width when the terminal is docked to the left or right.
609 "default_width": 640,
610 // Default height when the terminal is docked to the bottom.
611 "default_height": 320,
612 // What working directory to use when launching the terminal.
613 // May take 4 values:
614 // 1. Use the current file's project directory. Will Fallback to the
615 // first project directory strategy if unsuccessful
616 // "working_directory": "current_project_directory"
617 // 2. Use the first project in this workspace's directory
618 // "working_directory": "first_project_directory"
619 // 3. Always use this platform's home directory (if we can find it)
620 // "working_directory": "always_home"
621 // 4. Always use a specific directory. This value will be shell expanded.
622 // If this path is not a valid directory the terminal will default to
623 // this platform's home directory (if we can find it)
624 // "working_directory": {
625 // "always": {
626 // "directory": "~/zed/projects/"
627 // }
628 // }
629 "working_directory": "current_project_directory",
630 // Set the cursor blinking behavior in the terminal.
631 // May take 3 values:
632 // 1. Never blink the cursor, ignoring the terminal mode
633 // "blinking": "off",
634 // 2. Default the cursor blink to off, but allow the terminal to
635 // set blinking
636 // "blinking": "terminal_controlled",
637 // 3. Always blink the cursor, ignoring the terminal mode
638 // "blinking": "on",
639 "blinking": "terminal_controlled",
640 // Set whether Alternate Scroll mode (code: ?1007) is active by default.
641 // Alternate Scroll mode converts mouse scroll events into up / down key
642 // presses when in the alternate screen (e.g. when running applications
643 // like vim or less). The terminal can still set and unset this mode.
644 // May take 2 values:
645 // 1. Default alternate scroll mode to on
646 // "alternate_scroll": "on",
647 // 2. Default alternate scroll mode to off
648 // "alternate_scroll": "off",
649 "alternate_scroll": "off",
650 // Set whether the option key behaves as the meta key.
651 // May take 2 values:
652 // 1. Rely on default platform handling of option key, on macOS
653 // this means generating certain unicode characters
654 // "option_to_meta": false,
655 // 2. Make the option keys behave as a 'meta' key, e.g. for emacs
656 // "option_to_meta": true,
657 "option_as_meta": true,
658 // Whether or not selecting text in the terminal will automatically
659 // copy to the system clipboard.
660 "copy_on_select": false,
661 // Whether to show the terminal button in the status bar
662 "button": true,
663 // Any key-value pairs added to this list will be added to the terminal's
664 // environment. Use `:` to separate multiple values.
665 "env": {
666 // "KEY": "value1:value2"
667 },
668 // Set the terminal's line height.
669 // May take 3 values:
670 // 1. Use a line height that's comfortable for reading, 1.618
671 // "line_height": "comfortable"
672 // 2. Use a standard line height, 1.3. This option is useful for TUIs,
673 // particularly if they use box characters
674 // "line_height": "standard",
675 // 3. Use a custom line height.
676 // "line_height": {
677 // "custom": 2
678 // },
679 "line_height": "comfortable",
680 // Activate the python virtual environment, if one is found, in the
681 // terminal's working directory (as resolved by the working_directory
682 // setting). Set this to "off" to disable this behavior.
683 "detect_venv": {
684 "on": {
685 // Default directories to search for virtual environments, relative
686 // to the current working directory. We recommend overriding this
687 // in your project's settings, rather than globally.
688 "directories": [".env", "env", ".venv", "venv"],
689 // Can also be `csh`, `fish`, and `nushell`
690 "activate_script": "default"
691 }
692 },
693 "toolbar": {
694 // Whether to display the terminal title in its toolbar.
695 "title": true
696 }
697 // Set the terminal's font size. If this option is not included,
698 // the terminal will default to matching the buffer's font size.
699 // "font_size": 15,
700 // Set the terminal's font family. If this option is not included,
701 // the terminal will default to matching the buffer's font family.
702 // "font_family": "Zed Plex Mono",
703 // Set the terminal's font fallbacks. If this option is not included,
704 // the terminal will default to matching the buffer's font fallbacks.
705 // This will be merged with the platform's default font fallbacks
706 // "font_fallbacks": ["FiraCode Nerd Fonts"],
707 // Sets the maximum number of lines in the terminal's scrollback buffer.
708 // Default: 10_000, maximum: 100_000 (all bigger values set will be treated as 100_000), 0 disables the scrolling.
709 // Existing terminals will not pick up this change until they are recreated.
710 // "max_scroll_history_lines": 10000,
711 },
712 "code_actions_on_format": {},
713 /// Settings related to running tasks.
714 "tasks": {
715 "variables": {}
716 },
717 // An object whose keys are language names, and whose values
718 // are arrays of filenames or extensions of files that should
719 // use those languages.
720 //
721 // For example, to treat files like `foo.notjs` as JavaScript,
722 // and `Embargo.lock` as TOML:
723 //
724 // {
725 // "JavaScript": ["notjs"],
726 // "TOML": ["Embargo.lock"]
727 // }
728 //
729 "file_types": {
730 "JSON": ["flake.lock"],
731 "JSONC": ["**/.zed/**/*.json", "**/zed/**/*.json", "**/Zed/**/*.json", "tsconfig.json"]
732 },
733 // The extensions that Zed should automatically install on startup.
734 //
735 // If you don't want any of these extensions, add this field to your settings
736 // and change the value to `false`.
737 "auto_install_extensions": {
738 "html": true
739 },
740 // Different settings for specific languages.
741 "languages": {
742 "Astro": {
743 "prettier": {
744 "allowed": true,
745 "plugins": ["prettier-plugin-astro"]
746 }
747 },
748 "Blade": {
749 "prettier": {
750 "allowed": true
751 }
752 },
753 "C": {
754 "format_on_save": "off",
755 "use_on_type_format": false
756 },
757 "C++": {
758 "format_on_save": "off",
759 "use_on_type_format": false
760 },
761 "CSS": {
762 "prettier": {
763 "allowed": true
764 }
765 },
766 "Elixir": {
767 "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
768 },
769 "Erlang": {
770 "language_servers": ["erlang-ls", "!elp", "..."]
771 },
772 "Go": {
773 "code_actions_on_format": {
774 "source.organizeImports": true
775 }
776 },
777 "GraphQL": {
778 "prettier": {
779 "allowed": true
780 }
781 },
782 "HEEX": {
783 "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
784 },
785 "HTML": {
786 "prettier": {
787 "allowed": true
788 }
789 },
790 "Java": {
791 "prettier": {
792 "allowed": true,
793 "plugins": ["prettier-plugin-java"]
794 }
795 },
796 "JavaScript": {
797 "language_servers": ["!typescript-language-server", "vtsls", "..."],
798 "prettier": {
799 "allowed": true
800 }
801 },
802 "JSON": {
803 "prettier": {
804 "allowed": true
805 }
806 },
807 "JSONC": {
808 "prettier": {
809 "allowed": true
810 }
811 },
812 "Markdown": {
813 "format_on_save": "off",
814 "use_on_type_format": false,
815 "prettier": {
816 "allowed": true
817 }
818 },
819 "PHP": {
820 "language_servers": ["phpactor", "!intelephense", "..."],
821 "prettier": {
822 "allowed": true,
823 "plugins": ["@prettier/plugin-php"],
824 "parser": "php"
825 }
826 },
827 "Ruby": {
828 "language_servers": ["solargraph", "!ruby-lsp", "!rubocop", "..."]
829 },
830 "SCSS": {
831 "prettier": {
832 "allowed": true
833 }
834 },
835 "SQL": {
836 "prettier": {
837 "allowed": true,
838 "plugins": ["prettier-plugin-sql"]
839 }
840 },
841 "Starlark": {
842 "language_servers": ["starpls", "!buck2-lsp", "..."]
843 },
844 "Svelte": {
845 "language_servers": ["svelte-language-server", "..."],
846 "prettier": {
847 "allowed": true,
848 "plugins": ["prettier-plugin-svelte"]
849 }
850 },
851 "TSX": {
852 "language_servers": ["!typescript-language-server", "vtsls", "..."],
853 "prettier": {
854 "allowed": true
855 }
856 },
857 "Twig": {
858 "prettier": {
859 "allowed": true
860 }
861 },
862 "TypeScript": {
863 "language_servers": ["!typescript-language-server", "vtsls", "..."],
864 "prettier": {
865 "allowed": true
866 }
867 },
868 "Vue.js": {
869 "language_servers": ["vue-language-server", "..."],
870 "prettier": {
871 "allowed": true
872 }
873 },
874 "XML": {
875 "prettier": {
876 "allowed": true,
877 "plugins": ["@prettier/plugin-xml"]
878 }
879 },
880 "YAML": {
881 "prettier": {
882 "allowed": true
883 }
884 }
885 },
886 // Different settings for specific language models.
887 "language_models": {
888 "anthropic": {
889 "version": "1",
890 "api_url": "https://api.anthropic.com"
891 },
892 "google": {
893 "api_url": "https://generativelanguage.googleapis.com"
894 },
895 "ollama": {
896 "api_url": "http://localhost:11434"
897 },
898 "openai": {
899 "version": "1",
900 "api_url": "https://api.openai.com/v1"
901 }
902 },
903 // Zed's Prettier integration settings.
904 // Allows to enable/disable formatting with Prettier
905 // and configure default Prettier, used when no project-level Prettier installation is found.
906 "prettier": {
907 // // Whether to consider prettier formatter or not when attempting to format a file.
908 // "allowed": false,
909 //
910 // // Use regular Prettier json configuration.
911 // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
912 // // the project has no other Prettier installed.
913 // "plugins": [],
914 //
915 // // Use regular Prettier json configuration.
916 // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
917 // // the project has no other Prettier installed.
918 // "trailingComma": "es5",
919 // "tabWidth": 4,
920 // "semi": false,
921 // "singleQuote": true
922 },
923 // LSP Specific settings.
924 "lsp": {
925 // Specify the LSP name as a key here.
926 // "rust-analyzer": {
927 // // These initialization options are merged into Zed's defaults
928 // "initialization_options": {
929 // "check": {
930 // "command": "clippy" // rust-analyzer.check.command (default: "check")
931 // }
932 // }
933 // }
934 },
935 // Jupyter settings
936 "jupyter": {
937 "enabled": true
938 // Specify the language name as the key and the kernel name as the value.
939 // "kernel_selections": {
940 // "python": "conda-base"
941 // "typescript": "deno"
942 // }
943 },
944 // Vim settings
945 "vim": {
946 "use_system_clipboard": "always",
947 "use_multiline_find": false,
948 "use_smartcase_find": false,
949 "custom_digraphs": {}
950 },
951 // The server to connect to. If the environment variable
952 // ZED_SERVER_URL is set, it will override this setting.
953 "server_url": "https://zed.dev",
954 // Settings overrides to use when using Zed Preview.
955 // Mostly useful for developers who are managing multiple instances of Zed.
956 "preview": {
957 // "theme": "Andromeda"
958 },
959 // Settings overrides to use when using Zed Nightly.
960 // Mostly useful for developers who are managing multiple instances of Zed.
961 "nightly": {
962 // "theme": "Andromeda"
963 },
964 // Settings overrides to use when using Zed Stable.
965 // Mostly useful for developers who are managing multiple instances of Zed.
966 "stable": {
967 // "theme": "Andromeda"
968 },
969 // Settings overrides to use when using Zed Dev.
970 // Mostly useful for developers who are managing multiple instances of Zed.
971 "dev": {
972 // "theme": "Andromeda"
973 },
974 // Task-related settings.
975 "task": {
976 // Whether to show task status indicator in the status bar. Default: true
977 "show_status_indicator": true
978 },
979 // Whether to show full labels in line indicator or short ones
980 //
981 // Values:
982 // - `short`: "2 s, 15 l, 32 c"
983 // - `long`: "2 selections, 15 lines, 32 characters"
984 // Default: long
985 "line_indicator_format": "long",
986 // Set a proxy to use. The proxy protocol is specified by the URI scheme.
987 //
988 // Supported URI scheme: `http`, `https`, `socks4`, `socks4a`, `socks5`,
989 // `socks5h`. `http` will be used when no scheme is specified.
990 //
991 // By default no proxy will be used, or Zed will try get proxy settings from
992 // environment variables.
993 //
994 // Examples:
995 // - "proxy": "socks5://localhost:10808"
996 // - "proxy": "http://127.0.0.1:10809"
997 "proxy": null,
998 // Set to configure aliases for the command palette.
999 // When typing a query which is a key of this object, the value will be used instead.
1000 //
1001 // Examples:
1002 // {
1003 // "W": "workspace::Save"
1004 // }
1005 "command_aliases": {},
1006 // ssh_connections is an array of ssh connections.
1007 // By default this setting is null, which disables the direct ssh connection support.
1008 // You can configure these from `project: Open Remote` in the command palette.
1009 // Zed's ssh support will pull configuration from your ~/.ssh too.
1010 // Examples:
1011 // [
1012 // {
1013 // "host": "example-box",
1014 // "projects": [
1015 // {
1016 // "paths": ["/home/user/code/zed"]
1017 // }
1018 // ]
1019 // }
1020 // ]
1021 "ssh_connections": null,
1022 // Configures the Context Server Protocol binaries
1023 //
1024 // Examples:
1025 // {
1026 // "id": "server-1",
1027 // "executable": "/path",
1028 // "args": ['arg1", "args2"]
1029 // }
1030 "experimental.context_servers": {
1031 "servers": []
1032 }
1033}