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