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