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