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