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 softwrap 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 tabs
288 "tabs": {
289 // Show git status colors in the editor tabs.
290 "git_status": false,
291 // Position of the close button on the editor tabs.
292 "close_position": "right"
293 },
294 // Whether or not to remove any trailing whitespace from lines of a buffer
295 // before saving it.
296 "remove_trailing_whitespace_on_save": true,
297 // Whether to start a new line with a comment when a previous line is a comment as well.
298 "extend_comment_on_newline": true,
299 // Whether or not to ensure there's a single newline at the end of a buffer
300 // when saving it.
301 "ensure_final_newline_on_save": true,
302 // Whether or not to perform a buffer format before saving
303 "format_on_save": "on",
304 // How to perform a buffer format. This setting can take 4 values:
305 //
306 // 1. Format code using the current language server:
307 // "formatter": "language_server"
308 // 2. Format code using an external command:
309 // "formatter": {
310 // "external": {
311 // "command": "prettier",
312 // "arguments": ["--stdin-filepath", "{buffer_path}"]
313 // }
314 // }
315 // 3. Format code using Zed's Prettier integration:
316 // "formatter": "prettier"
317 // 4. Default. Format files using Zed's Prettier integration (if applicable),
318 // or falling back to formatting via language server:
319 // "formatter": "auto"
320 "formatter": "auto",
321 // How to soft-wrap long lines of text. This setting can take
322 // three values:
323 //
324 // 1. Do not soft wrap.
325 // "soft_wrap": "none",
326 // 2. Soft wrap lines that overflow the editor:
327 // "soft_wrap": "editor_width",
328 // 3. Soft wrap lines at the preferred line length
329 // "soft_wrap": "preferred_line_length",
330 "soft_wrap": "none",
331 // The column at which to soft-wrap lines, for buffers where soft-wrap
332 // is enabled.
333 "preferred_line_length": 80,
334 // Whether to indent lines using tab characters, as opposed to multiple
335 // spaces.
336 "hard_tabs": false,
337 // How many columns a tab should occupy.
338 "tab_size": 4,
339 // Control what info is collected by Zed.
340 "telemetry": {
341 // Send debug info like crash reports.
342 "diagnostics": true,
343 // Send anonymized usage data like what languages you're using Zed with.
344 "metrics": true
345 },
346 // Automatically update Zed
347 "auto_update": true,
348 // Diagnostics configuration.
349 "diagnostics": {
350 // Whether to show warnings or not by default.
351 "include_warnings": true
352 },
353 // Add files or globs of files that will be excluded by Zed entirely:
354 // they will be skipped during FS scan(s), file tree and file search
355 // will lack the corresponding file entries.
356 "file_scan_exclusions": [
357 "**/.git",
358 "**/.svn",
359 "**/.hg",
360 "**/CVS",
361 "**/.DS_Store",
362 "**/Thumbs.db",
363 "**/.classpath",
364 "**/.settings"
365 ],
366 // Git gutter behavior configuration.
367 "git": {
368 // Control whether the git gutter is shown. May take 2 values:
369 // 1. Show the gutter
370 // "git_gutter": "tracked_files"
371 // 2. Hide the gutter
372 // "git_gutter": "hide"
373 "git_gutter": "tracked_files"
374 },
375 "copilot": {
376 // The set of glob patterns for which copilot should be disabled
377 // in any matching file.
378 "disabled_globs": [".env"]
379 },
380 // Settings specific to journaling
381 "journal": {
382 // The path of the directory where journal entries are stored
383 "path": "~",
384 // What format to display the hours in
385 // May take 2 values:
386 // 1. hour12
387 // 2. hour24
388 "hour_format": "hour12"
389 },
390 // Settings specific to the terminal
391 "terminal": {
392 // What shell to use when opening a terminal. May take 3 values:
393 // 1. Use the system's default terminal configuration in /etc/passwd
394 // "shell": "system"
395 // 2. A program:
396 // "shell": {
397 // "program": "sh"
398 // }
399 // 3. A program with arguments:
400 // "shell": {
401 // "with_arguments": {
402 // "program": "/bin/bash",
403 // "arguments": ["--login"]
404 // }
405 // }
406 "shell": "system",
407 // Where to dock terminals panel. Can be 'left', 'right', 'bottom'.
408 "dock": "bottom",
409 // Default width when the terminal is docked to the left or right.
410 "default_width": 640,
411 // Default height when the terminal is docked to the bottom.
412 "default_height": 320,
413 // What working directory to use when launching the terminal.
414 // May take 4 values:
415 // 1. Use the current file's project directory. Will Fallback to the
416 // first project directory strategy if unsuccessful
417 // "working_directory": "current_project_directory"
418 // 2. Use the first project in this workspace's directory
419 // "working_directory": "first_project_directory"
420 // 3. Always use this platform's home directory (if we can find it)
421 // "working_directory": "always_home"
422 // 4. Always use a specific directory. This value will be shell expanded.
423 // If this path is not a valid directory the terminal will default to
424 // this platform's home directory (if we can find it)
425 // "working_directory": {
426 // "always": {
427 // "directory": "~/zed/projects/"
428 // }
429 // }
430 "working_directory": "current_project_directory",
431 // Set the cursor blinking behavior in the terminal.
432 // May take 3 values:
433 // 1. Never blink the cursor, ignoring the terminal mode
434 // "blinking": "off",
435 // 2. Default the cursor blink to off, but allow the terminal to
436 // set blinking
437 // "blinking": "terminal_controlled",
438 // 3. Always blink the cursor, ignoring the terminal mode
439 // "blinking": "on",
440 "blinking": "terminal_controlled",
441 // Set whether Alternate Scroll mode (code: ?1007) is active by default.
442 // Alternate Scroll mode converts mouse scroll events into up / down key
443 // presses when in the alternate screen (e.g. when running applications
444 // like vim or less). The terminal can still set and unset this mode.
445 // May take 2 values:
446 // 1. Default alternate scroll mode to on
447 // "alternate_scroll": "on",
448 // 2. Default alternate scroll mode to off
449 // "alternate_scroll": "off",
450 "alternate_scroll": "off",
451 // Set whether the option key behaves as the meta key.
452 // May take 2 values:
453 // 1. Rely on default platform handling of option key, on macOS
454 // this means generating certain unicode characters
455 // "option_to_meta": false,
456 // 2. Make the option keys behave as a 'meta' key, e.g. for emacs
457 // "option_to_meta": true,
458 "option_as_meta": false,
459 // Whether or not selecting text in the terminal will automatically
460 // copy to the system clipboard.
461 "copy_on_select": false,
462 // Any key-value pairs added to this list will be added to the terminal's
463 // environment. Use `:` to separate multiple values.
464 "env": {
465 // "KEY": "value1:value2"
466 },
467 // Set the terminal's line height.
468 // May take 3 values:
469 // 1. Use a line height that's comfortable for reading, 1.618
470 // "line_height": "comfortable"
471 // 2. Use a standard line height, 1.3. This option is useful for TUIs,
472 // particularly if they use box characters
473 // "line_height": "standard",
474 // 3. Use a custom line height.
475 // "line_height": {
476 // "custom": 2
477 // },
478 "line_height": "comfortable",
479 // Activate the python virtual environment, if one is found, in the
480 // terminal's working directory (as resolved by the working_directory
481 // setting). Set this to "off" to disable this behavior.
482 "detect_venv": {
483 "on": {
484 // Default directories to search for virtual environments, relative
485 // to the current working directory. We recommend overriding this
486 // in your project's settings, rather than globally.
487 "directories": [".env", "env", ".venv", "venv"],
488 // Can also be 'csh', 'fish', and `nushell`
489 "activate_script": "default"
490 }
491 },
492 "toolbar": {
493 // Whether to display the terminal title in its toolbar.
494 "title": true
495 }
496 // Set the terminal's font size. If this option is not included,
497 // the terminal will default to matching the buffer's font size.
498 // "font_size": 15,
499 // Set the terminal's font family. If this option is not included,
500 // the terminal will default to matching the buffer's font family.
501 // "font_family": "Zed Mono",
502 // Sets the maximum number of lines in the terminal's scrollback buffer.
503 // Default: 10_000, maximum: 100_000 (all bigger values set will be treated as 100_000), 0 disables the scrolling.
504 // Existing terminals will not pick up this change until they are recreated.
505 // "max_scroll_history_lines": 10000,
506 },
507 // Settings specific to our elixir integration
508 "elixir": {
509 // Change the LSP zed uses for elixir.
510 // Note that changing this setting requires a restart of Zed
511 // to take effect.
512 //
513 // May take 3 values:
514 // 1. Use the standard ElixirLS, this is the default
515 // "lsp": "elixir_ls"
516 // 2. Use the experimental NextLs
517 // "lsp": "next_ls",
518 // 3. Use a language server installed locally on your machine:
519 // "lsp": {
520 // "local": {
521 // "path": "~/next-ls/bin/start",
522 // "arguments": ["--stdio"]
523 // }
524 // },
525 //
526 "lsp": "elixir_ls"
527 },
528 // Settings specific to our deno integration
529 "deno": {
530 "enable": false
531 },
532 "code_actions_on_format": {},
533 // An object whose keys are language names, and whose values
534 // are arrays of filenames or extensions of files that should
535 // use those languages.
536 //
537 // For example, to treat files like `foo.notjs` as JavaScript,
538 // and 'Embargo.lock' as TOML:
539 //
540 // {
541 // "JavaScript": ["notjs"],
542 // "TOML": ["Embargo.lock"]
543 // }
544 //
545 "file_types": {},
546 // Different settings for specific languages.
547 "languages": {
548 "Plain Text": {
549 "soft_wrap": "preferred_line_length"
550 },
551 "Elixir": {
552 "tab_size": 2
553 },
554 "Gleam": {
555 "tab_size": 2
556 },
557 "Go": {
558 "tab_size": 4,
559 "hard_tabs": true,
560 "code_actions_on_format": {
561 "source.organizeImports": true
562 }
563 },
564 "Make": {
565 "hard_tabs": true
566 },
567 "Markdown": {
568 "tab_size": 2,
569 "soft_wrap": "preferred_line_length"
570 },
571 "JavaScript": {
572 "tab_size": 2
573 },
574 "Terraform": {
575 "tab_size": 2
576 },
577 "TypeScript": {
578 "tab_size": 2
579 },
580 "TSX": {
581 "tab_size": 2
582 },
583 "YAML": {
584 "tab_size": 2
585 },
586 "JSON": {
587 "tab_size": 2
588 },
589 "OCaml": {
590 "tab_size": 2
591 },
592 "OCaml Interface": {
593 "tab_size": 2
594 },
595 "Prisma": {
596 "tab_size": 2
597 }
598 },
599 // Zed's Prettier integration settings.
600 // If Prettier is enabled, Zed will use this for its Prettier instance for any applicable file, if
601 // project has no other Prettier installed.
602 "prettier": {
603 // Use regular Prettier json configuration:
604 // "trailingComma": "es5",
605 // "tabWidth": 4,
606 // "semi": false,
607 // "singleQuote": true
608 },
609 // LSP Specific settings.
610 "lsp": {
611 // Specify the LSP name as a key here.
612 // "rust-analyzer": {
613 // // These initialization options are merged into Zed's defaults
614 // "initialization_options": {
615 // "check": {
616 // "command": "clippy" // rust-analyzer.check.command (default: "check")
617 // }
618 // }
619 // }
620 },
621 // Vim settings
622 "vim": {
623 "use_system_clipboard": "always",
624 "use_multiline_find": false,
625 "use_smartcase_find": false
626 },
627 // The server to connect to. If the environment variable
628 // ZED_SERVER_URL is set, it will override this setting.
629 "server_url": "https://zed.dev",
630 // Settings overrides to use when using Zed Preview.
631 // Mostly useful for developers who are managing multiple instances of Zed.
632 "preview": {
633 // "theme": "Andromeda"
634 },
635 // Settings overrides to use when using Zed Nightly.
636 // Mostly useful for developers who are managing multiple instances of Zed.
637 "nightly": {
638 // "theme": "Andromeda"
639 },
640 // Settings overrides to use when using Zed Stable.
641 // Mostly useful for developers who are managing multiple instances of Zed.
642 "stable": {
643 // "theme": "Andromeda"
644 },
645 // Settings overrides to use when using Zed Dev.
646 // Mostly useful for developers who are managing multiple instances of Zed.
647 "dev": {
648 // "theme": "Andromeda"
649 }
650}