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