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