default.json

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