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