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