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