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