1# Visual Customization
2
3Various aspects of Zed's visual layout can be configured via Zed settings.json which you can access via {#action zed::OpenSettings} ({#kb zed::OpenSettings}).
4
5See [Configuring Zed](./configuring-zed.md) for additional information and other non-visual settings.
6
7## Themes
8
9Use may install zed extensions providing [Themes](./themes.md) and [Icon Themes](./icon-themes.md) via {#action zed::Extensions} from the command palette or menu.
10
11You can preview/choose amongst your installed themes and icon themes with {#action theme_selector::Toggle} ({#kb theme_selector::Toggle}) and ({#action icon_theme_selector::Toggle}) which will modify the following settings:
12
13```json
14{
15 "theme": "One Dark",
16 "icon_theme": "Zed (Default)"
17}
18```
19
20If you would like to use distinct themes for light mode/dark mode that can be set with:
21
22```json
23{
24 "theme": {
25 "dark": "One Dark"
26 "light": "One Light",
27 // Mode to use (dark, light) or "system" to follow the OS's light/dark mode (default)
28 "mode": "system",
29 },
30 "icon_theme": {
31 "dark": "Zed (Default)"
32 "light": "Zed (Default)",
33 // Mode to use (dark, light) or "system" to follow the OS's light/dark mode (default)
34 "mode": "system",
35 }
36}
37```
38
39## Fonts
40
41```json
42 // UI Font. Use ".SystemUIFont" to use the default system font (SF Pro on macOS),
43 // or ".ZedSans" for the bundled default (currently IBM Plex)
44 "ui_font_family": ".SystemUIFont",
45 "ui_font_weight": 400, // Font weight in standard CSS units from 100 to 900.
46 "ui_font_size": 16,
47
48 // Buffer Font - Used by editor buffers
49 // use ".ZedMono" for the bundled default monospace (currently Lilex)
50 "buffer_font_family": "Berkeley Mono", // Font name for editor buffers
51 "buffer_font_size": 15, // Font size for editor buffers
52 "buffer_font_weight": 400, // Font weight in CSS units [100-900]
53 // Line height "comfortable" (1.618), "standard" (1.3) or custom: `{ "custom": 2 }`
54 "buffer_line_height": "comfortable",
55
56 // Terminal Font Settings
57 "terminal": {
58 "font_family": "",
59 "font_size": 15,
60 // Terminal line height: comfortable (1.618), standard(1.3) or `{ "custom": 2 }`
61 "line_height": "standard",
62 },
63
64 // Agent Panel Font Settings
65 "agent_font_size": 15
66```
67
68### Font ligatures
69
70By default Zed enable font ligatures which will visually combines certain adjacent characters.
71
72For example `=>` will be displayed as `→` and `!=` will be `≠`. This is purely cosmetic and the individual characters remain unchanged.
73
74To disable this behavior use:
75
76```json
77{
78 "buffer_font_features": {
79 "calt": false // Disable ligatures
80 }
81}
82```
83
84### Status Bar
85
86```json
87{
88 // Whether to show full labels in line indicator or short ones
89 // - `short`: "2 s, 15 l, 32 c"
90 // - `long`: "2 selections, 15 lines, 32 characters"
91 "line_indicator_format": "long"
92
93 // Individual status bar icons can be hidden:
94 // "project_panel": {"button": false },
95 // "outline_panel": {"button": false },
96 // "collaboration_panel": {"button": false },
97 // "git_panel": {"button": false },
98 // "notification_panel": {"button": false },
99 // "agent": {"button": false },
100 // "debugger": {"button": false },
101 // "diagnostics": {"button": false },
102 // "search": {"button": false },
103}
104```
105
106### Titlebar
107
108```json
109 // Control which items are shown/hidden in the title bar
110 "title_bar": {
111 "show_branch_icon": false, // Show/hide branch icon beside branch switcher
112 "show_branch_name": true, // Show/hide branch name
113 "show_project_items": true, // Show/hide project host and name
114 "show_onboarding_banner": true, // Show/hide onboarding banners
115 "show_user_picture": true, // Show/hide user avatar
116 "show_sign_in": true, // Show/hide sign-in button
117 "show_menus": false // Show/hide menus
118 },
119```
120
121## Workspace
122
123```json
124{
125 // Force usage of Zed build in path prompts (file and directory pickers)
126 // instead of OS native pickers (false).
127 "use_system_path_prompts": true,
128 // Force usage of Zed built in confirmation prompts ("Do you want to save?")
129 // instead of OS native prompts (false). On linux this is ignored (always false).
130 "use_system_prompts": true,
131
132 // Whether to use the system provided dialogs for Open and Save As (true) or
133 // Zed's built-in keyboard-first pickers (false)
134 "use_system_path_prompts": true,
135
136 // Active pane styling settings.
137 "active_pane_modifiers": {
138 // Inset border size of the active pane, in pixels.
139 "border_size": 0.0,
140 // Opacity of the inactive panes. 0 means transparent, 1 means opaque.
141 "inactive_opacity": 1.0
142 },
143
144 // Layout mode of the bottom dock: contained, full, left_aligned, right_aligned
145 "bottom_dock_layout": "contained",
146
147 // Whether to resize all the panels in a dock when resizing the dock.
148 // Can be a combination of "left", "right" and "bottom".
149 "resize_all_panels_in_dock": ["left"]
150}
151```
152
153<!--
154TBD: Centered layout related settings
155```json
156 "centered_layout": {
157 // The relative width of the left padding of the central pane from the
158 // workspace when the centered layout is used.
159 "left_padding": 0.2,
160 // The relative width of the right padding of the central pane from the
161 // workspace when the centered layout is used.
162 "right_padding": 0.2
163 },
164```
165-->
166
167## Editor
168
169```json
170 // Whether the cursor blinks in the editor.
171 "cursor_blink": true,
172
173 // Cursor shape for the default editor: bar, block, underline, hollow
174 "cursor_shape": null,
175
176 // Highlight the current line in the editor: none, gutter, line, all
177 "current_line_highlight": "all",
178
179 // When does the mouse cursor hide: never, on_typing, on_typing_and_movement
180 "hide_mouse": "on_typing_and_movement",
181
182 // Whether to highlight all occurrences of the selected text in an editor.
183 "selection_highlight": true,
184
185 // Visually show tabs and spaces (none, all, selection, boundary, trailing)
186 "show_whitespaces": "selection",
187 "whitespace_map": { // Which characters to show when `show_whitespaces` enabled
188 "space": "•",
189 "tab": "→"
190 },
191
192 "unnecessary_code_fade": 0.3, // How much to fade out unused code.
193
194 // Hide the values of in variables from visual display in private files
195 "redact_private_values": false,
196
197 // Soft-wrap and rulers
198 "soft_wrap": "none", // none, editor_width, preferred_line_length, bounded
199 "preferred_line_length": 80, // Column to soft-wrap
200 "show_wrap_guides": true, // Show/hide wrap guides (vertical rulers)
201 "wrap_guides": [], // Where to position wrap_guides (character counts)
202
203 // Gutter Settings
204 "gutter": {
205 "line_numbers": true, // Show/hide line numbers in the gutter.
206 "runnables": true, // Show/hide runnables buttons in the gutter.
207 "breakpoints": true, // Show/hide show breakpoints in the gutter.
208 "folds": true, // Show/hide show fold buttons in the gutter.
209 "min_line_number_digits": 4 // Reserve space for N digit line numbers
210 },
211 "relative_line_numbers": false, // Show relative line numbers in gutter
212
213 // Indent guides
214 "indent_guides": {
215 "enabled": true,
216 "line_width": 1, // Width of guides in pixels [1-10]
217 "active_line_width": 1, // Width of active guide in pixels [1-10]
218 "coloring": "fixed", // disabled, fixed, indent_aware
219 "background_coloring": "disabled" // disabled, indent_aware
220 }
221```
222
223### Git Blame {#editor-blame}
224
225```json
226 "git": {
227 "inline_blame": {
228 "enabled": true, // Show/hide inline blame
229 "delay_ms": 0, // Show after delay (ms)
230 "min_column": 0, // Minimum column to inline display blame
231 "padding": 7, // Padding between code and inline blame (em)
232 "show_commit_summary": false // Show/hide commit summary
233 },
234 "hunk_style": "staged_hollow" // staged_hollow, unstaged_hollow
235 }
236```
237
238### Editor Toolbar
239
240```json
241 // Editor toolbar related settings
242 "toolbar": {
243 "breadcrumbs": true, // Whether to show breadcrumbs.
244 "quick_actions": true, // Whether to show quick action buttons.
245 "selections_menu": true, // Whether to show the Selections menu
246 "agent_review": true, // Whether to show agent review buttons
247 "code_actions": false // Whether to show code action buttons
248 }
249```
250
251### Editor Scrollbar and Minimap {#editor-scrollbar}
252
253```json
254 // Scrollbar related settings
255 "scrollbar": {
256 // When to show the scrollbar in the editor (auto, system, always, never)
257 "show": "auto",
258 "cursors": true, // Show cursor positions in the scrollbar.
259 "git_diff": true, // Show git diff indicators in the scrollbar.
260 "search_results": true, // Show buffer search results in the scrollbar.
261 "selected_text": true, // Show selected text occurrences in the scrollbar.
262 "selected_symbol": true, // Show selected symbol occurrences in the scrollbar.
263 "diagnostics": "all", // Show diagnostics (none, error, warning, information, all)
264 "axes": {
265 "horizontal": true, // Show/hide the horizontal scrollbar
266 "vertical": true // Show/hide the vertical scrollbar
267 }
268 },
269
270 // Minimap related settings
271 "minimap": {
272 "show": "never", // When to show (auto, always, never)
273 "display_in": "active_editor", // Where to show (active_editor, all_editor)
274 "thumb": "always", // When to show thumb (always, hover)
275 "thumb_border": "left_open", // Thumb border (left_open, right_open, full, none)
276 "max_width_columns": 80, // Maximum width of minimap
277 "current_line_highlight": null // Highlight current line (null, line, gutter)
278 },
279
280 // Control Editor scroll beyond the last line: off, one_page, vertical_scroll_margin
281 "scroll_beyond_last_line": "one_page",
282 // Lines to keep above/below the cursor when scrolling with the keyboard
283 "vertical_scroll_margin": 3,
284 // The number of characters to keep on either side when scrolling with the mouse
285 "horizontal_scroll_margin": 5,
286 // Scroll sensitivity multiplier
287 "scroll_sensitivity": 1.0,
288 // Scroll sensitivity multiplier for fast scrolling (hold alt while scrolling)
289 "fast_scroll_sensitivity": 4.0,
290```
291
292### Editor Tabs
293
294```json
295 // Maximum number of tabs per pane. Unset for unlimited.
296 "max_tabs": null,
297
298 // Customize the tab bar appearance
299 "tab_bar": {
300 "show": true, // Show/hide the tab bar
301 "show_nav_history_buttons": true, // Show/hide history buttons on tab bar
302 "show_tab_bar_buttons": true // Show hide buttons (new, split, zoom)
303 },
304 "tabs": {
305 "git_status": false, // Color to show git status
306 "close_position": "right", // Close button position (left, right, hidden)
307 "show_close_button": "hover", // Close button shown (hover, always, hidden)
308 "file_icons": false, // Icon showing file type
309 // Show diagnostics in file icon (off, errors, all). Requires file_icons=true
310 "show_diagnostics": "off"
311 }
312```
313
314### Status Bar
315
316```json
317 "status_bar": {
318 // Show/hide a button that displays the active buffer's language.
319 // Clicking the button brings up the language selector.
320 // Defaults to true.
321 "active_language_button": true,
322 // Show/hide a button that displays the cursor's position.
323 // Clicking the button brings up an input for jumping to a line and column.
324 // Defaults to true.
325 "cursor_position_button": true,
326 },
327 "global_lsp_settings": {
328 // Show/hide the LSP button in the status bar.
329 // Activity from the LSP is still shown.
330 // Button is not shown if "enable_language_server" if false.
331 "button": true
332 },
333```
334
335### Multibuffer
336
337```json
338{
339 // The default number of lines to expand excerpts in the multibuffer by.
340 "expand_excerpt_lines": 5,
341 // The default number of lines of context provided for excerpts in the multibuffer by.
342 "excerpt_context_lines": 2
343}
344```
345
346### Editor Completions, Snippets, Actions, Diagnostics {#editor-lsp}
347
348```json
349 "snippet_sort_order": "inline", // Snippets completions: top, inline, bottom, none
350 "show_completions_on_input": true, // Show completions while typing
351 "show_completion_documentation": true, // Show documentation in completions
352 "auto_signature_help": false, // Show method signatures inside parentheses
353
354 // Whether to show the signature help after completion or a bracket pair inserted.
355 // If `auto_signature_help` is enabled, this setting will be treated as enabled also.
356 "show_signature_help_after_edits": false,
357
358 // Whether to show code action button at start of buffer line.
359 "inline_code_actions": true,
360
361 // Which level to use to filter out diagnostics displayed in the editor:
362 "diagnostics_max_severity": null, // off, error, warning, info, hint, null (all)
363
364 // How to render LSP `textDocument/documentColor` colors in the editor.
365 "lsp_document_colors": "inlay", // none, inlay, border, background
366```
367
368### Edit Predictions {#editor-ai}
369
370```json
371 "edit_predictions": {
372 "mode": "eager", // Automatically show (eager) or hold-alt (subtle)
373 "enabled_in_text_threads": true // Show/hide predictions in agent text threads
374 },
375 "show_edit_predictions": true // Show/hide predictions in editor
376```
377
378### Editor Inlay Hints
379
380```json
381{
382 "inlay_hints": {
383 "enabled": false,
384 // Toggle certain types of hints on and off, all switched on by default.
385 "show_type_hints": true,
386 "show_parameter_hints": true,
387 "show_other_hints": true,
388
389 // Whether to show a background for inlay hints (theme `hint.background`)
390 "show_background": false, //
391
392 // Time to wait after editing before requesting hints (0 to disable debounce)
393 "edit_debounce_ms": 700,
394 // Time to wait after scrolling before requesting hints (0 to disable debounce)
395 "scroll_debounce_ms": 50,
396
397 // A set of modifiers which, when pressed, will toggle the visibility of inlay hints.
398 "toggle_on_modifiers_press": {
399 "control": false,
400 "shift": false,
401 "alt": false,
402 "platform": false,
403 "function": false
404 }
405 }
406}
407```
408
409## File Finder
410
411```json
412 // File Finder Settings
413 "file_finder": {
414 "file_icons": true, // Show/hide file icons
415 "modal_max_width": "small", // Horizontal size: small, medium, large, xlarge, full
416 "git_status": true, // Show the git status for each entry
417 "include_ignored": null // gitignored files in results: true, false, null
418 },
419```
420
421## Project Panel
422
423Project panel can be shown/hidden with {#action project_panel::ToggleFocus} ({#kb project_panel::ToggleFocus}) or with {#action pane::RevealInProjectPanel} ({#kb pane::RevealInProjectPanel}).
424
425```json
426 // Project Panel Settings
427 "project_panel": {
428 "button": true, // Show/hide button in the status bar
429 "default_width": 240, // Default panel width
430 "dock": "left", // Position of the dock (left, right)
431 "entry_spacing": "comfortable", // Vertical spacing (comfortable, standard)
432 "file_icons": true, // Show/hide file icons
433 "folder_icons": true, // Show/hide folder icons
434 "git_status": true, // Indicate new/updated files
435 "indent_size": 20, // Pixels for each successive indent
436 "auto_reveal_entries": true, // Show file in panel when activating its buffer
437 "auto_fold_dirs": true, // Fold dirs with single subdir
438 "sticky_scroll": true, // Stick parent directories at top of the project panel.
439 "drag_and_drop": true, // Whether drag and drop is enabled
440 "scrollbar": { // Project panel scrollbar settings
441 "show": null // Show/hide: (auto, system, always, never)
442 },
443 "show_diagnostics": "all", //
444 // Settings related to indent guides in the project panel.
445 "indent_guides": {
446 // When to show indent guides in the project panel. (always, never)
447 "show": "always"
448 },
449 // Whether to hide the root entry when only one folder is open in the window.
450 "hide_root": false
451 }.
452```
453
454## Agent Panel
455
456```json
457 "agent": {
458 "version": "2",
459 "enabled": true, // Enable/disable the agent
460 "button": true, // Show/hide the icon in the status bar
461 "dock": "right", // Where to dock: left, right, bottom
462 "default_width": 640, // Default width (left/right docked)
463 "default_height": 320, // Default height (bottom docked)
464 },
465 "agent_font_size": 16
466```
467
468See [Zed AI Documentation](./ai/overview.md) for additional non-visual AI settings.
469
470## Terminal Panel
471
472```json
473 // Terminal Panel Settings
474 "terminal": {
475 "dock": "bottom", // Where to dock: left, right, bottom
476 "button": true, // Show/hide status bar icon
477 "default_width": 640, // Default width (left/right docked)
478 "default_height": 320, // Default height (bottom docked)
479
480 // Set the cursor blinking behavior in the terminal (on, off, terminal_controlled)
481 "blinking": "terminal_controlled",
482 // Default cursor shape for the terminal cursor (block, bar, underline, hollow)
483 "cursor_shape": "block",
484
485 // Environment variables to add to terminal's process environment
486 "env": {
487 // "KEY": "value"
488 },
489
490 // Terminal scrollbar
491 "scrollbar": {
492 "show": null // Show/hide: (auto, system, always, never)
493 },
494 // Terminal Font Settings
495 "font_family": "Fira Code",
496 "font_size": 15,
497 "font_weight": 400,
498 // Terminal line height: comfortable (1.618), standard(1.3) or `{ "custom": 2 }`
499 "line_height": "comfortable",
500
501 "max_scroll_history_lines": 10000, // Scrollback history (0=disable, max=100000)
502 }
503```
504
505See [Terminal settings](./configuring-zed.md#terminal) for additional non-visual customization options.
506
507### Other Panels
508
509```json
510 // Git Panel
511 "git_panel": {
512 "button": true, // Show/hide status bar icon
513 "dock": "left", // Where to dock: left, right
514 "default_width": 360, // Default width of the git panel.
515 "status_style": "icon", // label_color, icon
516 "sort_by_path": false, // Sort by path (false) or status (true)
517 "scrollbar": {
518 "show": null // Show/hide: (auto, system, always, never)
519 }
520 },
521
522 // Debugger Panel
523 "debugger": {
524 "dock": "bottom", // Where to dock: left, right, bottom
525 "button": true // Show/hide status bar icon
526 },
527
528 // Outline Panel
529 "outline_panel": {
530 "button": true, // Show/hide status bar icon
531 "default_width": 300, // Default width of the git panel
532 "dock": "left", // Where to dock: left, right
533 "file_icons": true, // Show/hide file_icons
534 "folder_icons": true, // Show file_icons (true), chevrons (false) for dirs
535 "git_status": true, // Show git status
536 "indent_size": 20, // Indentation for nested items (pixels)
537 "indent_guides": {
538 "show": "always" // Show indent guides (always, never)
539 },
540 "auto_reveal_entries": true, // Show file in panel when activating its buffer
541 "auto_fold_dirs": true, // Fold dirs with single subdir
542 "scrollbar": { // Project panel scrollbar settings
543 "show": null // Show/hide: (auto, system, always, never)
544 }
545 }
546```
547
548## Collaboration Panels
549
550```json
551{
552 // Collaboration Panel
553 "collaboration_panel": {
554 "button": true, // Show/hide status bar icon
555 "dock": "left", // Where to dock: left, right
556 "default_width": 240 // Default width of the collaboration panel.
557 },
558 "show_call_status_icon": true, // Shown call status in the OS status bar.
559
560 // Notification Panel
561 "notification_panel": {
562 // Whether to show the notification panel button in the status bar.
563 "button": true,
564 // Where to dock the notification panel. Can be 'left' or 'right'.
565 "dock": "right",
566 // Default width of the notification panel.
567 "default_width": 380
568 }
569```