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