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