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