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": ["**/.zed/**/*.json", "**/zed/**/*.json", "**/Zed/**/*.json", "tsconfig.json"]
734 },
735 // The extensions that Zed should automatically install on startup.
736 //
737 // If you don't want any of these extensions, add this field to your settings
738 // and change the value to `false`.
739 "auto_install_extensions": {
740 "html": true
741 },
742 // Different settings for specific languages.
743 "languages": {
744 "Astro": {
745 "prettier": {
746 "allowed": true,
747 "plugins": ["prettier-plugin-astro"]
748 }
749 },
750 "Blade": {
751 "prettier": {
752 "allowed": true
753 }
754 },
755 "C": {
756 "format_on_save": "off",
757 "use_on_type_format": false
758 },
759 "C++": {
760 "format_on_save": "off",
761 "use_on_type_format": false
762 },
763 "CSS": {
764 "prettier": {
765 "allowed": true
766 }
767 },
768 "Elixir": {
769 "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
770 },
771 "Erlang": {
772 "language_servers": ["erlang-ls", "!elp", "..."]
773 },
774 "Go": {
775 "code_actions_on_format": {
776 "source.organizeImports": true
777 }
778 },
779 "GraphQL": {
780 "prettier": {
781 "allowed": true
782 }
783 },
784 "HEEX": {
785 "language_servers": ["elixir-ls", "!next-ls", "!lexical", "..."]
786 },
787 "HTML": {
788 "prettier": {
789 "allowed": true
790 }
791 },
792 "Java": {
793 "prettier": {
794 "allowed": true,
795 "plugins": ["prettier-plugin-java"]
796 }
797 },
798 "JavaScript": {
799 "language_servers": ["!typescript-language-server", "vtsls", "..."],
800 "prettier": {
801 "allowed": true
802 }
803 },
804 "JSON": {
805 "prettier": {
806 "allowed": true
807 }
808 },
809 "JSONC": {
810 "prettier": {
811 "allowed": true
812 }
813 },
814 "Markdown": {
815 "format_on_save": "off",
816 "use_on_type_format": false,
817 "prettier": {
818 "allowed": true
819 }
820 },
821 "PHP": {
822 "language_servers": ["phpactor", "!intelephense", "..."],
823 "prettier": {
824 "allowed": true,
825 "plugins": ["@prettier/plugin-php"],
826 "parser": "php"
827 }
828 },
829 "Ruby": {
830 "language_servers": ["solargraph", "!ruby-lsp", "!rubocop", "..."]
831 },
832 "SCSS": {
833 "prettier": {
834 "allowed": true
835 }
836 },
837 "SQL": {
838 "prettier": {
839 "allowed": true,
840 "plugins": ["prettier-plugin-sql"]
841 }
842 },
843 "Starlark": {
844 "language_servers": ["starpls", "!buck2-lsp", "..."]
845 },
846 "Svelte": {
847 "language_servers": ["svelte-language-server", "..."],
848 "prettier": {
849 "allowed": true,
850 "plugins": ["prettier-plugin-svelte"]
851 }
852 },
853 "TSX": {
854 "language_servers": ["!typescript-language-server", "vtsls", "..."],
855 "prettier": {
856 "allowed": true
857 }
858 },
859 "Twig": {
860 "prettier": {
861 "allowed": true
862 }
863 },
864 "TypeScript": {
865 "language_servers": ["!typescript-language-server", "vtsls", "..."],
866 "prettier": {
867 "allowed": true
868 }
869 },
870 "Vue.js": {
871 "language_servers": ["vue-language-server", "..."],
872 "prettier": {
873 "allowed": true
874 }
875 },
876 "XML": {
877 "prettier": {
878 "allowed": true,
879 "plugins": ["@prettier/plugin-xml"]
880 }
881 },
882 "YAML": {
883 "prettier": {
884 "allowed": true
885 }
886 }
887 },
888 // Different settings for specific language models.
889 "language_models": {
890 "anthropic": {
891 "version": "1",
892 "api_url": "https://api.anthropic.com"
893 },
894 "google": {
895 "api_url": "https://generativelanguage.googleapis.com"
896 },
897 "ollama": {
898 "api_url": "http://localhost:11434",
899 "low_speed_timeout_in_seconds": 60
900 },
901 "openai": {
902 "version": "1",
903 "api_url": "https://api.openai.com/v1"
904 }
905 },
906 // Zed's Prettier integration settings.
907 // Allows to enable/disable formatting with Prettier
908 // and configure default Prettier, used when no project-level Prettier installation is found.
909 "prettier": {
910 // // Whether to consider prettier formatter or not when attempting to format a file.
911 // "allowed": false,
912 //
913 // // Use regular Prettier json configuration.
914 // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
915 // // the project has no other Prettier installed.
916 // "plugins": [],
917 //
918 // // Use regular Prettier json configuration.
919 // // If Prettier is allowed, Zed will use this for its Prettier instance for any applicable file, if
920 // // the project has no other Prettier installed.
921 // "trailingComma": "es5",
922 // "tabWidth": 4,
923 // "semi": false,
924 // "singleQuote": true
925 },
926 // LSP Specific settings.
927 "lsp": {
928 // Specify the LSP name as a key here.
929 // "rust-analyzer": {
930 // // These initialization options are merged into Zed's defaults
931 // "initialization_options": {
932 // "check": {
933 // "command": "clippy" // rust-analyzer.check.command (default: "check")
934 // }
935 // }
936 // }
937 },
938 // Jupyter settings
939 "jupyter": {
940 "enabled": true
941 // Specify the language name as the key and the kernel name as the value.
942 // "kernel_selections": {
943 // "python": "conda-base"
944 // "typescript": "deno"
945 // }
946 },
947 // Vim settings
948 "vim": {
949 "use_system_clipboard": "always",
950 "use_multiline_find": false,
951 "use_smartcase_find": false,
952 "custom_digraphs": {}
953 },
954 // The server to connect to. If the environment variable
955 // ZED_SERVER_URL is set, it will override this setting.
956 "server_url": "https://zed.dev",
957 // Settings overrides to use when using Zed Preview.
958 // Mostly useful for developers who are managing multiple instances of Zed.
959 "preview": {
960 // "theme": "Andromeda"
961 },
962 // Settings overrides to use when using Zed Nightly.
963 // Mostly useful for developers who are managing multiple instances of Zed.
964 "nightly": {
965 // "theme": "Andromeda"
966 },
967 // Settings overrides to use when using Zed Stable.
968 // Mostly useful for developers who are managing multiple instances of Zed.
969 "stable": {
970 // "theme": "Andromeda"
971 },
972 // Settings overrides to use when using Zed Dev.
973 // Mostly useful for developers who are managing multiple instances of Zed.
974 "dev": {
975 // "theme": "Andromeda"
976 },
977 // Task-related settings.
978 "task": {
979 // Whether to show task status indicator in the status bar. Default: true
980 "show_status_indicator": true
981 },
982 // Whether to show full labels in line indicator or short ones
983 //
984 // Values:
985 // - `short`: "2 s, 15 l, 32 c"
986 // - `long`: "2 selections, 15 lines, 32 characters"
987 // Default: long
988 "line_indicator_format": "long",
989 // Set a proxy to use. The proxy protocol is specified by the URI scheme.
990 //
991 // Supported URI scheme: `http`, `https`, `socks4`, `socks4a`, `socks5`,
992 // `socks5h`. `http` will be used when no scheme is specified.
993 //
994 // By default no proxy will be used, or Zed will try get proxy settings from
995 // environment variables.
996 //
997 // Examples:
998 // - "proxy": "socks5://localhost:10808"
999 // - "proxy": "http://127.0.0.1:10809"
1000 "proxy": null,
1001 // Set to configure aliases for the command palette.
1002 // When typing a query which is a key of this object, the value will be used instead.
1003 //
1004 // Examples:
1005 // {
1006 // "W": "workspace::Save"
1007 // }
1008 "command_aliases": {},
1009 // ssh_connections is an array of ssh connections.
1010 // By default this setting is null, which disables the direct ssh connection support.
1011 // You can configure these from `project: Open Remote` in the command palette.
1012 // Zed's ssh support will pull configuration from your ~/.ssh too.
1013 // Examples:
1014 // [
1015 // {
1016 // "host": "example-box",
1017 // "projects": [
1018 // {
1019 // "paths": ["/home/user/code/zed"]
1020 // }
1021 // ]
1022 // }
1023 // ]
1024 "ssh_connections": null,
1025 // Configures the Context Server Protocol binaries
1026 //
1027 // Examples:
1028 // {
1029 // "id": "server-1",
1030 // "executable": "/path",
1031 // "args": ['arg1", "args2"]
1032 // }
1033 "experimental.context_servers": {
1034 "servers": []
1035 }
1036}