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