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 factor to grow the active pane by. Defaults to 1.0
 39  // which gives the same size as all other panes.
 40  "active_pane_magnification": 1.0,
 41  // Whether to enable vim modes and key bindings
 42  "vim_mode": false,
 43  // Whether to show the informational hover box when moving the mouse
 44  // over symbols in the editor.
 45  "hover_popover_enabled": true,
 46  // Whether to confirm before quitting Zed.
 47  "confirm_quit": false,
 48  // Whether the cursor blinks in the editor.
 49  "cursor_blink": true,
 50  // Whether to pop the completions menu while typing in an editor without
 51  // explicitly requesting it.
 52  "show_completions_on_input": true,
 53  // Whether to show wrap guides in the editor. Setting this to true will
 54  // show a guide at the 'preferred_line_length' value if softwrap is set to
 55  // 'preferred_line_length', and will show any additional guides as specified
 56  // by the 'wrap_guides' setting.
 57  "show_wrap_guides": true,
 58  // Character counts at which to show wrap guides in the editor.
 59  "wrap_guides": [],
 60  // Whether to use additional LSP queries to format (and amend) the code after
 61  // every "trigger" symbol input, defined by LSP server capabilities.
 62  "use_on_type_format": true,
 63  // Controls whether copilot provides suggestion immediately
 64  // or waits for a `copilot::Toggle`
 65  "show_copilot_suggestions": true,
 66  // Whether to show tabs and spaces in the editor.
 67  // This setting can take two values:
 68  //
 69  // 1. Draw tabs and spaces only for the selected text (default):
 70  //    "selection"
 71  // 2. Do not draw any tabs or spaces:
 72  //   "none"
 73  // 3. Draw all invisible symbols:
 74  //   "all"
 75  "show_whitespaces": "selection",
 76  // Settings related to calls in Zed
 77  "calls": {
 78    // Join calls with the microphone muted by default
 79    "mute_on_join": true
 80  },
 81  // Scrollbar related settings
 82  "scrollbar": {
 83    // When to show the scrollbar in the editor.
 84    // This setting can take four values:
 85    //
 86    // 1. Show the scrollbar if there's important information or
 87    //    follow the system's configured behavior (default):
 88    //   "auto"
 89    // 2. Match the system's configured behavior:
 90    //    "system"
 91    // 3. Always show the scrollbar:
 92    //    "always"
 93    // 4. Never show the scrollbar:
 94    //    "never"
 95    "show": "auto",
 96    // Whether to show git diff indicators in the scrollbar.
 97    "git_diff": true,
 98    // Whether to show selections in the scrollbar.
 99    "selections": true
100  },
101  "relative_line_numbers": false,
102  // Inlay hint related settings
103  "inlay_hints": {
104    // Global switch to toggle hints on and off, switched off by default.
105    "enabled": false,
106    // Toggle certain types of hints on and off, all switched on by default.
107    "show_type_hints": true,
108    "show_parameter_hints": true,
109    // Corresponds to null/None LSP hint type value.
110    "show_other_hints": true
111  },
112  "project_panel": {
113    // Default width of the project panel.
114    "default_width": 240,
115    // Where to dock project panel. Can be 'left' or 'right'.
116    "dock": "left",
117    // Whether to show file icons in the project panel.
118    "file_icons": true,
119    // Whether to show folder icons or chevrons for directories in the project panel.
120    "folder_icons": true,
121    // Whether to show the git status in the project panel.
122    "git_status": true,
123    // Amount of indentation for nested items.
124    "indent_size": 20
125  },
126  "collaboration_panel": {
127    // Whether to show the collaboration panel button in the status bar.
128    "button": true,
129    // Where to dock channels panel. Can be 'left' or 'right'.
130    "dock": "left",
131    // Default width of the channels panel.
132    "default_width": 240
133  },
134  "assistant": {
135    // Whether to show the assistant panel button in the status bar.
136    "button": true,
137    // Where to dock the assistant. Can be 'left', 'right' or 'bottom'.
138    "dock": "right",
139    // Default width when the assistant is docked to the left or right.
140    "default_width": 640,
141    // Default height when the assistant is docked to the bottom.
142    "default_height": 320,
143    // The default OpenAI model to use when starting new conversations. This
144    // setting can take two values:
145    //
146    // 1. "gpt-3.5-turbo-0613""
147    // 2. "gpt-4-0613""
148    "default_open_ai_model": "gpt-4-0613"
149  },
150  // Whether the screen sharing icon is shown in the os status bar.
151  "show_call_status_icon": true,
152  // Whether to use language servers to provide code intelligence.
153  "enable_language_server": true,
154  // When to automatically save edited buffers. This setting can
155  // take four values.
156  //
157  // 1. Never automatically save:
158  //     "autosave": "off",
159  // 2. Save when changing focus away from the Zed window:
160  //     "autosave": "on_window_change",
161  // 3. Save when changing focus away from a specific buffer:
162  //     "autosave": "on_focus_change",
163  // 4. Save when idle for a certain amount of time:
164  //     "autosave": { "after_delay": {"milliseconds": 500} },
165  "autosave": "off",
166  // Settings related to the editor's tabs
167  "tabs": {
168    // Show git status colors in the editor tabs.
169    "git_status": false,
170    // Position of the close button on the editor tabs.
171    "close_position": "right"
172  },
173  // Whether or not to remove any trailing whitespace from lines of a buffer
174  // before saving it.
175  "remove_trailing_whitespace_on_save": true,
176  // Whether to start a new line with a comment when a previous line is a comment as well.
177  "extend_comment_on_newline": true,
178  // Whether or not to ensure there's a single newline at the end of a buffer
179  // when saving it.
180  "ensure_final_newline_on_save": true,
181  // Whether or not to perform a buffer format before saving
182  "format_on_save": "on",
183  // How to perform a buffer format. This setting can take two values:
184  //
185  // 1. Format code using the current language server:
186  //     "formatter": "language_server"
187  // 2. Format code using an external command:
188  //     "formatter": {
189  //       "external": {
190  //         "command": "prettier",
191  //         "arguments": ["--stdin-filepath", "{buffer_path}"]
192  //       }
193  //     }
194  "formatter": "language_server",
195  // How to soft-wrap long lines of text. This setting can take
196  // three values:
197  //
198  // 1. Do not soft wrap.
199  //      "soft_wrap": "none",
200  // 2. Soft wrap lines that overflow the editor:
201  //      "soft_wrap": "editor_width",
202  // 3. Soft wrap lines at the preferred line length
203  //      "soft_wrap": "preferred_line_length",
204  "soft_wrap": "none",
205  // The column at which to soft-wrap lines, for buffers where soft-wrap
206  // is enabled.
207  "preferred_line_length": 80,
208  // Whether to indent lines using tab characters, as opposed to multiple
209  // spaces.
210  "hard_tabs": false,
211  // How many columns a tab should occupy.
212  "tab_size": 4,
213  // Control what info is collected by Zed.
214  "telemetry": {
215    // Send debug info like crash reports.
216    "diagnostics": true,
217    // Send anonymized usage data like what languages you're using Zed with.
218    "metrics": true
219  },
220  // Automatically update Zed
221  "auto_update": true,
222  // Git gutter behavior configuration.
223  "git": {
224    // Control whether the git gutter is shown. May take 2 values:
225    // 1. Show the gutter
226    //      "git_gutter": "tracked_files"
227    // 2. Hide the gutter
228    //      "git_gutter": "hide"
229    "git_gutter": "tracked_files"
230  },
231  "copilot": {
232    // The set of glob patterns for which copilot should be disabled
233    // in any matching file.
234    "disabled_globs": [
235      ".env"
236    ]
237  },
238  // Settings specific to journaling
239  "journal": {
240    // The path of the directory where journal entries are stored
241    "path": "~",
242    // What format to display the hours in
243    // May take 2 values:
244    // 1. hour12
245    // 2. hour24
246    "hour_format": "hour12"
247  },
248  // Settings specific to the terminal
249  "terminal": {
250    // What shell to use when opening a terminal. May take 3 values:
251    // 1. Use the system's default terminal configuration in /etc/passwd
252    //      "shell": "system"
253    // 2. A program:
254    //      "shell": {
255    //        "program": "sh"
256    //      }
257    // 3. A program with arguments:
258    //     "shell": {
259    //         "with_arguments": {
260    //           "program": "/bin/bash",
261    //           "arguments": ["--login"]
262    //         }
263    //     }
264    "shell": "system",
265    // Where to dock terminals panel. Can be 'left', 'right', 'bottom'.
266    "dock": "bottom",
267    // Default width when the terminal is docked to the left or right.
268    "default_width": 640,
269    // Default height when the terminal is docked to the bottom.
270    "default_height": 320,
271    // What working directory to use when launching the terminal.
272    // May take 4 values:
273    // 1. Use the current file's project directory.  Will Fallback to the
274    //    first project directory strategy if unsuccessful
275    //      "working_directory": "current_project_directory"
276    // 2. Use the first project in this workspace's directory
277    //      "working_directory": "first_project_directory"
278    // 3. Always use this platform's home directory (if we can find it)
279    //     "working_directory": "always_home"
280    // 4. Always use a specific directory. This value will be shell expanded.
281    //    If this path is not a valid directory the terminal will default to
282    //    this platform's home directory  (if we can find it)
283    //      "working_directory": {
284    //        "always": {
285    //          "directory": "~/zed/projects/"
286    //        }
287    //      }
288    "working_directory": "current_project_directory",
289    // Set the cursor blinking behavior in the terminal.
290    // May take 4 values:
291    //  1. Never blink the cursor, ignoring the terminal mode
292    //         "blinking": "off",
293    //  2. Default the cursor blink to off, but allow the terminal to
294    //     set blinking
295    //         "blinking": "terminal_controlled",
296    //  3. Always blink the cursor, ignoring the terminal mode
297    //         "blinking": "on",
298    "blinking": "terminal_controlled",
299    // Set whether Alternate Scroll mode (code: ?1007) is active by default.
300    // Alternate Scroll mode converts mouse scroll events into up / down key
301    // presses when in the alternate screen (e.g. when running applications
302    // like vim or  less). The terminal can still set and unset this mode.
303    // May take 2 values:
304    //  1. Default alternate scroll mode to on
305    //         "alternate_scroll": "on",
306    //  2. Default alternate scroll mode to off
307    //         "alternate_scroll": "off",
308    "alternate_scroll": "off",
309    // Set whether the option key behaves as the meta key.
310    // May take 2 values:
311    //  1. Rely on default platform handling of option key, on macOS
312    //     this means generating certain unicode characters
313    //         "option_to_meta": false,
314    //  2. Make the option keys behave as a 'meta' key, e.g. for emacs
315    //         "option_to_meta": true,
316    "option_as_meta": false,
317    // Whether or not selecting text in the terminal will automatically
318    // copy to the system clipboard.
319    "copy_on_select": false,
320    // Any key-value pairs added to this list will be added to the terminal's
321    // environment. Use `:` to separate multiple values.
322    "env": {
323      // "KEY": "value1:value2"
324    },
325    // Set the terminal's line height.
326    // May take 3 values:
327    //  1. Use a line height that's comfortable for reading, 1.618
328    //         "line_height": "comfortable"
329    //  2. Use a standard line height, 1.3. This option is useful for TUIs,
330    //      particularly if they use box characters
331    //         "line_height": "standard",
332    //  3. Use a custom line height.
333    //         "line_height": {
334    //           "custom": 2
335    //         },
336    "line_height": "comfortable",
337    // Activate the python virtual environment, if one is found, in the
338    // terminal's working directory (as resolved by the working_directory
339    // setting). Set this to "off" to disable this behavior.
340    "detect_venv": {
341      "on": {
342        // Default directories to search for virtual environments, relative
343        // to the current working directory. We recommend overriding this
344        // in your project's settings, rather than globally.
345        "directories": [
346          ".env",
347          "env",
348          ".venv",
349          "venv"
350        ],
351        // Can also be 'csh' and 'fish'
352        "activate_script": "default"
353      }
354    }
355    // Set the terminal's font size. If this option is not included,
356    // the terminal will default to matching the buffer's font size.
357    // "font_size": "15",
358    // Set the terminal's font family. If this option is not included,
359    // the terminal will default to matching the buffer's font family.
360    // "font_family": "Zed Mono",
361    // ---
362  },
363  // Difference settings for semantic_index
364  "semantic_index": {
365    "enabled": false,
366    "reindexing_delay_seconds": 600
367  },
368  // Different settings for specific languages.
369  "languages": {
370    "Plain Text": {
371      "soft_wrap": "preferred_line_length"
372    },
373    "Elixir": {
374      "tab_size": 2
375    },
376    "Go": {
377      "tab_size": 4,
378      "hard_tabs": true
379    },
380    "Markdown": {
381      "soft_wrap": "preferred_line_length"
382    },
383    "JavaScript": {
384      "tab_size": 2
385    },
386    "TypeScript": {
387      "tab_size": 2
388    },
389    "TSX": {
390      "tab_size": 2
391    },
392    "YAML": {
393      "tab_size": 2
394    },
395    "JSON": {
396      "tab_size": 2
397    }
398  },
399  // LSP Specific settings.
400  "lsp": {
401    // Specify the LSP name as a key here.
402    // "rust-analyzer": {
403    //     //These initialization options are merged into Zed's defaults
404    //     "initialization_options": {
405    //         "checkOnSave": {
406    //             "command": "clippy"
407    //         }
408    //     }
409    // }
410  }
411}