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