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