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