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