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 // Whether to show the project panel button in the status bar
216 "button": true,
217 // Default width of the project panel.
218 "default_width": 240,
219 // Where to dock the project panel. Can be 'left' or 'right'.
220 "dock": "left",
221 // Whether to show file icons in the project panel.
222 "file_icons": true,
223 // Whether to show folder icons or chevrons for directories in the project panel.
224 "folder_icons": true,
225 // Whether to show the git status in the project panel.
226 "git_status": true,
227 // Amount of indentation for nested items.
228 "indent_size": 20,
229 // Whether to reveal it in the project panel automatically,
230 // when a corresponding project entry becomes active.
231 // Gitignored entries are never auto revealed.
232 "auto_reveal_entries": true,
233 /// Whether to fold directories automatically
234 /// when a directory has only one directory inside.
235 "auto_fold_dirs": false
236 },
237 "collaboration_panel": {
238 // Whether to show the collaboration panel button in the status bar.
239 "button": true,
240 // Where to dock the collaboration panel. Can be 'left' or 'right'.
241 "dock": "left",
242 // Default width of the collaboration panel.
243 "default_width": 240
244 },
245 "chat_panel": {
246 // Whether to show the chat panel button in the status bar.
247 "button": true,
248 // Where to the chat panel. Can be 'left' or 'right'.
249 "dock": "right",
250 // Default width of the chat panel.
251 "default_width": 240
252 },
253 "message_editor": {
254 // Whether to automatically replace emoji shortcodes with emoji characters.
255 // For example: typing `:wave:` gets replaced with `👋`.
256 "auto_replace_emoji_shortcode": true
257 },
258 "notification_panel": {
259 // Whether to show the notification panel button in the status bar.
260 "button": true,
261 // Where to dock the notification panel. Can be 'left' or 'right'.
262 "dock": "right",
263 // Default width of the notification panel.
264 "default_width": 380
265 },
266 "assistant": {
267 // Version of this setting.
268 "version": "1",
269 // Whether the assistant is enabled.
270 "enabled": true,
271 // Whether to show the assistant panel button in the status bar.
272 "button": true,
273 // Where to dock the assistant panel. Can be 'left', 'right' or 'bottom'.
274 "dock": "right",
275 // Default width when the assistant is docked to the left or right.
276 "default_width": 640,
277 // Default height when the assistant is docked to the bottom.
278 "default_height": 320,
279 // AI provider.
280 "provider": {
281 "name": "openai",
282 // The default model to use when starting new conversations. This
283 // setting can take three values:
284 //
285 // 1. "gpt-3.5-turbo"
286 // 2. "gpt-4"
287 // 3. "gpt-4-turbo-preview"
288 "default_model": "gpt-4-turbo-preview"
289 }
290 },
291 // Whether the screen sharing icon is shown in the os status bar.
292 "show_call_status_icon": true,
293 // Whether to use language servers to provide code intelligence.
294 "enable_language_server": true,
295 // When to automatically save edited buffers. This setting can
296 // take four values.
297 //
298 // 1. Never automatically save:
299 // "autosave": "off",
300 // 2. Save when changing focus away from the Zed window:
301 // "autosave": "on_window_change",
302 // 3. Save when changing focus away from a specific buffer:
303 // "autosave": "on_focus_change",
304 // 4. Save when idle for a certain amount of time:
305 // "autosave": { "after_delay": {"milliseconds": 500} },
306 "autosave": "off",
307 // Settings related to the editor's tab bar.
308 "tab_bar": {
309 // Whether or not to show the navigation history buttons.
310 "show_nav_history_buttons": true
311 },
312 // Settings related to the editor's tabs
313 "tabs": {
314 // Show git status colors in the editor tabs.
315 "git_status": false,
316 // Position of the close button on the editor tabs.
317 "close_position": "right"
318 },
319 // Settings related to preview tabs.
320 "preview_tabs": {
321 // Whether preview tabs should be enabled.
322 // Preview tabs allow you to open files in preview mode, where they close automatically
323 // when you switch to another file unless you explicitly pin them.
324 // This is useful for quickly viewing files without cluttering your workspace.
325 "enabled": true,
326 // Whether to open files in preview mode when selected from the file finder.
327 "enable_preview_from_file_finder": false
328 },
329 // Whether or not to remove any trailing whitespace from lines of a buffer
330 // before saving it.
331 "remove_trailing_whitespace_on_save": true,
332 // Whether to start a new line with a comment when a previous line is a comment as well.
333 "extend_comment_on_newline": true,
334 // Whether or not to ensure there's a single newline at the end of a buffer
335 // when saving it.
336 "ensure_final_newline_on_save": true,
337 // Whether or not to perform a buffer format before saving
338 "format_on_save": "on",
339 // How to perform a buffer format. This setting can take 4 values:
340 //
341 // 1. Format code using the current language server:
342 // "formatter": "language_server"
343 // 2. Format code using an external command:
344 // "formatter": {
345 // "external": {
346 // "command": "prettier",
347 // "arguments": ["--stdin-filepath", "{buffer_path}"]
348 // }
349 // }
350 // 3. Format code using Zed's Prettier integration:
351 // "formatter": "prettier"
352 // 4. Default. Format files using Zed's Prettier integration (if applicable),
353 // or falling back to formatting via language server:
354 // "formatter": "auto"
355 "formatter": "auto",
356 // How to soft-wrap long lines of text. This setting can take
357 // three values:
358 //
359 // 1. Do not soft wrap.
360 // "soft_wrap": "none",
361 // 2. Soft wrap lines that overflow the editor:
362 // "soft_wrap": "editor_width",
363 // 3. Soft wrap lines at the preferred line length
364 // "soft_wrap": "preferred_line_length",
365 "soft_wrap": "none",
366 // The column at which to soft-wrap lines, for buffers where soft-wrap
367 // is enabled.
368 "preferred_line_length": 80,
369 // Whether to indent lines using tab characters, as opposed to multiple
370 // spaces.
371 "hard_tabs": false,
372 // How many columns a tab should occupy.
373 "tab_size": 4,
374 // Control what info is collected by Zed.
375 "telemetry": {
376 // Send debug info like crash reports.
377 "diagnostics": true,
378 // Send anonymized usage data like what languages you're using Zed with.
379 "metrics": true
380 },
381 // Automatically update Zed
382 "auto_update": true,
383 // Diagnostics configuration.
384 "diagnostics": {
385 // Whether to show warnings or not by default.
386 "include_warnings": true
387 },
388 // Add files or globs of files that will be excluded by Zed entirely:
389 // they will be skipped during FS scan(s), file tree and file search
390 // will lack the corresponding file entries.
391 "file_scan_exclusions": [
392 "**/.git",
393 "**/.svn",
394 "**/.hg",
395 "**/CVS",
396 "**/.DS_Store",
397 "**/Thumbs.db",
398 "**/.classpath",
399 "**/.settings"
400 ],
401 // Git gutter behavior configuration.
402 "git": {
403 // Control whether the git gutter is shown. May take 2 values:
404 // 1. Show the gutter
405 // "git_gutter": "tracked_files"
406 // 2. Hide the gutter
407 // "git_gutter": "hide"
408 "git_gutter": "tracked_files",
409 // Control whether the git blame information is shown inline,
410 // in the currently focused line.
411 "inline_blame": {
412 "enabled": true
413 // Sets a delay after which the inline blame information is shown.
414 // Delay is restarted with every cursor movement.
415 // "delay_ms": 600
416 }
417 },
418 "copilot": {
419 // The set of glob patterns for which copilot should be disabled
420 // in any matching file.
421 "disabled_globs": [".env"]
422 },
423 // Settings specific to journaling
424 "journal": {
425 // The path of the directory where journal entries are stored
426 "path": "~",
427 // What format to display the hours in
428 // May take 2 values:
429 // 1. hour12
430 // 2. hour24
431 "hour_format": "hour12"
432 },
433 // Settings specific to the terminal
434 "terminal": {
435 // What shell to use when opening a terminal. May take 3 values:
436 // 1. Use the system's default terminal configuration in /etc/passwd
437 // "shell": "system"
438 // 2. A program:
439 // "shell": {
440 // "program": "sh"
441 // }
442 // 3. A program with arguments:
443 // "shell": {
444 // "with_arguments": {
445 // "program": "/bin/bash",
446 // "arguments": ["--login"]
447 // }
448 // }
449 "shell": "system",
450 // Where to dock terminals panel. Can be 'left', 'right', 'bottom'.
451 "dock": "bottom",
452 // Default width when the terminal is docked to the left or right.
453 "default_width": 640,
454 // Default height when the terminal is docked to the bottom.
455 "default_height": 320,
456 // What working directory to use when launching the terminal.
457 // May take 4 values:
458 // 1. Use the current file's project directory. Will Fallback to the
459 // first project directory strategy if unsuccessful
460 // "working_directory": "current_project_directory"
461 // 2. Use the first project in this workspace's directory
462 // "working_directory": "first_project_directory"
463 // 3. Always use this platform's home directory (if we can find it)
464 // "working_directory": "always_home"
465 // 4. Always use a specific directory. This value will be shell expanded.
466 // If this path is not a valid directory the terminal will default to
467 // this platform's home directory (if we can find it)
468 // "working_directory": {
469 // "always": {
470 // "directory": "~/zed/projects/"
471 // }
472 // }
473 "working_directory": "current_project_directory",
474 // Set the cursor blinking behavior in the terminal.
475 // May take 3 values:
476 // 1. Never blink the cursor, ignoring the terminal mode
477 // "blinking": "off",
478 // 2. Default the cursor blink to off, but allow the terminal to
479 // set blinking
480 // "blinking": "terminal_controlled",
481 // 3. Always blink the cursor, ignoring the terminal mode
482 // "blinking": "on",
483 "blinking": "terminal_controlled",
484 // Set whether Alternate Scroll mode (code: ?1007) is active by default.
485 // Alternate Scroll mode converts mouse scroll events into up / down key
486 // presses when in the alternate screen (e.g. when running applications
487 // like vim or less). The terminal can still set and unset this mode.
488 // May take 2 values:
489 // 1. Default alternate scroll mode to on
490 // "alternate_scroll": "on",
491 // 2. Default alternate scroll mode to off
492 // "alternate_scroll": "off",
493 "alternate_scroll": "off",
494 // Set whether the option key behaves as the meta key.
495 // May take 2 values:
496 // 1. Rely on default platform handling of option key, on macOS
497 // this means generating certain unicode characters
498 // "option_to_meta": false,
499 // 2. Make the option keys behave as a 'meta' key, e.g. for emacs
500 // "option_to_meta": true,
501 "option_as_meta": false,
502 // Whether or not selecting text in the terminal will automatically
503 // copy to the system clipboard.
504 "copy_on_select": false,
505 // Whether to show the terminal button in the status bar
506 "button": true,
507 // Any key-value pairs added to this list will be added to the terminal's
508 // environment. Use `:` to separate multiple values.
509 "env": {
510 // "KEY": "value1:value2"
511 },
512 // Set the terminal's line height.
513 // May take 3 values:
514 // 1. Use a line height that's comfortable for reading, 1.618
515 // "line_height": "comfortable"
516 // 2. Use a standard line height, 1.3. This option is useful for TUIs,
517 // particularly if they use box characters
518 // "line_height": "standard",
519 // 3. Use a custom line height.
520 // "line_height": {
521 // "custom": 2
522 // },
523 "line_height": "comfortable",
524 // Activate the python virtual environment, if one is found, in the
525 // terminal's working directory (as resolved by the working_directory
526 // setting). Set this to "off" to disable this behavior.
527 "detect_venv": {
528 "on": {
529 // Default directories to search for virtual environments, relative
530 // to the current working directory. We recommend overriding this
531 // in your project's settings, rather than globally.
532 "directories": [".env", "env", ".venv", "venv"],
533 // Can also be 'csh', 'fish', and `nushell`
534 "activate_script": "default"
535 }
536 },
537 "toolbar": {
538 // Whether to display the terminal title in its toolbar.
539 "title": true
540 }
541 // Set the terminal's font size. If this option is not included,
542 // the terminal will default to matching the buffer's font size.
543 // "font_size": 15,
544 // Set the terminal's font family. If this option is not included,
545 // the terminal will default to matching the buffer's font family.
546 // "font_family": "Zed Mono",
547 // Sets the maximum number of lines in the terminal's scrollback buffer.
548 // Default: 10_000, maximum: 100_000 (all bigger values set will be treated as 100_000), 0 disables the scrolling.
549 // Existing terminals will not pick up this change until they are recreated.
550 // "max_scroll_history_lines": 10000,
551 },
552 // Settings specific to our elixir integration
553 "elixir": {
554 // Change the LSP zed uses for elixir.
555 // Note that changing this setting requires a restart of Zed
556 // to take effect.
557 //
558 // May take 3 values:
559 // 1. Use the standard ElixirLS, this is the default
560 // "lsp": "elixir_ls"
561 // 2. Use the experimental NextLs
562 // "lsp": "next_ls",
563 // 3. Use a language server installed locally on your machine:
564 // "lsp": {
565 // "local": {
566 // "path": "~/next-ls/bin/start",
567 // "arguments": ["--stdio"]
568 // }
569 // },
570 //
571 "lsp": "elixir_ls"
572 },
573 // Settings specific to our deno integration
574 "deno": {
575 "enable": false
576 },
577 "code_actions_on_format": {},
578 // An object whose keys are language names, and whose values
579 // are arrays of filenames or extensions of files that should
580 // use those languages.
581 //
582 // For example, to treat files like `foo.notjs` as JavaScript,
583 // and 'Embargo.lock' as TOML:
584 //
585 // {
586 // "JavaScript": ["notjs"],
587 // "TOML": ["Embargo.lock"]
588 // }
589 //
590 "file_types": {},
591 // Different settings for specific languages.
592 "languages": {
593 "C++": {
594 "format_on_save": "off"
595 },
596 "C": {
597 "format_on_save": "off"
598 },
599 "Gleam": {
600 "tab_size": 2
601 },
602 "Go": {
603 "code_actions_on_format": {
604 "source.organizeImports": true
605 }
606 },
607 "Make": {
608 "hard_tabs": true
609 },
610 "Prisma": {
611 "tab_size": 2
612 }
613 },
614 // Zed's Prettier integration settings.
615 // If Prettier is enabled, Zed will use this for its Prettier instance for any applicable file, if
616 // project has no other Prettier installed.
617 "prettier": {
618 // Use regular Prettier json configuration:
619 // "trailingComma": "es5",
620 // "tabWidth": 4,
621 // "semi": false,
622 // "singleQuote": true
623 },
624 // LSP Specific settings.
625 "lsp": {
626 // Specify the LSP name as a key here.
627 // "rust-analyzer": {
628 // // These initialization options are merged into Zed's defaults
629 // "initialization_options": {
630 // "check": {
631 // "command": "clippy" // rust-analyzer.check.command (default: "check")
632 // }
633 // }
634 // }
635 },
636 // Vim settings
637 "vim": {
638 "use_system_clipboard": "always",
639 "use_multiline_find": false,
640 "use_smartcase_find": false
641 },
642 // The server to connect to. If the environment variable
643 // ZED_SERVER_URL is set, it will override this setting.
644 "server_url": "https://zed.dev",
645 // Settings overrides to use when using Zed Preview.
646 // Mostly useful for developers who are managing multiple instances of Zed.
647 "preview": {
648 // "theme": "Andromeda"
649 },
650 // Settings overrides to use when using Zed Nightly.
651 // Mostly useful for developers who are managing multiple instances of Zed.
652 "nightly": {
653 // "theme": "Andromeda"
654 },
655 // Settings overrides to use when using Zed Stable.
656 // Mostly useful for developers who are managing multiple instances of Zed.
657 "stable": {
658 // "theme": "Andromeda"
659 },
660 // Settings overrides to use when using Zed Dev.
661 // Mostly useful for developers who are managing multiple instances of Zed.
662 "dev": {
663 // "theme": "Andromeda"
664 },
665 // Task-related settings.
666 "task": {
667 // Whether to show task status indicator in the status bar. Default: true
668 "show_status_indicator": true
669 },
670 // Whether to show full labels in line indicator or short ones
671 //
672 // Values:
673 // - `short`: "2 s, 15 l, 32 c"
674 // - `long`: "2 selections, 15 lines, 32 characters"
675 // Default: long
676 "line_indicator_format": "long"
677}