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