configuring-zed.md

   1# Configuring Zed
   2
   3Zed is designed to be configured: we want to fit your workflow and preferences exactly. We provide default settings that are designed to be a comfortable starting point for as many people as possible, but we hope you will enjoy tweaking it to make it feel incredible.
   4
   5In addition to the settings described here, you may also want to change your [theme](./themes.md), configure your [key bindings](./key-bindings.md), set up [tasks](./tasks.md) or install [extensions](https://github.com/zed-industries/extensions).
   6
   7## Settings Editor
   8
   9You can browse through many of the supported settings via the Settings Editor, which can be opened with the {#kb zed::OpenSettings} keybinding, or through the `zed: open settings` action in the command palette. Through it, you can customize your local, user settings as well as project settings.
  10
  11> Note that not all settings that Zed supports are available through the Settings Editor yet.
  12> Some more intricate ones, such as language formatters, can only be changed through the JSON settings file {#kb zed::OpenSettingsFile}.
  13
  14## User Settings File
  15
  16<!--
  17TBD: Settings files. Rewrite with "remote settings" in mind (e.g. `local settings` on the remote host).
  18Consider renaming `zed: Open Local Settings` to `zed: Open Project Settings`.
  19
  20TBD: Add settings documentation about how settings are merged as overlays. E.g. project>local>default. Note how settings that are maps are merged, but settings that are arrays are replaced and must include the defaults.
  21-->
  22
  23Your settings JSON file can be opened with {#kb zed::OpenSettingsFile}.
  24By default it is located at `~/.config/zed/settings.json`, though if you have `XDG_CONFIG_HOME` in your environment on Linux it will be at `$XDG_CONFIG_HOME/zed/settings.json` instead.
  25
  26Whatever you have added to your user settings file gets merged with any local configuration inside your projects.
  27
  28### Default Settings
  29
  30In the Settings Editor, the values you see set are the default ones.
  31You can also verify them in JSON by running {#action zed::OpenDefaultSettings} from the command palette.
  32
  33Extensions that provide language servers may also provide default settings for those language servers.
  34
  35## Project Settings File
  36
  37Similarly to user files, you can open your project settings file by running {#action zed::OpenProjectSettings} from the command palette.
  38This will create a `.zed` directory containing`.zed/settings.json`.
  39
  40Although most projects will only need one settings file at the root, you can add more local settings files for subdirectories as needed.
  41Not all settings can be set in local files, just those that impact the behavior of the editor and language tooling.
  42For example you can set `tab_size`, `formatter` etc. but not `theme`, `vim_mode` and similar.
  43
  44The syntax for configuration files is a super-set of JSON that allows `//` comments.
  45
  46## Per-release Channel Overrides
  47
  48Zed reads the same `settings.json` across all release channels (Stable, Preview or Nightly).
  49However, you can scope overrides to a specific channel by adding top-level `stable`, `preview`, `nightly` or `dev` objects.
  50They are merged into the base configuration with settings from these keys taking precedence upon launching the specified build. For example:
  51
  52```json [settings]
  53{
  54  "theme": "sunset",
  55  "vim_mode": false,
  56  "nightly": {
  57    "theme": "cave-light",
  58    "vim_mode": true
  59  },
  60  "preview": {
  61    "theme": "zed-dark"
  62  }
  63}
  64```
  65
  66With this configuration, Stable keeps all base preferences, Preview switches to `zed-dark`, and Nightly enables Vim mode with a different theme.
  67
  68Changing settings in the Settings Editorwill always apply the change across all channels.
  69
  70# Settings
  71
  72Find below an extensive run-through of many supported settings by Zed.
  73
  74## Active Pane Modifiers
  75
  76- Description: Styling settings applied to the active pane.
  77- Setting: `active_pane_modifiers`
  78- Default:
  79
  80```json [settings]
  81{
  82  "active_pane_modifiers": {
  83    "border_size": 0.0,
  84    "inactive_opacity": 1.0
  85  }
  86}
  87```
  88
  89### Border size
  90
  91- Description: Size of the border surrounding the active pane. When set to 0, the active pane doesn't have any border. The border is drawn inset.
  92- Setting: `border_size`
  93- Default: `0.0`
  94
  95**Options**
  96
  97Non-negative `float` values
  98
  99### Inactive Opacity
 100
 101- Description: Opacity of inactive panels. When set to 1.0, the inactive panes have the same opacity as the active one. If set to 0, the inactive panes content will not be visible at all. Values are clamped to the [0.0, 1.0] range.
 102- Setting: `inactive_opacity`
 103- Default: `1.0`
 104
 105**Options**
 106
 107`float` values
 108
 109## Bottom Dock Layout
 110
 111- Description: Control the layout of the bottom dock, relative to the left and right docks.
 112- Setting: `bottom_dock_layout`
 113- Default: `"contained"`
 114
 115**Options**
 116
 1171. Contain the bottom dock, giving the full height of the window to the left and right docks.
 118
 119```json [settings]
 120{
 121  "bottom_dock_layout": "contained"
 122}
 123```
 124
 1252. Give the bottom dock the full width of the window, truncating the left and right docks.
 126
 127```json [settings]
 128{
 129  "bottom_dock_layout": "full"
 130}
 131```
 132
 1333. Left align the bottom dock, truncating the left dock and giving the right dock the full height of the window.
 134
 135```json [settings]
 136{
 137  "bottom_dock_layout": "left_aligned"
 138}
 139```
 140
 1414. Right align the bottom dock, giving the left dock the full height of the window and truncating the right dock.
 142
 143```json [settings]
 144{
 145  "bottom_dock_layout": "right_aligned"
 146}
 147```
 148
 149## Agent Font Size
 150
 151- Description: The font size for text in the agent panel. Inherits the UI font size if unset.
 152- Setting: `agent_font_size`
 153- Default: `null`
 154
 155**Options**
 156
 157`integer` values from `6` to `100` pixels (inclusive)
 158
 159## Allow Rewrap
 160
 161- Description: Controls where the {#action editor::Rewrap} action is allowed in the current language scope
 162- Setting: `allow_rewrap`
 163- Default: `"in_comments"`
 164
 165**Options**
 166
 1671. Allow rewrap in comments only:
 168
 169```json [settings]
 170{
 171  "allow_rewrap": "in_comments"
 172}
 173```
 174
 1752. Allow rewrap in selections only:
 176
 177```json [settings]
 178{
 179  "allow_rewrap": "in_selections"
 180}
 181```
 182
 1833. Allow rewrap anywhere:
 184
 185```json [settings]
 186{
 187  "allow_rewrap": "anywhere"
 188}
 189```
 190
 191Note: This setting has no effect in Vim mode, as rewrap is already allowed everywhere.
 192
 193## Auto Indent
 194
 195- Description: Whether indentation should be adjusted based on the context whilst typing. This can be specified on a per-language basis.
 196- Setting: `auto_indent`
 197- Default: `true`
 198
 199**Options**
 200
 201`boolean` values
 202
 203## Auto Indent On Paste
 204
 205- Description: Whether indentation of pasted content should be adjusted based on the context
 206- Setting: `auto_indent_on_paste`
 207- Default: `true`
 208
 209**Options**
 210
 211`boolean` values
 212
 213## Auto Install extensions
 214
 215- Description: Define extensions to be autoinstalled or never be installed.
 216- Setting: `auto_install_extensions`
 217- Default: `{ "html": true }`
 218
 219**Options**
 220
 221You can find the names of your currently installed extensions by listing the subfolders under the [extension installation location](./extensions/installing-extensions.md#installation-location):
 222
 223On macOS:
 224
 225```sh
 226ls ~/Library/Application\ Support/Zed/extensions/installed/
 227```
 228
 229On Linux:
 230
 231```sh
 232ls ~/.local/share/zed/extensions/installed
 233```
 234
 235Define extensions which should be installed (`true`) or never installed (`false`).
 236
 237```json [settings]
 238{
 239  "auto_install_extensions": {
 240    "html": true,
 241    "dockerfile": true,
 242    "docker-compose": false
 243  }
 244}
 245```
 246
 247## Auto Update extensions
 248
 249- Description: Define extensions to be autoupdated or manually updated.
 250- Setting: `auto_update_extensions`
 251- Default: `null`
 252
 253**Options**
 254
 255Define extensions which will be autoupdated (`true`) vs. those that will be manually updated (`false`).
 256
 257```json [settings]
 258{
 259  "auto_update_extensions": {
 260    "html": true,
 261    "dockerfile": true,
 262    "docker-compose": false
 263  }
 264}
 265```
 266
 267## Autosave
 268
 269- Description: When to automatically save edited buffers.
 270- Setting: `autosave`
 271- Default: `off`
 272
 273**Options**
 274
 2751. To disable autosave, set it to `off`:
 276
 277```json [settings]
 278{
 279  "autosave": "off"
 280}
 281```
 282
 2832. To autosave when focus changes, use `on_focus_change`:
 284
 285```json [settings]
 286{
 287  "autosave": "on_focus_change"
 288}
 289```
 290
 2913. To autosave when the active window changes, use `on_window_change`:
 292
 293```json [settings]
 294{
 295  "autosave": "on_window_change"
 296}
 297```
 298
 2994. To autosave after an inactivity period, use `after_delay`:
 300
 301```json [settings]
 302{
 303  "autosave": {
 304    "after_delay": {
 305      "milliseconds": 1000
 306    }
 307  }
 308}
 309```
 310
 311Note that a save will be triggered when an unsaved tab is closed, even if this is earlier than the configured inactivity period.
 312
 313## Autoscroll on Clicks
 314
 315- Description: Whether to scroll when clicking near the edge of the visible text area.
 316- Setting: `autoscroll_on_clicks`
 317- Default: `false`
 318
 319**Options**
 320
 321`boolean` values
 322
 323## Auto Signature Help
 324
 325- Description: Show method signatures in the editor, when inside parentheses
 326- Setting: `auto_signature_help`
 327- Default: `false`
 328
 329**Options**
 330
 331`boolean` values
 332
 333### Show Signature Help After Edits
 334
 335- Description: Whether to show the signature help after completion or a bracket pair inserted. If `auto_signature_help` is enabled, this setting will be treated as enabled also.
 336- Setting: `show_signature_help_after_edits`
 337- Default: `false`
 338
 339**Options**
 340
 341`boolean` values
 342
 343## Auto Update
 344
 345- Description: Whether or not to automatically check for updates.
 346- Setting: `auto_update`
 347- Default: `true`
 348
 349**Options**
 350
 351`boolean` values
 352
 353## Base Keymap
 354
 355- Description: Base key bindings scheme. Base keymaps can be overridden with user keymaps.
 356- Setting: `base_keymap`
 357- Default: `VSCode`
 358
 359**Options**
 360
 3611. VS Code
 362
 363```json [settings]
 364{
 365  "base_keymap": "VSCode"
 366}
 367```
 368
 3692. Atom
 370
 371```json [settings]
 372{
 373  "base_keymap": "Atom"
 374}
 375```
 376
 3773. JetBrains
 378
 379```json [settings]
 380{
 381  "base_keymap": "JetBrains"
 382}
 383```
 384
 3854. None
 386
 387```json [settings]
 388{
 389  "base_keymap": "None"
 390}
 391```
 392
 3935. Sublime Text
 394
 395```json [settings]
 396{
 397  "base_keymap": "SublimeText"
 398}
 399```
 400
 4016. TextMate
 402
 403```json [settings]
 404{
 405  "base_keymap": "TextMate"
 406}
 407```
 408
 409## Buffer Font Family
 410
 411- Description: The name of a font to use for rendering text in the editor.
 412- Setting: `buffer_font_family`
 413- Default: `.ZedMono`. This currently aliases to [Lilex](https://lilex.myrt.co).
 414
 415**Options**
 416
 417The name of any font family installed on the user's system, or `".ZedMono"`.
 418
 419## Buffer Font Features
 420
 421- Description: The OpenType features to enable for text in the editor.
 422- Setting: `buffer_font_features`
 423- Default: `null`
 424- Platform: macOS and Windows.
 425
 426**Options**
 427
 428Zed supports all OpenType features that can be enabled or disabled for a given buffer or terminal font, as well as setting values for font features.
 429
 430For example, to disable font ligatures, add the following to your settings:
 431
 432```json [settings]
 433{
 434  "buffer_font_features": {
 435    "calt": false
 436  }
 437}
 438```
 439
 440You can also set other OpenType features, like setting `cv01` to `7`:
 441
 442```json [settings]
 443{
 444  "buffer_font_features": {
 445    "cv01": 7
 446  }
 447}
 448```
 449
 450## Buffer Font Fallbacks
 451
 452- Description: Set the buffer text's font fallbacks, this will be merged with the platform's default fallbacks.
 453- Setting: `buffer_font_fallbacks`
 454- Default: `null`
 455- Platform: macOS and Windows.
 456
 457**Options**
 458
 459For example, to use `Nerd Font` as a fallback, add the following to your settings:
 460
 461```json [settings]
 462{
 463  "buffer_font_fallbacks": ["Nerd Font"]
 464}
 465```
 466
 467## Buffer Font Size
 468
 469- Description: The default font size for text in the editor.
 470- Setting: `buffer_font_size`
 471- Default: `15`
 472
 473**Options**
 474
 475A font size from `6` to `100` pixels (inclusive)
 476
 477## Buffer Font Weight
 478
 479- Description: The default font weight for text in the editor.
 480- Setting: `buffer_font_weight`
 481- Default: `400`
 482
 483**Options**
 484
 485`integer` values between `100` and `900`
 486
 487## Buffer Line Height
 488
 489- Description: The default line height for text in the editor.
 490- Setting: `buffer_line_height`
 491- Default: `"comfortable"`
 492
 493**Options**
 494
 495`"standard"`, `"comfortable"` or `{ "custom": float }` (`1` is compact, `2` is loose)
 496
 497## Centered Layout
 498
 499- Description: Configuration for the centered layout mode.
 500- Setting: `centered_layout`
 501- Default:
 502
 503```json [settings]
 504"centered_layout": {
 505  "left_padding": 0.2,
 506  "right_padding": 0.2,
 507}
 508```
 509
 510**Options**
 511
 512The `left_padding` and `right_padding` options define the relative width of the
 513left and right padding of the central pane from the workspace when the centered layout mode is activated. Valid values range is from `0` to `0.4`.
 514
 515## Close on File Delete
 516
 517- Description: Whether to automatically close editor tabs when their corresponding files are deleted from disk.
 518- Setting: `close_on_file_delete`
 519- Default: `false`
 520
 521**Options**
 522
 523`boolean` values
 524
 525When enabled, this setting will automatically close tabs for files that have been deleted from the file system. This is particularly useful for workflows involving temporary or scratch files that are frequently created and deleted. When disabled (default), deleted files remain open with a strikethrough through their tab title.
 526
 527Note: Dirty files (files with unsaved changes) will not be automatically closed even when this setting is enabled, ensuring you don't lose unsaved work.
 528
 529## Confirm Quit
 530
 531- Description: Whether or not to prompt the user to confirm before closing the application.
 532- Setting: `confirm_quit`
 533- Default: `false`
 534
 535**Options**
 536
 537`boolean` values
 538
 539## Diagnostics Max Severity
 540
 541- Description: Which level to use to filter out diagnostics displayed in the editor
 542- Setting: `diagnostics_max_severity`
 543- Default: `null`
 544
 545**Options**
 546
 5471. Allow all diagnostics (default):
 548
 549```json [settings]
 550{
 551  "diagnostics_max_severity": "all"
 552}
 553```
 554
 5552. Show only errors:
 556
 557```json [settings]
 558{
 559  "diagnostics_max_severity": "error"
 560}
 561```
 562
 5633. Show errors and warnings:
 564
 565```json [settings]
 566{
 567  "diagnostics_max_severity": "warning"
 568}
 569```
 570
 5714. Show errors, warnings, and information:
 572
 573```json [settings]
 574{
 575  "diagnostics_max_severity": "info"
 576}
 577```
 578
 5795. Show all including hints:
 580
 581```json [settings]
 582{
 583  "diagnostics_max_severity": "hint"
 584}
 585```
 586
 587## Disable AI
 588
 589- Description: Whether to disable all AI features in Zed
 590- Setting: `disable_ai`
 591- Default: `false`
 592
 593**Options**
 594
 595`boolean` values
 596
 597## Direnv Integration
 598
 599- Description: Settings for [direnv](https://direnv.net/) integration. Requires `direnv` to be installed.
 600  `direnv` integration make it possible to use the environment variables set by a `direnv` configuration to detect some language servers in `$PATH` instead of installing them.
 601  It also allows for those environment variables to be used in tasks.
 602- Setting: `load_direnv`
 603- Default: `"direct"`
 604
 605**Options**
 606
 607There are three options to choose from:
 608
 6091. `shell_hook`: Use the shell hook to load direnv. This relies on direnv to activate upon entering the directory. Supports POSIX shells and fish.
 6102. `direct`: Use `direnv export json` to load direnv. This will load direnv directly without relying on the shell hook and might cause some inconsistencies. This allows direnv to work with any shell.
 6113. `disabled`: No shell environment will be loaded automatically; direnv must be invoked manually (e.g. with `direnv exec`) to be used.
 612
 613## Double Click In Multibuffer
 614
 615- Description: What to do when multibuffer is double clicked in some of its excerpts (parts of singleton buffers)
 616- Setting: `double_click_in_multibuffer`
 617- Default: `"select"`
 618
 619**Options**
 620
 6211. Behave as a regular buffer and select the whole word (default):
 622
 623```json [settings]
 624{
 625  "double_click_in_multibuffer": "select"
 626}
 627```
 628
 6292. Open the excerpt clicked as a new buffer in the new tab:
 630
 631```json [settings]
 632{
 633  "double_click_in_multibuffer": "open"
 634}
 635```
 636
 637For the case of "open", regular selection behavior can be achieved by holding `alt` when double clicking.
 638
 639## Drop Target Size
 640
 641- Description: Relative size of the drop target in the editor that will open dropped file as a split pane (0-0.5). For example, 0.25 means if you drop onto the top/bottom quarter of the pane a new vertical split will be used, if you drop onto the left/right quarter of the pane a new horizontal split will be used.
 642- Setting: `drop_target_size`
 643- Default: `0.2`
 644
 645**Options**
 646
 647`float` values between `0` and `0.5`
 648
 649## Edit Predictions
 650
 651- Description: Settings for edit predictions.
 652- Setting: `edit_predictions`
 653- Default:
 654
 655```json [settings]
 656  "edit_predictions": {
 657    "disabled_globs": [
 658      "**/.env*",
 659      "**/*.pem",
 660      "**/*.key",
 661      "**/*.cert",
 662      "**/*.crt",
 663      "**/.dev.vars",
 664      "**/secrets.yml"
 665    ]
 666  }
 667```
 668
 669**Options**
 670
 671### Disabled Globs
 672
 673- Description: A list of globs for which edit predictions should be disabled for. This list adds to a pre-existing, sensible default set of globs. Any additional ones you add are combined with them.
 674- Setting: `disabled_globs`
 675- Default: `["**/.env*", "**/*.pem", "**/*.key", "**/*.cert", "**/*.crt", "**/.dev.vars", "**/secrets.yml"]`
 676
 677**Options**
 678
 679List of `string` values.
 680
 681## Edit Predictions Disabled in
 682
 683- Description: A list of language scopes in which edit predictions should be disabled.
 684- Setting: `edit_predictions_disabled_in`
 685- Default: `[]`
 686
 687**Options**
 688
 689List of `string` values
 690
 6911. Don't show edit predictions in comments:
 692
 693```json [settings]
 694"disabled_in": ["comment"]
 695```
 696
 6972. Don't show edit predictions in strings and comments:
 698
 699```json [settings]
 700"disabled_in": ["comment", "string"]
 701```
 702
 7033. Only in Go, don't show edit predictions in strings and comments:
 704
 705```json [settings]
 706{
 707  "languages": {
 708    "Go": {
 709      "edit_predictions_disabled_in": ["comment", "string"]
 710    }
 711  }
 712}
 713```
 714
 715## Current Line Highlight
 716
 717- Description: How to highlight the current line in the editor.
 718- Setting: `current_line_highlight`
 719- Default: `all`
 720
 721**Options**
 722
 7231. Don't highlight the current line:
 724
 725```json [settings]
 726"current_line_highlight": "none"
 727```
 728
 7292. Highlight the gutter area:
 730
 731```json [settings]
 732"current_line_highlight": "gutter"
 733```
 734
 7353. Highlight the editor area:
 736
 737```json [settings]
 738"current_line_highlight": "line"
 739```
 740
 7414. Highlight the full line:
 742
 743```json [settings]
 744"current_line_highlight": "all"
 745```
 746
 747## Selection Highlight
 748
 749- Description: Whether to highlight all occurrences of the selected text in an editor.
 750- Setting: `selection_highlight`
 751- Default: `true`
 752
 753## Rounded Selection
 754
 755- Description: Whether the text selection should have rounded corners.
 756- Setting: `rounded_selection`
 757- Default: `true`
 758
 759## Cursor Blink
 760
 761- Description: Whether or not the cursor blinks.
 762- Setting: `cursor_blink`
 763- Default: `true`
 764
 765**Options**
 766
 767`boolean` values
 768
 769## Cursor Shape
 770
 771- Description: Cursor shape for the default editor.
 772- Setting: `cursor_shape`
 773- Default: `bar`
 774
 775**Options**
 776
 7771. A vertical bar:
 778
 779```json [settings]
 780"cursor_shape": "bar"
 781```
 782
 7832. A block that surrounds the following character:
 784
 785```json [settings]
 786"cursor_shape": "block"
 787```
 788
 7893. An underline / underscore that runs along the following character:
 790
 791```json [settings]
 792"cursor_shape": "underline"
 793```
 794
 7954. An box drawn around the following character:
 796
 797```json [settings]
 798"cursor_shape": "hollow"
 799```
 800
 801## Gutter
 802
 803- Description: Settings for the editor gutter
 804- Setting: `gutter`
 805- Default:
 806
 807```json [settings]
 808{
 809  "gutter": {
 810    "line_numbers": true,
 811    "runnables": true,
 812    "breakpoints": true,
 813    "folds": true,
 814    "min_line_number_digits": 4
 815  }
 816}
 817```
 818
 819**Options**
 820
 821- `line_numbers`: Whether to show line numbers in the gutter
 822- `runnables`: Whether to show runnable buttons in the gutter
 823- `breakpoints`: Whether to show breakpoints in the gutter
 824- `folds`: Whether to show fold buttons in the gutter
 825- `min_line_number_digits`: Minimum number of characters to reserve space for in the gutter
 826
 827## Hide Mouse
 828
 829- Description: Determines when the mouse cursor should be hidden in an editor or input box.
 830- Setting: `hide_mouse`
 831- Default: `on_typing_and_movement`
 832
 833**Options**
 834
 8351. Never hide the mouse cursor:
 836
 837```json [settings]
 838"hide_mouse": "never"
 839```
 840
 8412. Hide only when typing:
 842
 843```json [settings]
 844"hide_mouse": "on_typing"
 845```
 846
 8473. Hide on both typing and cursor movement:
 848
 849```json [settings]
 850"hide_mouse": "on_typing_and_movement"
 851```
 852
 853## Snippet Sort Order
 854
 855- Description: Determines how snippets are sorted relative to other completion items.
 856- Setting: `snippet_sort_order`
 857- Default: `inline`
 858
 859**Options**
 860
 8611. Place snippets at the top of the completion list:
 862
 863```json [settings]
 864"snippet_sort_order": "top"
 865```
 866
 8672. Place snippets normally without any preference:
 868
 869```json [settings]
 870"snippet_sort_order": "inline"
 871```
 872
 8733. Place snippets at the bottom of the completion list:
 874
 875```json [settings]
 876"snippet_sort_order": "bottom"
 877```
 878
 8794. Do not show snippets in the completion list at all:
 880
 881```json [settings]
 882"snippet_sort_order": "none"
 883```
 884
 885## Editor Scrollbar
 886
 887- Description: Whether or not to show the editor scrollbar and various elements in it.
 888- Setting: `scrollbar`
 889- Default:
 890
 891```json [settings]
 892"scrollbar": {
 893  "show": "auto",
 894  "cursors": true,
 895  "git_diff": true,
 896  "search_results": true,
 897  "selected_text": true,
 898  "selected_symbol": true,
 899  "diagnostics": "all",
 900  "axes": {
 901    "horizontal": true,
 902    "vertical": true,
 903  },
 904},
 905```
 906
 907### Show Mode
 908
 909- Description: When to show the editor scrollbar.
 910- Setting: `show`
 911- Default: `auto`
 912
 913**Options**
 914
 9151. Show the scrollbar if there's important information or follow the system's configured behavior:
 916
 917```json [settings]
 918"scrollbar": {
 919  "show": "auto"
 920}
 921```
 922
 9232. Match the system's configured behavior:
 924
 925```json [settings]
 926"scrollbar": {
 927  "show": "system"
 928}
 929```
 930
 9313. Always show the scrollbar:
 932
 933```json [settings]
 934"scrollbar": {
 935  "show": "always"
 936}
 937```
 938
 9394. Never show the scrollbar:
 940
 941```json [settings]
 942"scrollbar": {
 943  "show": "never"
 944}
 945```
 946
 947### Cursor Indicators
 948
 949- Description: Whether to show cursor positions in the scrollbar.
 950- Setting: `cursors`
 951- Default: `true`
 952
 953Cursor indicators appear as small marks on the scrollbar showing where other collaborators' cursors are positioned in the file.
 954
 955**Options**
 956
 957`boolean` values
 958
 959### Git Diff Indicators
 960
 961- Description: Whether to show git diff indicators in the scrollbar.
 962- Setting: `git_diff`
 963- Default: `true`
 964
 965Git diff indicators appear as colored marks showing lines that have been added, modified, or deleted compared to the git HEAD.
 966
 967**Options**
 968
 969`boolean` values
 970
 971### Search Results Indicators
 972
 973- Description: Whether to show buffer search results in the scrollbar.
 974- Setting: `search_results`
 975- Default: `true`
 976
 977Search result indicators appear as marks showing all locations in the file where your current search query matches.
 978
 979**Options**
 980
 981`boolean` values
 982
 983### Selected Text Indicators
 984
 985- Description: Whether to show selected text occurrences in the scrollbar.
 986- Setting: `selected_text`
 987- Default: `true`
 988
 989Selected text indicators appear as marks showing all occurrences of the currently selected text throughout the file.
 990
 991**Options**
 992
 993`boolean` values
 994
 995### Selected Symbols Indicators
 996
 997- Description: Whether to show selected symbol occurrences in the scrollbar.
 998- Setting: `selected_symbol`
 999- Default: `true`
1000
1001Selected symbol indicators appear as marks showing all occurrences of the currently selected symbol (like a function or variable name) throughout the file.
1002
1003**Options**
1004
1005`boolean` values
1006
1007### Diagnostics
1008
1009- Description: Which diagnostic indicators to show in the scrollbar.
1010- Setting: `diagnostics`
1011- Default: `all`
1012
1013Diagnostic indicators appear as colored marks showing errors, warnings, and other language server diagnostics at their corresponding line positions in the file.
1014
1015**Options**
1016
10171. Show all diagnostics:
1018
1019```json [settings]
1020{
1021  "show_diagnostics": "all"
1022}
1023```
1024
10252. Do not show any diagnostics:
1026
1027```json [settings]
1028{
1029  "show_diagnostics": "off"
1030}
1031```
1032
10333. Show only errors:
1034
1035```json [settings]
1036{
1037  "show_diagnostics": "error"
1038}
1039```
1040
10414. Show only errors and warnings:
1042
1043```json [settings]
1044{
1045  "show_diagnostics": "warning"
1046}
1047```
1048
10495. Show only errors, warnings, and information:
1050
1051```json [settings]
1052{
1053  "show_diagnostics": "info"
1054}
1055```
1056
1057### Axes
1058
1059- Description: Forcefully enable or disable the scrollbar for each axis
1060- Setting: `axes`
1061- Default:
1062
1063```json [settings]
1064"scrollbar": {
1065  "axes": {
1066    "horizontal": true,
1067    "vertical": true,
1068  },
1069}
1070```
1071
1072#### Horizontal
1073
1074- Description: When false, forcefully disables the horizontal scrollbar. Otherwise, obey other settings.
1075- Setting: `horizontal`
1076- Default: `true`
1077
1078**Options**
1079
1080`boolean` values
1081
1082#### Vertical
1083
1084- Description: When false, forcefully disables the vertical scrollbar. Otherwise, obey other settings.
1085- Setting: `vertical`
1086- Default: `true`
1087
1088**Options**
1089
1090`boolean` values
1091
1092## Minimap
1093
1094- Description: Settings related to the editor's minimap, which provides an overview of your document.
1095- Setting: `minimap`
1096- Default:
1097
1098```json [settings]
1099{
1100  "minimap": {
1101    "show": "never",
1102    "thumb": "always",
1103    "thumb_border": "left_open",
1104    "current_line_highlight": null
1105  }
1106}
1107```
1108
1109### Show Mode
1110
1111- Description: When to show the minimap in the editor.
1112- Setting: `show`
1113- Default: `never`
1114
1115**Options**
1116
11171. Always show the minimap:
1118
1119```json [settings]
1120{
1121  "show": "always"
1122}
1123```
1124
11252. Show the minimap if the editor's scrollbars are visible:
1126
1127```json [settings]
1128{
1129  "show": "auto"
1130}
1131```
1132
11333. Never show the minimap:
1134
1135```json [settings]
1136{
1137  "show": "never"
1138}
1139```
1140
1141### Thumb Display
1142
1143- Description: When to show the minimap thumb (the visible editor area) in the minimap.
1144- Setting: `thumb`
1145- Default: `always`
1146
1147**Options**
1148
11491. Show the minimap thumb when hovering over the minimap:
1150
1151```json [settings]
1152{
1153  "thumb": "hover"
1154}
1155```
1156
11572. Always show the minimap thumb:
1158
1159```json [settings]
1160{
1161  "thumb": "always"
1162}
1163```
1164
1165### Thumb Border
1166
1167- Description: How the minimap thumb border should look.
1168- Setting: `thumb_border`
1169- Default: `left_open`
1170
1171**Options**
1172
11731. Display a border on all sides of the thumb:
1174
1175```json [settings]
1176{
1177  "thumb_border": "full"
1178}
1179```
1180
11812. Display a border on all sides except the left side:
1182
1183```json [settings]
1184{
1185  "thumb_border": "left_open"
1186}
1187```
1188
11893. Display a border on all sides except the right side:
1190
1191```json [settings]
1192{
1193  "thumb_border": "right_open"
1194}
1195```
1196
11974. Display a border only on the left side:
1198
1199```json [settings]
1200{
1201  "thumb_border": "left_only"
1202}
1203```
1204
12055. Display the thumb without any border:
1206
1207```json [settings]
1208{
1209  "thumb_border": "none"
1210}
1211```
1212
1213### Current Line Highlight
1214
1215- Description: How to highlight the current line in the minimap.
1216- Setting: `current_line_highlight`
1217- Default: `null`
1218
1219**Options**
1220
12211. Inherit the editor's current line highlight setting:
1222
1223```json [settings]
1224{
1225  "minimap": {
1226    "current_line_highlight": null
1227  }
1228}
1229```
1230
12312. Highlight the current line in the minimap:
1232
1233```json [settings]
1234{
1235  "minimap": {
1236    "current_line_highlight": "line"
1237  }
1238}
1239```
1240
1241or
1242
1243```json [settings]
1244{
1245  "minimap": {
1246    "current_line_highlight": "all"
1247  }
1248}
1249```
1250
12513. Do not highlight the current line in the minimap:
1252
1253```json [settings]
1254{
1255  "minimap": {
1256    "current_line_highlight": "gutter"
1257  }
1258}
1259```
1260
1261or
1262
1263```json [settings]
1264{
1265  "minimap": {
1266    "current_line_highlight": "none"
1267  }
1268}
1269```
1270
1271## Editor Tab Bar
1272
1273- Description: Settings related to the editor's tab bar.
1274- Settings: `tab_bar`
1275- Default:
1276
1277```json [settings]
1278"tab_bar": {
1279  "show": true,
1280  "show_nav_history_buttons": true,
1281  "show_tab_bar_buttons": true
1282}
1283```
1284
1285### Show
1286
1287- Description: Whether or not to show the tab bar in the editor.
1288- Setting: `show`
1289- Default: `true`
1290
1291**Options**
1292
1293`boolean` values
1294
1295### Navigation History Buttons
1296
1297- Description: Whether or not to show the navigation history buttons.
1298- Setting: `show_nav_history_buttons`
1299- Default: `true`
1300
1301**Options**
1302
1303`boolean` values
1304
1305### Tab Bar Buttons
1306
1307- Description: Whether or not to show the tab bar buttons.
1308- Setting: `show_tab_bar_buttons`
1309- Default: `true`
1310
1311**Options**
1312
1313`boolean` values
1314
1315## Editor Tabs
1316
1317- Description: Configuration for the editor tabs.
1318- Setting: `tabs`
1319- Default:
1320
1321```json [settings]
1322"tabs": {
1323  "close_position": "right",
1324  "file_icons": false,
1325  "git_status": false,
1326  "activate_on_close": "history",
1327  "show_close_button": "hover",
1328  "show_diagnostics": "off"
1329},
1330```
1331
1332### Close Position
1333
1334- Description: Where to display close button within a tab.
1335- Setting: `close_position`
1336- Default: `right`
1337
1338**Options**
1339
13401. Display the close button on the right:
1341
1342```json [settings]
1343{
1344  "close_position": "right"
1345}
1346```
1347
13482. Display the close button on the left:
1349
1350```json [settings]
1351{
1352  "close_position": "left"
1353}
1354```
1355
1356### File Icons
1357
1358- Description: Whether to show the file icon for a tab.
1359- Setting: `file_icons`
1360- Default: `false`
1361
1362### Git Status
1363
1364- Description: Whether or not to show Git file status in tab.
1365- Setting: `git_status`
1366- Default: `false`
1367
1368### Activate on close
1369
1370- Description: What to do after closing the current tab.
1371- Setting: `activate_on_close`
1372- Default: `history`
1373
1374**Options**
1375
13761.  Activate the tab that was open previously:
1377
1378```json [settings]
1379{
1380  "activate_on_close": "history"
1381}
1382```
1383
13842. Activate the right neighbour tab if present:
1385
1386```json [settings]
1387{
1388  "activate_on_close": "neighbour"
1389}
1390```
1391
13923. Activate the left neighbour tab if present:
1393
1394```json [settings]
1395{
1396  "activate_on_close": "left_neighbour"
1397}
1398```
1399
1400### Show close button
1401
1402- Description: Controls the appearance behavior of the tab's close button.
1403- Setting: `show_close_button`
1404- Default: `hover`
1405
1406**Options**
1407
14081.  Show it just upon hovering the tab:
1409
1410```json [settings]
1411{
1412  "show_close_button": "hover"
1413}
1414```
1415
14162. Show it persistently:
1417
1418```json [settings]
1419{
1420  "show_close_button": "always"
1421}
1422```
1423
14243. Never show it, even if hovering it:
1425
1426```json [settings]
1427{
1428  "show_close_button": "hidden"
1429}
1430```
1431
1432### Show Diagnostics
1433
1434- Description: Whether to show diagnostics indicators in tabs. This setting only works when file icons are active and controls which files with diagnostic issues to mark.
1435- Setting: `show_diagnostics`
1436- Default: `off`
1437
1438**Options**
1439
14401. Do not mark any files:
1441
1442```json [settings]
1443{
1444  "show_diagnostics": "off"
1445}
1446```
1447
14482. Only mark files with errors:
1449
1450```json [settings]
1451{
1452  "show_diagnostics": "errors"
1453}
1454```
1455
14563. Mark files with errors and warnings:
1457
1458```json [settings]
1459{
1460  "show_diagnostics": "all"
1461}
1462```
1463
1464### Show Inline Code Actions
1465
1466- Description: Whether to show code action button at start of buffer line.
1467- Setting: `inline_code_actions`
1468- Default: `true`
1469
1470**Options**
1471
1472`boolean` values
1473
1474### Session
1475
1476- Description: Controls Zed lifecycle-related behavior.
1477- Setting: `session`
1478- Default:
1479
1480```json
1481{
1482  "session": {
1483    "restore_unsaved_buffers": true,
1484    "trust_all_worktrees": false
1485  }
1486}
1487```
1488
1489**Options**
1490
14911.  Whether or not to restore unsaved buffers on restart:
1492
1493```json [settings]
1494{
1495  "session": {
1496    "restore_unsaved_buffers": true
1497  }
1498}
1499```
1500
1501If this is true, user won't be prompted whether to save/discard dirty files when closing the application.
1502
15032. Whether or not to skip worktree and workspace trust checks:
1504
1505```json [settings]
1506{
1507  "session": {
1508    "trust_all_worktrees": false
1509  }
1510}
1511```
1512
1513When trusted, project settings are synchronized automatically, language and MCP servers are downloaded and started automatically.
1514
1515### Drag And Drop Selection
1516
1517- Description: Whether to allow drag and drop text selection in buffer. `delay` is the milliseconds that must elapse before drag and drop is allowed. Otherwise, a new text selection is created.
1518- Setting: `drag_and_drop_selection`
1519- Default:
1520
1521```json [settings]
1522"drag_and_drop_selection": {
1523  "enabled": true,
1524  "delay": 300
1525}
1526```
1527
1528## Editor Toolbar
1529
1530- Description: Whether or not to show various elements in the editor toolbar.
1531- Setting: `toolbar`
1532- Default:
1533
1534```json [settings]
1535"toolbar": {
1536  "breadcrumbs": true,
1537  "quick_actions": true,
1538  "selections_menu": true,
1539  "agent_review": true,
1540  "code_actions": false
1541},
1542```
1543
1544**Options**
1545
1546Each option controls displaying of a particular toolbar element. If all elements are hidden, the editor toolbar is not displayed.
1547
1548## Use System Tabs
1549
1550- Description: Whether to allow windows to tab together based on the user’s tabbing preference (macOS only).
1551- Setting: `use_system_window_tabs`
1552- Default: `false`
1553
1554**Options**
1555
1556This setting enables integration with macOS’s native window tabbing feature. When set to `true`, Zed windows can be grouped together as tabs in a single macOS window, following the system-wide tabbing preferences set by the user (such as "Always", "In Full Screen", or "Never"). This setting is only available on macOS.
1557
1558## Enable Language Server
1559
1560- Description: Whether or not to use language servers to provide code intelligence.
1561- Setting: `enable_language_server`
1562- Default: `true`
1563
1564**Options**
1565
1566`boolean` values
1567
1568## Ensure Final Newline On Save
1569
1570- Description: Removes any lines containing only whitespace at the end of the file and ensures just one newline at the end.
1571- Setting: `ensure_final_newline_on_save`
1572- Default: `true`
1573
1574**Options**
1575
1576`boolean` values
1577
1578## Expand Excerpt Lines
1579
1580- Description: The default number of lines to expand excerpts in the multibuffer by
1581- Setting: `expand_excerpt_lines`
1582- Default: `5`
1583
1584**Options**
1585
1586Positive `integer` values
1587
1588## Excerpt Context Lines
1589
1590- Description: The number of lines of context to provide when showing excerpts in the multibuffer.
1591- Setting: `excerpt_context_lines`
1592- Default: `2`
1593
1594**Options**
1595
1596Positive `integer` value between 1 and 32. Values outside of this range will be clamped to this range.
1597
1598## Extend Comment On Newline
1599
1600- Description: Whether to start a new line with a comment when a previous line is a comment as well.
1601- Setting: `extend_comment_on_newline`
1602- Default: `true`
1603
1604**Options**
1605
1606`boolean` values
1607
1608## Extend List On Newline
1609
1610- Description: Whether to continue lists when pressing Enter at the end of a list item. Supports unordered, ordered, and task lists. Pressing Enter on an empty list item removes the marker and exits the list.
1611- Setting: `extend_list_on_newline`
1612- Default: `true`
1613
1614**Options**
1615
1616`boolean` values
1617
1618## Indent List On Tab
1619
1620- Description: Whether to indent list items when pressing Tab on a line containing only a list marker. This enables quick creation of nested lists.
1621- Setting: `indent_list_on_tab`
1622- Default: `true`
1623
1624**Options**
1625
1626`boolean` values
1627
1628## Status Bar
1629
1630- Description: Control various elements in the status bar. Note that some items in the status bar have their own settings set elsewhere.
1631- Setting: `status_bar`
1632- Default:
1633
1634```json [settings]
1635"status_bar": {
1636  "active_language_button": true,
1637  "cursor_position_button": true,
1638  "line_endings_button": false,
1639  "active_encoding_button": "non_utf8"
1640},
1641```
1642
1643There is an experimental setting that completely hides the status bar. This causes major usability problems (you will be unable to use many of Zed's features), but is provided for those who value screen real-estate above all else.
1644
1645```json
1646"status_bar": {
1647  "experimental.show": false
1648}
1649```
1650
1651## LSP
1652
1653- Description: Configuration for language servers.
1654- Setting: `lsp`
1655- Default: `null`
1656
1657**Options**
1658
1659The following settings can be overridden for specific language servers:
1660
1661- `initialization_options`
1662- `settings`
1663
1664To override configuration for a language server, add an entry for that language server's name to the `lsp` value.
1665
1666Some options are passed via `initialization_options` to the language server. These are for options which must be specified at language server startup and when changed will require restarting the language server.
1667
1668For example to pass the `check` option to `rust-analyzer`, use the following configuration:
1669
1670```json [settings]
1671"lsp": {
1672  "rust-analyzer": {
1673    "initialization_options": {
1674      "check": {
1675        "command": "clippy" // rust-analyzer.check.command (default: "check")
1676      }
1677    }
1678  }
1679}
1680```
1681
1682While other options may be changed at a runtime and should be placed under `settings`:
1683
1684```json [settings]
1685"lsp": {
1686  "yaml-language-server": {
1687    "settings": {
1688      "yaml": {
1689        "keyOrdering": true // Enforces alphabetical ordering of keys in maps
1690      }
1691    }
1692  }
1693}
1694```
1695
1696## Global LSP Settings
1697
1698- Description: Configuration for global LSP settings that apply to all language servers
1699- Setting: `global_lsp_settings`
1700- Default:
1701
1702```json [settings]
1703{
1704  "global_lsp_settings": {
1705    "button": true
1706  }
1707}
1708```
1709
1710**Options**
1711
1712- `button`: Whether to show the LSP status button in the status bar
1713
1714## LSP Highlight Debounce
1715
1716- Description: The debounce delay in milliseconds before querying highlights from the language server based on the current cursor location.
1717- Setting: `lsp_highlight_debounce`
1718- Default: `75`
1719
1720**Options**
1721
1722`integer` values representing milliseconds
1723
1724## Features
1725
1726- Description: Features that can be globally enabled or disabled
1727- Setting: `features`
1728- Default:
1729
1730```json [settings]
1731{
1732  "features": {
1733    "edit_prediction_provider": "zed"
1734  }
1735}
1736```
1737
1738### Edit Prediction Provider
1739
1740- Description: Which edit prediction provider to use
1741- Setting: `edit_prediction_provider`
1742- Default: `"zed"`
1743
1744**Options**
1745
17461. Use Zeta as the edit prediction provider:
1747
1748```json [settings]
1749{
1750  "features": {
1751    "edit_prediction_provider": "zed"
1752  }
1753}
1754```
1755
17562. Use Copilot as the edit prediction provider:
1757
1758```json [settings]
1759{
1760  "features": {
1761    "edit_prediction_provider": "copilot"
1762  }
1763}
1764```
1765
17663. Use Supermaven as the edit prediction provider:
1767
1768```json [settings]
1769{
1770  "features": {
1771    "edit_prediction_provider": "supermaven"
1772  }
1773}
1774```
1775
17764. Turn off edit predictions across all providers
1777
1778```json [settings]
1779{
1780  "features": {
1781    "edit_prediction_provider": "none"
1782  }
1783}
1784```
1785
1786## Format On Save
1787
1788- Description: Whether or not to perform a buffer format before saving.
1789- Setting: `format_on_save`
1790- Default: `on`
1791
1792**Options**
1793
17941. `on`, enables format on save obeying `formatter` setting:
1795
1796```json [settings]
1797{
1798  "format_on_save": "on"
1799}
1800```
1801
18022. `off`, disables format on save:
1803
1804```json [settings]
1805{
1806  "format_on_save": "off"
1807}
1808```
1809
1810## Formatter
1811
1812- Description: How to perform a buffer format.
1813- Setting: `formatter`
1814- Default: `auto`
1815
1816**Options**
1817
18181. To use the current language server, use `"language_server"`:
1819
1820```json [settings]
1821{
1822  "formatter": "language_server"
1823}
1824```
1825
18262. Or to use an external command, use `"external"`. Specify the name of the formatting program to run, and an array of arguments to pass to the program. The buffer's text will be passed to the program on stdin, and the formatted output should be written to stdout. For example, the following command would strip trailing spaces using [`sed(1)`](https://linux.die.net/man/1/sed):
1827
1828```json [settings]
1829{
1830  "formatter": {
1831    "external": {
1832      "command": "sed",
1833      "arguments": ["-e", "s/ *$//"]
1834    }
1835  }
1836}
1837```
1838
18393. External formatters may optionally include a `{buffer_path}` placeholder which at runtime will include the path of the buffer being formatted. Formatters operate by receiving file content via standard input, reformatting it and then outputting it to standard output and so normally don't know the filename of what they are formatting. Tools like Prettier support receiving the file path via a command line argument which can then used to impact formatting decisions.
1840
1841WARNING: `{buffer_path}` should not be used to direct your formatter to read from a filename. Your formatter should only read from standard input and should not read or write files directly.
1842
1843```json [settings]
1844  "formatter": {
1845    "external": {
1846      "command": "prettier",
1847      "arguments": ["--stdin-filepath", "{buffer_path}"]
1848    }
1849  }
1850```
1851
18524. Or to use code actions provided by the connected language servers, use `"code_actions"`:
1853
1854```json [settings]
1855{
1856  "formatter": [
1857    // Use ESLint's --fix:
1858    { "code_action": "source.fixAll.eslint" },
1859    // Organize imports on save:
1860    { "code_action": "source.organizeImports" }
1861  ]
1862}
1863```
1864
18655. Or to use multiple formatters consecutively, use an array of formatters:
1866
1867```json [settings]
1868{
1869  "formatter": [
1870    { "language_server": { "name": "rust-analyzer" } },
1871    {
1872      "external": {
1873        "command": "sed",
1874        "arguments": ["-e", "s/ *$//"]
1875      }
1876    }
1877  ]
1878}
1879```
1880
1881Here `rust-analyzer` will be used first to format the code, followed by a call of sed.
1882If any of the formatters fails, the subsequent ones will still be executed.
1883
1884## Auto close
1885
1886- Description: Whether to automatically add matching closing characters when typing opening parenthesis, bracket, brace, single or double quote characters.
1887- Setting: `use_autoclose`
1888- Default: `true`
1889
1890**Options**
1891
1892`boolean` values
1893
1894## Always Treat Brackets As Autoclosed
1895
1896- Description: Controls how the editor handles the autoclosed characters.
1897- Setting: `always_treat_brackets_as_autoclosed`
1898- Default: `false`
1899
1900**Options**
1901
1902`boolean` values
1903
1904**Example**
1905
1906If the setting is set to `true`:
1907
19081. Enter in the editor: `)))`
19092. Move the cursor to the start: `^)))`
19103. Enter again: `)))`
1911
1912The result is still `)))` and not `))))))`, which is what it would be by default.
1913
1914## File Scan Exclusions
1915
1916- Setting: `file_scan_exclusions`
1917- Description: Files or globs of files that will be excluded by Zed entirely. They will be skipped during file scans, file searches, and not be displayed in the project file tree. Overrides `file_scan_inclusions`.
1918- Default:
1919
1920```json [settings]
1921"file_scan_exclusions": [
1922  "**/.git",
1923  "**/.svn",
1924  "**/.hg",
1925  "**/.jj",
1926  "**/CVS",
1927  "**/.DS_Store",
1928  "**/Thumbs.db",
1929  "**/.classpath",
1930  "**/.settings"
1931],
1932```
1933
1934Note, specifying `file_scan_exclusions` in settings.json will override the defaults (shown above). If you are looking to exclude additional items you will need to include all the default values in your settings.
1935
1936## File Scan Inclusions
1937
1938- Setting: `file_scan_inclusions`
1939- Description: Files or globs of files that will be included by Zed, even when ignored by git. This is useful for files that are not tracked by git, but are still important to your project. Note that globs that are overly broad can slow down Zed's file scanning. `file_scan_exclusions` takes precedence over these inclusions.
1940- Default:
1941
1942```json [settings]
1943"file_scan_inclusions": [".env*"],
1944```
1945
1946## File Types
1947
1948- Setting: `file_types`
1949- Description: Configure how Zed selects a language for a file based on its filename or extension. Supports glob entries.
1950- Default:
1951
1952```json [settings]
1953"file_types": {
1954  "JSONC": ["**/.zed/**/*.json", "**/zed/**/*.json", "**/Zed/**/*.json", "**/.vscode/**/*.json"],
1955  "Shell Script": [".env.*"]
1956}
1957```
1958
1959**Examples**
1960
1961To interpret all `.c` files as C++, files called `MyLockFile` as TOML and files starting with `Dockerfile` as Dockerfile:
1962
1963```json [settings]
1964{
1965  "file_types": {
1966    "C++": ["c"],
1967    "TOML": ["MyLockFile"],
1968    "Dockerfile": ["Dockerfile*"]
1969  }
1970}
1971```
1972
1973## Diagnostics
1974
1975- Description: Configuration for diagnostics-related features.
1976- Setting: `diagnostics`
1977- Default:
1978
1979```json [settings]
1980{
1981  "diagnostics": {
1982    "include_warnings": true,
1983    "inline": {
1984      "enabled": false
1985    },
1986    "update_with_cursor": false,
1987    "primary_only": false,
1988    "use_rendered": false
1989  }
1990}
1991```
1992
1993### Inline Diagnostics
1994
1995- Description: Whether or not to show diagnostics information inline.
1996- Setting: `inline`
1997- Default:
1998
1999```json [settings]
2000{
2001  "diagnostics": {
2002    "inline": {
2003      "enabled": false,
2004      "update_debounce_ms": 150,
2005      "padding": 4,
2006      "min_column": 0,
2007      "max_severity": null
2008    }
2009  }
2010}
2011```
2012
2013**Options**
2014
20151. Enable inline diagnostics.
2016
2017```json [settings]
2018{
2019  "diagnostics": {
2020    "inline": {
2021      "enabled": true
2022    }
2023  }
2024}
2025```
2026
20272. Delay diagnostic updates until some time after the last diagnostic update.
2028
2029```json [settings]
2030{
2031  "diagnostics": {
2032    "inline": {
2033      "enabled": true,
2034      "update_debounce_ms": 150
2035    }
2036  }
2037}
2038```
2039
20403. Set padding between the end of the source line and the start of the diagnostic.
2041
2042```json [settings]
2043{
2044  "diagnostics": {
2045    "inline": {
2046      "enabled": true,
2047      "padding": 4
2048    }
2049  }
2050}
2051```
2052
20534. Horizontally align inline diagnostics at the given column.
2054
2055```json [settings]
2056{
2057  "diagnostics": {
2058    "inline": {
2059      "enabled": true,
2060      "min_column": 80
2061    }
2062  }
2063}
2064```
2065
20665. Show only warning and error diagnostics.
2067
2068```json [settings]
2069{
2070  "diagnostics": {
2071    "inline": {
2072      "enabled": true,
2073      "max_severity": "warning"
2074    }
2075  }
2076}
2077```
2078
2079## Git
2080
2081- Description: Configuration for git-related features.
2082- Setting: `git`
2083- Default:
2084
2085```json [settings]
2086{
2087  "git": {
2088    "git_gutter": "tracked_files",
2089    "inline_blame": {
2090      "enabled": true
2091    },
2092    "branch_picker": {
2093      "show_author_name": true
2094    },
2095    "hunk_style": "staged_hollow"
2096  }
2097}
2098```
2099
2100### Git Gutter
2101
2102- Description: Whether or not to show the git gutter.
2103- Setting: `git_gutter`
2104- Default: `tracked_files`
2105
2106**Options**
2107
21081. Show git gutter in tracked files
2109
2110```json [settings]
2111{
2112  "git": {
2113    "git_gutter": "tracked_files"
2114  }
2115}
2116```
2117
21182. Hide git gutter
2119
2120```json [settings]
2121{
2122  "git": {
2123    "git_gutter": "hide"
2124  }
2125}
2126```
2127
2128### Gutter Debounce
2129
2130- Description: Sets the debounce threshold (in milliseconds) after which changes are reflected in the git gutter.
2131- Setting: `gutter_debounce`
2132- Default: `null`
2133
2134**Options**
2135
2136`integer` values representing milliseconds
2137
2138Example:
2139
2140```json [settings]
2141{
2142  "git": {
2143    "gutter_debounce": 100
2144  }
2145}
2146```
2147
2148### Inline Git Blame
2149
2150- Description: Whether or not to show git blame information inline, on the currently focused line.
2151- Setting: `inline_blame`
2152- Default:
2153
2154```json [settings]
2155{
2156  "git": {
2157    "inline_blame": {
2158      "enabled": true
2159    }
2160  }
2161}
2162```
2163
2164**Options**
2165
21661. Disable inline git blame:
2167
2168```json [settings]
2169{
2170  "git": {
2171    "inline_blame": {
2172      "enabled": false
2173    }
2174  }
2175}
2176```
2177
21782. Only show inline git blame after a delay (that starts after cursor stops moving):
2179
2180```json [settings]
2181{
2182  "git": {
2183    "inline_blame": {
2184      "delay_ms": 500
2185    }
2186  }
2187}
2188```
2189
21903. Show a commit summary next to the commit date and author:
2191
2192```json [settings]
2193{
2194  "git": {
2195    "inline_blame": {
2196      "show_commit_summary": true
2197    }
2198  }
2199}
2200```
2201
22024. Use this as the minimum column at which to display inline blame information:
2203
2204```json [settings]
2205{
2206  "git": {
2207    "inline_blame": {
2208      "min_column": 80
2209    }
2210  }
2211}
2212```
2213
22145. Set the padding between the end of the line and the inline blame hint, in ems:
2215
2216```json [settings]
2217{
2218  "git": {
2219    "inline_blame": {
2220      "padding": 10
2221    }
2222  }
2223}
2224```
2225
2226### Branch Picker
2227
2228- Description: Configuration related to the branch picker.
2229- Setting: `branch_picker`
2230- Default:
2231
2232```json [settings]
2233{
2234  "git": {
2235    "branch_picker": {
2236      "show_author_name": false
2237    }
2238  }
2239}
2240```
2241
2242**Options**
2243
22441. Show the author name in the branch picker:
2245
2246```json [settings]
2247{
2248  "git": {
2249    "branch_picker": {
2250      "show_author_name": true
2251    }
2252  }
2253}
2254```
2255
2256### Hunk Style
2257
2258- Description: What styling we should use for the diff hunks.
2259- Setting: `hunk_style`
2260- Default:
2261
2262```json [settings]
2263{
2264  "git": {
2265    "hunk_style": "staged_hollow"
2266  }
2267}
2268```
2269
2270**Options**
2271
22721. Show the staged hunks faded out and with a border:
2273
2274```json [settings]
2275{
2276  "git": {
2277    "hunk_style": "staged_hollow"
2278  }
2279}
2280```
2281
22822. Show unstaged hunks faded out and with a border:
2283
2284```json [settings]
2285{
2286  "git": {
2287    "hunk_style": "unstaged_hollow"
2288  }
2289}
2290```
2291
2292## Go to Definition Fallback
2293
2294- Description: What to do when the {#action editor::GoToDefinition} action fails to find a definition
2295- Setting: `go_to_definition_fallback`
2296- Default: `"find_all_references"`
2297
2298**Options**
2299
23001. Do nothing:
2301
2302```json [settings]
2303{
2304  "go_to_definition_fallback": "none"
2305}
2306```
2307
23082. Find references for the same symbol (default):
2309
2310```json [settings]
2311{
2312  "go_to_definition_fallback": "find_all_references"
2313}
2314```
2315
2316## Hard Tabs
2317
2318- Description: Whether to indent lines using tab characters or multiple spaces.
2319- Setting: `hard_tabs`
2320- Default: `false`
2321
2322**Options**
2323
2324`boolean` values
2325
2326## Helix Mode
2327
2328- Description: Whether or not to enable Helix mode. Enabling `helix_mode` also enables `vim_mode`. See the [Helix documentation](./helix.md) for more details.
2329- Setting: `helix_mode`
2330- Default: `false`
2331
2332**Options**
2333
2334`boolean` values
2335
2336## Indent Guides
2337
2338- Description: Configuration related to indent guides. Indent guides can be configured separately for each language.
2339- Setting: `indent_guides`
2340- Default:
2341
2342```json [settings]
2343{
2344  "indent_guides": {
2345    "enabled": true,
2346    "line_width": 1,
2347    "active_line_width": 1,
2348    "coloring": "fixed",
2349    "background_coloring": "disabled"
2350  }
2351}
2352```
2353
2354**Options**
2355
23561. Disable indent guides
2357
2358```json [settings]
2359{
2360  "indent_guides": {
2361    "enabled": false
2362  }
2363}
2364```
2365
23662. Enable indent guides for a specific language.
2367
2368```json [settings]
2369{
2370  "languages": {
2371    "Python": {
2372      "indent_guides": {
2373        "enabled": true
2374      }
2375    }
2376  }
2377}
2378```
2379
23803. Enable indent aware coloring ("rainbow indentation").
2381   The colors that are used for different indentation levels are defined in the theme (theme key: `accents`). They can be customized by using theme overrides.
2382
2383```json [settings]
2384{
2385  "indent_guides": {
2386    "enabled": true,
2387    "coloring": "indent_aware"
2388  }
2389}
2390```
2391
23924. Enable indent aware background coloring ("rainbow indentation").
2393   The colors that are used for different indentation levels are defined in the theme (theme key: `accents`). They can be customized by using theme overrides.
2394
2395```json [settings]
2396{
2397  "indent_guides": {
2398    "enabled": true,
2399    "coloring": "indent_aware",
2400    "background_coloring": "indent_aware"
2401  }
2402}
2403```
2404
2405## Hover Popover Enabled
2406
2407- Description: Whether or not to show the informational hover box when moving the mouse over symbols in the editor.
2408- Setting: `hover_popover_enabled`
2409- Default: `true`
2410
2411**Options**
2412
2413`boolean` values
2414
2415## Hover Popover Delay
2416
2417- Description: Time to wait in milliseconds before showing the informational hover box.
2418- Setting: `hover_popover_delay`
2419- Default: `300`
2420
2421**Options**
2422
2423`integer` values representing milliseconds
2424
2425## Icon Theme
2426
2427- Description: The icon theme setting can be specified in two forms - either as the name of an icon theme or as an object containing the `mode`, `dark`, and `light` icon themes for files/folders inside Zed.
2428- Setting: `icon_theme`
2429- Default: `Zed (Default)`
2430
2431### Icon Theme Object
2432
2433- Description: Specify the icon theme using an object that includes the `mode`, `dark`, and `light`.
2434- Setting: `icon_theme`
2435- Default:
2436
2437```json [settings]
2438"icon_theme": {
2439  "mode": "system",
2440  "dark": "Zed (Default)",
2441  "light": "Zed (Default)"
2442},
2443```
2444
2445### Mode
2446
2447- Description: Specify the icon theme mode.
2448- Setting: `mode`
2449- Default: `system`
2450
2451**Options**
2452
24531. Set the icon theme to dark mode
2454
2455```json [settings]
2456{
2457  "mode": "dark"
2458}
2459```
2460
24612. Set the icon theme to light mode
2462
2463```json [settings]
2464{
2465  "mode": "light"
2466}
2467```
2468
24693. Set the icon theme to system mode
2470
2471```json [settings]
2472{
2473  "mode": "system"
2474}
2475```
2476
2477### Dark
2478
2479- Description: The name of the dark icon theme.
2480- Setting: `dark`
2481- Default: `Zed (Default)`
2482
2483**Options**
2484
2485Run the {#action icon_theme_selector::Toggle} action in the command palette to see a current list of valid icon themes names.
2486
2487### Light
2488
2489- Description: The name of the light icon theme.
2490- Setting: `light`
2491- Default: `Zed (Default)`
2492
2493**Options**
2494
2495Run the {#action icon_theme_selector::Toggle} action in the command palette to see a current list of valid icon themes names.
2496
2497## Image Viewer
2498
2499- Description: Settings for image viewer functionality
2500- Setting: `image_viewer`
2501- Default:
2502
2503```json [settings]
2504{
2505  "image_viewer": {
2506    "unit": "binary"
2507  }
2508}
2509```
2510
2511**Options**
2512
2513### Unit
2514
2515- Description: The unit for image file sizes
2516- Setting: `unit`
2517- Default: `"binary"`
2518
2519**Options**
2520
25211. Use binary units (KiB, MiB):
2522
2523```json [settings]
2524{
2525  "image_viewer": {
2526    "unit": "binary"
2527  }
2528}
2529```
2530
25312. Use decimal units (KB, MB):
2532
2533```json [settings]
2534{
2535  "image_viewer": {
2536    "unit": "decimal"
2537  }
2538}
2539```
2540
2541## Inlay hints
2542
2543- Description: Configuration for displaying extra text with hints in the editor.
2544- Setting: `inlay_hints`
2545- Default:
2546
2547```json [settings]
2548"inlay_hints": {
2549  "enabled": false,
2550  "show_type_hints": true,
2551  "show_parameter_hints": true,
2552  "show_other_hints": true,
2553  "show_background": false,
2554  "edit_debounce_ms": 700,
2555  "scroll_debounce_ms": 50,
2556  "toggle_on_modifiers_press": null
2557}
2558```
2559
2560**Options**
2561
2562Inlay hints querying consists of two parts: editor (client) and LSP server.
2563With the inlay settings above are changed to enable the hints, editor will start to query certain types of hints and react on LSP hint refresh request from the server.
2564At this point, the server may or may not return hints depending on its implementation, further configuration might be needed, refer to the corresponding LSP server documentation.
2565
2566The following languages have inlay hints preconfigured by Zed:
2567
2568- [Go](https://docs.zed.dev/languages/go)
2569- [Rust](https://docs.zed.dev/languages/rust)
2570- [Svelte](https://docs.zed.dev/languages/svelte)
2571- [TypeScript](https://docs.zed.dev/languages/typescript)
2572
2573Use the `lsp` section for the server configuration. Examples are provided in the corresponding language documentation.
2574
2575Hints are not instantly queried in Zed, two kinds of debounces are used, either may be set to 0 to be disabled.
2576Settings-related hint updates are not debounced.
2577
2578All possible config values for `toggle_on_modifiers_press` are:
2579
2580```json [settings]
2581"inlay_hints": {
2582  "toggle_on_modifiers_press": {
2583    "control": true,
2584    "shift": true,
2585    "alt": true,
2586    "platform": true,
2587    "function": true
2588  }
2589}
2590```
2591
2592Unspecified values have a `false` value, hints won't be toggled if all the modifiers are `false` or not all the modifiers are pressed.
2593
2594## Journal
2595
2596- Description: Configuration for the journal.
2597- Setting: `journal`
2598- Default:
2599
2600```json [settings]
2601"journal": {
2602  "path": "~",
2603  "hour_format": "hour12"
2604}
2605
2606```
2607
2608### Path
2609
2610- Description: The path of the directory where journal entries are stored. If an invalid path is specified, the journal will fall back to using `~` (the home directory).
2611- Setting: `path`
2612- Default: `~`
2613
2614**Options**
2615
2616`string` values
2617
2618### Hour Format
2619
2620- Description: The format to use for displaying hours in the journal.
2621- Setting: `hour_format`
2622- Default: `hour12`
2623
2624**Options**
2625
26261. 12-hour format:
2627
2628```json [settings]
2629{
2630  "hour_format": "hour12"
2631}
2632```
2633
26342. 24-hour format:
2635
2636```json [settings]
2637{
2638  "hour_format": "hour24"
2639}
2640```
2641
2642## JSX Tag Auto Close
2643
2644- Description: Whether to automatically close JSX tags
2645- Setting: `jsx_tag_auto_close`
2646- Default:
2647
2648```json [settings]
2649{
2650  "jsx_tag_auto_close": {
2651    "enabled": true
2652  }
2653}
2654```
2655
2656**Options**
2657
2658- `enabled`: Whether to enable automatic JSX tag closing
2659
2660## Languages
2661
2662- Description: Configuration for specific languages.
2663- Setting: `languages`
2664- Default: `null`
2665
2666**Options**
2667
2668To override settings for a language, add an entry for that languages name to the `languages` value. Example:
2669
2670```json [settings]
2671"languages": {
2672  "C": {
2673    "format_on_save": "off",
2674    "preferred_line_length": 64,
2675    "soft_wrap": "preferred_line_length"
2676  },
2677  "JSON": {
2678    "tab_size": 4
2679  }
2680}
2681```
2682
2683The following settings can be overridden for each specific language:
2684
2685- [`enable_language_server`](#enable-language-server)
2686- [`ensure_final_newline_on_save`](#ensure-final-newline-on-save)
2687- [`format_on_save`](#format-on-save)
2688- [`formatter`](#formatter)
2689- [`hard_tabs`](#hard-tabs)
2690- [`preferred_line_length`](#preferred-line-length)
2691- [`remove_trailing_whitespace_on_save`](#remove-trailing-whitespace-on-save)
2692- [`show_edit_predictions`](#show-edit-predictions)
2693- [`show_whitespaces`](#show-whitespaces)
2694- [`whitespace_map`](#whitespace-map)
2695- [`soft_wrap`](#soft-wrap)
2696- [`tab_size`](#tab-size)
2697- [`use_autoclose`](#use-autoclose)
2698- [`always_treat_brackets_as_autoclosed`](#always-treat-brackets-as-autoclosed)
2699
2700These values take in the same options as the root-level settings with the same name.
2701
2702## Language Models
2703
2704- Description: Configuration for language model providers
2705- Setting: `language_models`
2706- Default:
2707
2708```json [settings]
2709{
2710  "language_models": {
2711    "anthropic": {
2712      "api_url": "https://api.anthropic.com"
2713    },
2714    "google": {
2715      "api_url": "https://generativelanguage.googleapis.com"
2716    },
2717    "ollama": {
2718      "api_url": "http://localhost:11434"
2719    },
2720    "openai": {
2721      "api_url": "https://api.openai.com/v1"
2722    }
2723  }
2724}
2725```
2726
2727**Options**
2728
2729Configuration for various AI model providers including API URLs and authentication settings.
2730
2731## Line Indicator Format
2732
2733- Description: Format for line indicator in the status bar
2734- Setting: `line_indicator_format`
2735- Default: `"short"`
2736
2737**Options**
2738
27391. Short format:
2740
2741```json [settings]
2742{
2743  "line_indicator_format": "short"
2744}
2745```
2746
27472. Long format:
2748
2749```json [settings]
2750{
2751  "line_indicator_format": "long"
2752}
2753```
2754
2755## Linked Edits
2756
2757- Description: Whether to perform linked edits of associated ranges, if the language server supports it. For example, when editing opening `<html>` tag, the contents of the closing `</html>` tag will be edited as well.
2758- Setting: `linked_edits`
2759- Default: `true`
2760
2761**Options**
2762
2763`boolean` values
2764
2765## LSP Document Colors
2766
2767- Description: Whether to show document color information from the language server
2768- Setting: `lsp_document_colors`
2769- Default: `true`
2770
2771**Options**
2772
2773`boolean` values
2774
2775## Max Tabs
2776
2777- Description: Maximum number of tabs to show in the tab bar
2778- Setting: `max_tabs`
2779- Default: `null`
2780
2781**Options**
2782
2783Positive `integer` values or `null` for unlimited tabs
2784
2785## Middle Click Paste (Linux only)
2786
2787- Description: Enable middle-click paste on Linux
2788- Setting: `middle_click_paste`
2789- Default: `true`
2790
2791**Options**
2792
2793`boolean` values
2794
2795## Multi Cursor Modifier
2796
2797- Description: Determines the modifier to be used to add multiple cursors with the mouse. The open hover link mouse gestures will adapt such that it do not conflict with the multicursor modifier.
2798- Setting: `multi_cursor_modifier`
2799- Default: `alt`
2800
2801**Options**
2802
28031. Maps to `Alt` on Linux and Windows and to `Option` on macOS:
2804
2805```json [settings]
2806{
2807  "multi_cursor_modifier": "alt"
2808}
2809```
2810
28112. Maps `Control` on Linux and Windows and to `Command` on macOS:
2812
2813```json [settings]
2814{
2815  "multi_cursor_modifier": "cmd_or_ctrl" // alias: "cmd", "ctrl"
2816}
2817```
2818
2819## Node
2820
2821- Description: Configuration for Node.js integration
2822- Setting: `node`
2823- Default:
2824
2825```json [settings]
2826{
2827  "node": {
2828    "ignore_system_version": false,
2829    "path": null,
2830    "npm_path": null
2831  }
2832}
2833```
2834
2835**Options**
2836
2837- `ignore_system_version`: Whether to ignore the system Node.js version
2838- `path`: Custom path to Node.js binary
2839- `npm_path`: Custom path to npm binary
2840
2841## Network Proxy
2842
2843- Description: Configure a network proxy for Zed.
2844- Setting: `proxy`
2845- Default: `null`
2846
2847**Options**
2848
2849The proxy setting must contain a URL to the proxy.
2850
2851The following URI schemes are supported:
2852
2853- `http`
2854- `https`
2855- `socks4` - SOCKS4 proxy with local DNS
2856- `socks4a` - SOCKS4 proxy with remote DNS
2857- `socks5` - SOCKS5 proxy with local DNS
2858- `socks5h` - SOCKS5 proxy with remote DNS
2859
2860`http` will be used when no scheme is specified.
2861
2862By default no proxy will be used, or Zed will attempt to retrieve proxy settings from environment variables, such as `http_proxy`, `HTTP_PROXY`, `https_proxy`, `HTTPS_PROXY`, `all_proxy`, `ALL_PROXY`, `no_proxy` and `NO_PROXY`.
2863
2864For example, to set an `http` proxy, add the following to your settings:
2865
2866```json [settings]
2867{
2868  "proxy": "http://127.0.0.1:10809"
2869}
2870```
2871
2872Or to set a `socks5` proxy:
2873
2874```json [settings]
2875{
2876  "proxy": "socks5h://localhost:10808"
2877}
2878```
2879
2880If you wish to exclude certain hosts from using the proxy, set the `NO_PROXY` environment variable. This accepts a comma-separated list of hostnames, host suffixes, IPv4/IPv6 addresses or blocks that should not use the proxy. For example if your environment included `NO_PROXY="google.com, 192.168.1.0/24"` all hosts in `192.168.1.*`, `google.com` and `*.google.com` would bypass the proxy. See [reqwest NoProxy docs](https://docs.rs/reqwest/latest/reqwest/struct.NoProxy.html#method.from_string) for more.
2881
2882## On Last Window Closed
2883
2884- Description: What to do when the last window is closed
2885- Setting: `on_last_window_closed`
2886- Default: `"platform_default"`
2887
2888**Options**
2889
28901. Use platform default behavior:
2891
2892```json [settings]
2893{
2894  "on_last_window_closed": "platform_default"
2895}
2896```
2897
28982. Always quit the application:
2899
2900```json [settings]
2901{
2902  "on_last_window_closed": "quit_app"
2903}
2904```
2905
2906## Profiles
2907
2908- Description: Configuration profiles that can be applied on top of existing settings
2909- Setting: `profiles`
2910- Default: `{}`
2911
2912**Options**
2913
2914Configuration object for defining settings profiles. Example:
2915
2916```json [settings]
2917{
2918  "profiles": {
2919    "presentation": {
2920      "buffer_font_size": 20,
2921      "ui_font_size": 18,
2922      "theme": "One Light"
2923    }
2924  }
2925}
2926```
2927
2928## Preview tabs
2929
2930- Description:
2931  Preview tabs allow you to open files in preview mode, where they close automatically when you switch to another file unless you explicitly pin them. This is useful for quickly viewing files without cluttering your workspace. Preview tabs display their file names in italics. \
2932   There are several ways to convert a preview tab into a regular tab:
2933
2934  - Double-clicking on the file
2935  - Double-clicking on the tab header
2936  - Using the {#action project_panel::OpenPermanent} action
2937  - Editing the file
2938  - Dragging the file to a different pane
2939
2940- Setting: `preview_tabs`
2941- Default:
2942
2943```json [settings]
2944"preview_tabs": {
2945  "enabled": true,
2946  "enable_preview_from_project_panel": true,
2947  "enable_preview_from_file_finder": false,
2948  "enable_preview_from_multibuffer": true,
2949  "enable_preview_multibuffer_from_code_navigation": false,
2950  "enable_preview_file_from_code_navigation": true,
2951  "enable_keep_preview_on_code_navigation": false,
2952}
2953```
2954
2955### Enable preview from project panel
2956
2957- Description: Determines whether to open files in preview mode when opened from the project panel with a single click.
2958- Setting: `enable_preview_from_project_panel`
2959- Default: `true`
2960
2961**Options**
2962
2963`boolean` values
2964
2965### Enable preview from file finder
2966
2967- Description: Determines whether to open files in preview mode when selected from the file finder.
2968- Setting: `enable_preview_from_file_finder`
2969- Default: `false`
2970
2971**Options**
2972
2973`boolean` values
2974
2975### Enable preview from multibuffer
2976
2977- Description: Determines whether to open files in preview mode when opened from a multibuffer.
2978- Setting: `enable_preview_from_multibuffer`
2979- Default: `true`
2980
2981**Options**
2982
2983`boolean` values
2984
2985### Enable preview multibuffer from code navigation
2986
2987- Description: Determines whether to open tabs in preview mode when code navigation is used to open a multibuffer.
2988- Setting: `enable_preview_multibuffer_from_code_navigation`
2989- Default: `false`
2990
2991**Options**
2992
2993`boolean` values
2994
2995### Enable preview file from code navigation
2996
2997- Description: Determines whether to open tabs in preview mode when code navigation is used to open a single file.
2998- Setting: `enable_preview_file_from_code_navigation`
2999- Default: `true`
3000
3001**Options**
3002
3003`boolean` values
3004
3005### Enable keep preview on code navigation
3006
3007- Description: Determines whether to keep tabs in preview mode when code navigation is used to navigate away from them. If `enable_preview_file_from_code_navigation` or `enable_preview_multibuffer_from_code_navigation` is also true, the new tab may replace the existing one.
3008- Setting: `enable_keep_preview_on_code_navigation`
3009- Default: `false`
3010
3011**Options**
3012
3013`boolean` values
3014
3015## File Finder
3016
3017### File Icons
3018
3019- Description: Whether to show file icons in the file finder.
3020- Setting: `file_icons`
3021- Default: `true`
3022
3023### Modal Max Width
3024
3025- Description: Max-width of the file finder modal. It can take one of these values: `small`, `medium`, `large`, `xlarge`, and `full`.
3026- Setting: `modal_max_width`
3027- Default: `small`
3028
3029### Skip Focus For Active In Search
3030
3031- Description: Determines whether the file finder should skip focus for the active file in search results.
3032- Setting: `skip_focus_for_active_in_search`
3033- Default: `true`
3034
3035## Pane Split Direction Horizontal
3036
3037- Description: The direction that you want to split panes horizontally
3038- Setting: `pane_split_direction_horizontal`
3039- Default: `"up"`
3040
3041**Options**
3042
30431. Split upward:
3044
3045```json [settings]
3046{
3047  "pane_split_direction_horizontal": "up"
3048}
3049```
3050
30512. Split downward:
3052
3053```json [settings]
3054{
3055  "pane_split_direction_horizontal": "down"
3056}
3057```
3058
3059## Pane Split Direction Vertical
3060
3061- Description: The direction that you want to split panes vertically
3062- Setting: `pane_split_direction_vertical`
3063- Default: `"left"`
3064
3065**Options**
3066
30671. Split to the left:
3068
3069```json [settings]
3070{
3071  "pane_split_direction_vertical": "left"
3072}
3073```
3074
30752. Split to the right:
3076
3077```json [settings]
3078{
3079  "pane_split_direction_vertical": "right"
3080}
3081```
3082
3083## Preferred Line Length
3084
3085- Description: The column at which to soft-wrap lines, for buffers where soft-wrap is enabled.
3086- Setting: `preferred_line_length`
3087- Default: `80`
3088
3089**Options**
3090
3091`integer` values
3092
3093## Private Files
3094
3095- Description: Globs to match against file paths to determine if a file is private
3096- Setting: `private_files`
3097- Default: `["**/.env*", "**/*.pem", "**/*.key", "**/*.cert", "**/*.crt", "**/secrets.yml"]`
3098
3099**Options**
3100
3101List of `string` glob patterns
3102
3103## Projects Online By Default
3104
3105- Description: Whether or not to show the online projects view by default.
3106- Setting: `projects_online_by_default`
3107- Default: `true`
3108
3109**Options**
3110
3111`boolean` values
3112
3113## Read SSH Config
3114
3115- Description: Whether to read SSH configuration files
3116- Setting: `read_ssh_config`
3117- Default: `true`
3118
3119**Options**
3120
3121`boolean` values
3122
3123## Redact Private Values
3124
3125- Description: Hide the values of variables from visual display in private files
3126- Setting: `redact_private_values`
3127- Default: `false`
3128
3129**Options**
3130
3131`boolean` values
3132
3133## Relative Line Numbers
3134
3135- Description: Whether to show relative line numbers in the gutter
3136- Setting: `relative_line_numbers`
3137- Default: `"disabled"`
3138
3139**Options**
3140
31411. Show relative line numbers in the gutter whilst counting wrapped lines as one line:
3142
3143```json [settings]
3144{
3145  "relative_line_numbers": "enabled"
3146}
3147```
3148
31492. Show relative line numbers in the gutter, including wrapped lines in the counting:
3150
3151```json [settings]
3152{
3153  "relative_line_numbers": "wrapped"
3154}
3155```
3156
31572. Do not use relative line numbers:
3158
3159```json [settings]
3160{
3161  "relative_line_numbers": "disabled"
3162}
3163```
3164
3165## Remove Trailing Whitespace On Save
3166
3167- Description: Whether or not to remove any trailing whitespace from lines of a buffer before saving it.
3168- Setting: `remove_trailing_whitespace_on_save`
3169- Default: `true`
3170
3171**Options**
3172
3173`boolean` values
3174
3175## Resize All Panels In Dock
3176
3177- Description: Whether to resize all the panels in a dock when resizing the dock. Can be a combination of "left", "right" and "bottom".
3178- Setting: `resize_all_panels_in_dock`
3179- Default: `["left"]`
3180
3181**Options**
3182
3183List of strings containing any combination of:
3184
3185- `"left"`: Resize left dock panels together
3186- `"right"`: Resize right dock panels together
3187- `"bottom"`: Resize bottom dock panels together
3188
3189## Restore on File Reopen
3190
3191- Description: Whether to attempt to restore previous file's state when opening it again. The state is stored per pane.
3192- Setting: `restore_on_file_reopen`
3193- Default: `true`
3194
3195**Options**
3196
3197`boolean` values
3198
3199## Restore on Startup
3200
3201- Description: Controls session restoration on startup.
3202- Setting: `restore_on_startup`
3203- Default: `last_session`
3204
3205**Options**
3206
32071. Restore all workspaces that were open when quitting Zed:
3208
3209```json [settings]
3210{
3211  "restore_on_startup": "last_session"
3212}
3213```
3214
32152. Restore the workspace that was closed last:
3216
3217```json [settings]
3218{
3219  "restore_on_startup": "last_workspace"
3220}
3221```
3222
32233. Always start with an empty editor:
3224
3225```json [settings]
3226{
3227  "restore_on_startup": "empty_tab"
3228}
3229```
3230
32314. Always start with the welcome launchpad:
3232
3233```json [settings]
3234{
3235  "restore_on_startup": "launchpad"
3236}
3237```
3238
3239## Scroll Beyond Last Line
3240
3241- Description: Whether the editor will scroll beyond the last line
3242- Setting: `scroll_beyond_last_line`
3243- Default: `"one_page"`
3244
3245**Options**
3246
32471. Scroll one page beyond the last line by one page:
3248
3249```json [settings]
3250{
3251  "scroll_beyond_last_line": "one_page"
3252}
3253```
3254
32552. The editor will scroll beyond the last line by the same amount of lines as `vertical_scroll_margin`:
3256
3257```json [settings]
3258{
3259  "scroll_beyond_last_line": "vertical_scroll_margin"
3260}
3261```
3262
32633. The editor will not scroll beyond the last line:
3264
3265```json [settings]
3266{
3267  "scroll_beyond_last_line": "off"
3268}
3269```
3270
3271**Options**
3272
3273`boolean` values
3274
3275## Scroll Sensitivity
3276
3277- Description: Scroll sensitivity multiplier. This multiplier is applied to both the horizontal and vertical delta values while scrolling.
3278- Setting: `scroll_sensitivity`
3279- Default: `1.0`
3280
3281**Options**
3282
3283Positive `float` values
3284
3285### Fast Scroll Sensitivity
3286
3287- Description: Scroll sensitivity multiplier for fast scrolling. This multiplier is applied to both the horizontal and vertical delta values while scrolling. Fast scrolling happens when a user holds the alt or option key while scrolling.
3288- Setting: `fast_scroll_sensitivity`
3289- Default: `4.0`
3290
3291**Options**
3292
3293Positive `float` values
3294
3295### Horizontal Scroll Margin
3296
3297- Description: The number of characters to keep on either side when scrolling with the mouse
3298- Setting: `horizontal_scroll_margin`
3299- Default: `5`
3300
3301**Options**
3302
3303Non-negative `integer` values
3304
3305### Vertical Scroll Margin
3306
3307- Description: The number of lines to keep above/below the cursor when scrolling with the keyboard
3308- Setting: `vertical_scroll_margin`
3309- Default: `3`
3310
3311**Options**
3312
3313Non-negative `integer` values
3314
3315## Search
3316
3317- Description: Search options to enable by default when opening new project and buffer searches.
3318- Setting: `search`
3319- Default:
3320
3321```json [settings]
3322"search": {
3323  "button": true,
3324  "whole_word": false,
3325  "case_sensitive": false,
3326  "include_ignored": false,
3327  "regex": false,
3328  "center_on_match": false
3329},
3330```
3331
3332### Button
3333
3334- Description: Whether to show the project search button in the status bar.
3335- Setting: `button`
3336- Default: `true`
3337
3338### Whole Word
3339
3340- Description: Whether to only match on whole words.
3341- Setting: `whole_word`
3342- Default: `false`
3343
3344### Case Sensitive
3345
3346- Description: Whether to match case sensitively. This setting affects both
3347  searches and editor actions like "Select Next Occurrence", "Select Previous
3348  Occurrence", and "Select All Occurrences".
3349- Setting: `case_sensitive`
3350- Default: `false`
3351
3352### Include Ignore
3353
3354- Description: Whether to include gitignored files in search results.
3355- Setting: `include_ignored`
3356- Default: `false`
3357
3358### Regex
3359
3360- Description: Whether to interpret the search query as a regular expression.
3361- Setting: `regex`
3362- Default: `false`
3363
3364### Center On Match
3365
3366- Description: Whether to center the cursor on each search match when navigating.
3367- Setting: `center_on_match`
3368- Default: `false`
3369
3370## Search Wrap
3371
3372- Description: If `search_wrap` is disabled, search result do not wrap around the end of the file
3373- Setting: `search_wrap`
3374- Default: `true`
3375
3376## Center on Match
3377
3378- Description: If `center_on_match` is enabled, the editor will center the cursor on the current match when searching.
3379- Setting: `center_on_match`
3380- Default: `false`
3381
3382## Seed Search Query From Cursor
3383
3384- Description: When to populate a new search's query based on the text under the cursor.
3385- Setting: `seed_search_query_from_cursor`
3386- Default: `always`
3387
3388**Options**
3389
33901. `always` always populate the search query with the word under the cursor
33912. `selection` only populate the search query when there is text selected
33923. `never` never populate the search query
3393
3394## Use Smartcase Search
3395
3396- Description: When enabled, automatically adjusts search case sensitivity based on your query. If your search query contains any uppercase letters, the search becomes case-sensitive; if it contains only lowercase letters, the search becomes case-insensitive. \
3397  This applies to both in-file searches and project-wide searches.
3398- Setting: `use_smartcase_search`
3399- Default: `false`
3400
3401**Options**
3402
3403`boolean` values
3404
3405Examples:
3406
3407- Searching for "function" would match "function", "Function", "FUNCTION", etc.
3408- Searching for "Function" would only match "Function", not "function" or "FUNCTION"
3409
3410## Show Call Status Icon
3411
3412- Description: Whether or not to show the call status icon in the status bar.
3413- Setting: `show_call_status_icon`
3414- Default: `true`
3415
3416**Options**
3417
3418`boolean` values
3419
3420## Completions
3421
3422- Description: Controls how completions are processed for this language.
3423- Setting: `completions`
3424- Default:
3425
3426```json [settings]
3427{
3428  "completions": {
3429    "words": "fallback",
3430    "words_min_length": 3,
3431    "lsp": true,
3432    "lsp_fetch_timeout_ms": 0,
3433    "lsp_insert_mode": "replace_suffix"
3434  }
3435}
3436```
3437
3438### Words
3439
3440- Description: Controls how words are completed. For large documents, not all words may be fetched for completion.
3441- Setting: `words`
3442- Default: `fallback`
3443
3444**Options**
3445
34461. `enabled` - Always fetch document's words for completions along with LSP completions
34472. `fallback` - Only if LSP response errors or times out, use document's words to show completions
34483. `disabled` - Never fetch or complete document's words for completions (word-based completions can still be queried via a separate action)
3449
3450### Min Words Query Length
3451
3452- Description: Minimum number of characters required to automatically trigger word-based completions.
3453  Before that value, it's still possible to trigger the words-based completion manually with the corresponding editor command.
3454- Setting: `words_min_length`
3455- Default: `3`
3456
3457**Options**
3458
3459Positive integer values
3460
3461### LSP
3462
3463- Description: Whether to fetch LSP completions or not.
3464- Setting: `lsp`
3465- Default: `true`
3466
3467**Options**
3468
3469`boolean` values
3470
3471### LSP Fetch Timeout (ms)
3472
3473- Description: When fetching LSP completions, determines how long to wait for a response of a particular server. When set to 0, waits indefinitely.
3474- Setting: `lsp_fetch_timeout_ms`
3475- Default: `0`
3476
3477**Options**
3478
3479`integer` values representing milliseconds
3480
3481### LSP Insert Mode
3482
3483- Description: Controls what range to replace when accepting LSP completions.
3484- Setting: `lsp_insert_mode`
3485- Default: `replace_suffix`
3486
3487**Options**
3488
34891. `insert` - Replaces text before the cursor, using the `insert` range described in the LSP specification
34902. `replace` - Replaces text before and after the cursor, using the `replace` range described in the LSP specification
34913. `replace_subsequence` - Behaves like `"replace"` if the text that would be replaced is a subsequence of the completion text, and like `"insert"` otherwise
34924. `replace_suffix` - Behaves like `"replace"` if the text after the cursor is a suffix of the completion, and like `"insert"` otherwise
3493
3494## Show Completions On Input
3495
3496- Description: Whether or not to show completions as you type.
3497- Setting: `show_completions_on_input`
3498- Default: `true`
3499
3500**Options**
3501
3502`boolean` values
3503
3504## Show Completion Documentation
3505
3506- Description: Whether to display inline and alongside documentation for items in the completions menu.
3507- Setting: `show_completion_documentation`
3508- Default: `true`
3509
3510**Options**
3511
3512`boolean` values
3513
3514## Show Edit Predictions
3515
3516- Description: Whether to show edit predictions as you type or manually by triggering `editor::ShowEditPrediction`.
3517- Setting: `show_edit_predictions`
3518- Default: `true`
3519
3520**Options**
3521
3522`boolean` values
3523
3524## Show Whitespaces
3525
3526- Description: Whether or not to render whitespace characters in the editor.
3527- Setting: `show_whitespaces`
3528- Default: `selection`
3529
3530**Options**
3531
35321. `all`
35332. `selection`
35343. `none`
35354. `boundary`
35365. `trailing`
3537
3538## Whitespace Map
3539
3540- Description: Specify the characters used to render whitespace when show_whitespaces is enabled.
3541- Setting: `whitespace_map`
3542- Default:
3543
3544```json [settings]
3545{
3546  "whitespace_map": {
3547    "space": "•",
3548    "tab": "→"
3549  }
3550}
3551```
3552
3553## Soft Wrap
3554
3555- Description: Whether or not to automatically wrap lines of text to fit editor / preferred width.
3556- Setting: `soft_wrap`
3557- Default: `none`
3558
3559**Options**
3560
35611. `none` to avoid wrapping generally, unless the line is too long
35622. `prefer_line` (deprecated, same as `none`)
35633. `editor_width` to wrap lines that overflow the editor width
35644. `preferred_line_length` to wrap lines that overflow `preferred_line_length` config value
35655. `bounded` to wrap lines at the minimum of `editor_width` and `preferred_line_length`
3566
3567## Show Wrap Guides
3568
3569- Description: Whether to show wrap guides (vertical rulers) in the editor. Setting this to true will show a guide at the 'preferred_line_length' value if 'soft_wrap' is set to 'preferred_line_length', and will show any additional guides as specified by the 'wrap_guides' setting.
3570- Setting: `show_wrap_guides`
3571- Default: `true`
3572
3573**Options**
3574
3575`boolean` values
3576
3577## Use On Type Format
3578
3579- Description: Whether to use additional LSP queries to format (and amend) the code after every "trigger" symbol input, defined by LSP server capabilities
3580- Setting: `use_on_type_format`
3581- Default: `true`
3582
3583**Options**
3584
3585`boolean` values
3586
3587## Use Auto Surround
3588
3589- Description: Whether to automatically surround selected text when typing opening parenthesis, bracket, brace, single or double quote characters. For example, when you select text and type '(', Zed will surround the text with ().
3590- Setting: `use_auto_surround`
3591- Default: `true`
3592
3593**Options**
3594
3595`boolean` values
3596
3597## Use System Path Prompts
3598
3599- Description: Whether to use the system provided dialogs for Open and Save As. When set to false, Zed will use the built-in keyboard-first pickers.
3600- Setting: `use_system_path_prompts`
3601- Default: `true`
3602
3603**Options**
3604
3605`boolean` values
3606
3607## Use System Prompts
3608
3609- Description: Whether to use the system provided dialogs for prompts, such as confirmation prompts. When set to false, Zed will use its built-in prompts. Note that on Linux, this option is ignored and Zed will always use the built-in prompts.
3610- Setting: `use_system_prompts`
3611- Default: `true`
3612
3613**Options**
3614
3615`boolean` values
3616
3617## Wrap Guides (Vertical Rulers)
3618
3619- Description: Where to display vertical rulers as wrap-guides. Disable by setting `show_wrap_guides` to `false`.
3620- Setting: `wrap_guides`
3621- Default: []
3622
3623**Options**
3624
3625List of `integer` column numbers
3626
3627## Tab Size
3628
3629- Description: The number of spaces to use for each tab character.
3630- Setting: `tab_size`
3631- Default: `4`
3632
3633**Options**
3634
3635`integer` values
3636
3637## Tasks
3638
3639- Description: Configuration for tasks that can be run within Zed
3640- Setting: `tasks`
3641- Default:
3642
3643```json [settings]
3644{
3645  "tasks": {
3646    "variables": {},
3647    "enabled": true,
3648    "prefer_lsp": false
3649  }
3650}
3651```
3652
3653**Options**
3654
3655- `variables`: Custom variables for task configuration
3656- `enabled`: Whether tasks are enabled
3657- `prefer_lsp`: Whether to prefer LSP-provided tasks over Zed language extension ones
3658
3659## Telemetry
3660
3661- Description: Control what info is collected by Zed.
3662- Setting: `telemetry`
3663- Default:
3664
3665```json [settings]
3666"telemetry": {
3667  "diagnostics": true,
3668  "metrics": true
3669},
3670```
3671
3672**Options**
3673
3674### Diagnostics
3675
3676- Description: Setting for sending debug-related data, such as crash reports.
3677- Setting: `diagnostics`
3678- Default: `true`
3679
3680**Options**
3681
3682`boolean` values
3683
3684### Metrics
3685
3686- Description: Setting for sending anonymized usage data, such what languages you're using Zed with.
3687- Setting: `metrics`
3688- Default: `true`
3689
3690**Options**
3691
3692`boolean` values
3693
3694## Terminal
3695
3696- Description: Configuration for the terminal.
3697- Setting: `terminal`
3698- Default:
3699
3700```json [settings]
3701{
3702  "terminal": {
3703    "alternate_scroll": "off",
3704    "blinking": "terminal_controlled",
3705    "copy_on_select": false,
3706    "keep_selection_on_copy": true,
3707    "dock": "bottom",
3708    "default_width": 640,
3709    "default_height": 320,
3710    "detect_venv": {
3711      "on": {
3712        "directories": [".env", "env", ".venv", "venv"],
3713        "activate_script": "default"
3714      }
3715    },
3716    "env": {},
3717    "font_family": null,
3718    "font_features": null,
3719    "font_size": null,
3720    "line_height": "comfortable",
3721    "minimum_contrast": 45,
3722    "option_as_meta": false,
3723    "button": true,
3724    "shell": "system",
3725    "scroll_multiplier": 3.0,
3726    "toolbar": {
3727      "breadcrumbs": false
3728    },
3729    "working_directory": "current_project_directory",
3730    "scrollbar": {
3731      "show": null
3732    }
3733  }
3734}
3735```
3736
3737### Terminal: Dock
3738
3739- Description: Control the position of the dock
3740- Setting: `dock`
3741- Default: `bottom`
3742
3743**Options**
3744
3745`"bottom"`, `"left"` or `"right"`
3746
3747### Terminal: Alternate Scroll
3748
3749- Description: Set whether Alternate Scroll mode (DECSET code: `?1007`) is active by default. Alternate Scroll mode converts mouse scroll events into up / down key presses when in the alternate screen (e.g. when running applications like vim or less). The terminal can still set and unset this mode with ANSI escape codes.
3750- Setting: `alternate_scroll`
3751- Default: `off`
3752
3753**Options**
3754
37551. Default alternate scroll mode to off
3756
3757```json [settings]
3758{
3759  "terminal": {
3760    "alternate_scroll": "off"
3761  }
3762}
3763```
3764
37652. Default alternate scroll mode to on
3766
3767```json [settings]
3768{
3769  "terminal": {
3770    "alternate_scroll": "on"
3771  }
3772}
3773```
3774
3775### Terminal: Blinking
3776
3777- Description: Set the cursor blinking behavior in the terminal
3778- Setting: `blinking`
3779- Default: `terminal_controlled`
3780
3781**Options**
3782
37831. Never blink the cursor, ignore the terminal mode
3784
3785```json [settings]
3786{
3787  "terminal": {
3788    "blinking": "off"
3789  }
3790}
3791```
3792
37932. Default the cursor blink to off, but allow the terminal to turn blinking on
3794
3795```json [settings]
3796{
3797  "terminal": {
3798    "blinking": "terminal_controlled"
3799  }
3800}
3801```
3802
38033. Always blink the cursor, ignore the terminal mode
3804
3805```json [settings]
3806{
3807  "terminal": {
3808    "blinking": "on"
3809  }
3810}
3811```
3812
3813### Terminal: Copy On Select
3814
3815- Description: Whether or not selecting text in the terminal will automatically copy to the system clipboard.
3816- Setting: `copy_on_select`
3817- Default: `false`
3818
3819**Options**
3820
3821`boolean` values
3822
3823**Example**
3824
3825```json [settings]
3826{
3827  "terminal": {
3828    "copy_on_select": true
3829  }
3830}
3831```
3832
3833### Terminal: Cursor Shape
3834
3835- Description: Controls the visual shape of the cursor in the terminal. When not explicitly set, it defaults to a block shape.
3836- Setting: `cursor_shape`
3837- Default: `null` (defaults to block)
3838
3839**Options**
3840
38411. A block that surrounds the following character
3842
3843```json [settings]
3844{
3845  "terminal": {
3846    "cursor_shape": "block"
3847  }
3848}
3849```
3850
38512. A vertical bar
3852
3853```json [settings]
3854{
3855  "terminal": {
3856    "cursor_shape": "bar"
3857  }
3858}
3859```
3860
38613. An underline / underscore that runs along the following character
3862
3863```json [settings]
3864{
3865  "terminal": {
3866    "cursor_shape": "underline"
3867  }
3868}
3869```
3870
38714. A box drawn around the following character
3872
3873```json [settings]
3874{
3875  "terminal": {
3876    "cursor_shape": "hollow"
3877  }
3878}
3879```
3880
3881### Terminal: Keep Selection On Copy
3882
3883- Description: Whether or not to keep the selection in the terminal after copying text.
3884- Setting: `keep_selection_on_copy`
3885- Default: `true`
3886
3887**Options**
3888
3889`boolean` values
3890
3891**Example**
3892
3893```json [settings]
3894{
3895  "terminal": {
3896    "keep_selection_on_copy": false
3897  }
3898}
3899```
3900
3901### Terminal: Env
3902
3903- Description: Any key-value pairs added to this object will be added to the terminal's environment. Keys must be unique, use `:` to separate multiple values in a single variable
3904- Setting: `env`
3905- Default: `{}`
3906
3907**Example**
3908
3909```json [settings]
3910{
3911  "terminal": {
3912    "env": {
3913      "ZED": "1",
3914      "KEY": "value1:value2"
3915    }
3916  }
3917}
3918```
3919
3920### Terminal: Font Size
3921
3922- Description: What font size to use for the terminal. When not set defaults to matching the editor's font size
3923- Setting: `font_size`
3924- Default: `null`
3925
3926**Options**
3927
3928`integer` values
3929
3930```json [settings]
3931{
3932  "terminal": {
3933    "font_size": 15
3934  }
3935}
3936```
3937
3938### Terminal: Font Family
3939
3940- Description: What font to use for the terminal. When not set, defaults to matching the editor's font.
3941- Setting: `font_family`
3942- Default: `null`
3943
3944**Options**
3945
3946The name of any font family installed on the user's system
3947
3948```json [settings]
3949{
3950  "terminal": {
3951    "font_family": "Berkeley Mono"
3952  }
3953}
3954```
3955
3956### Terminal: Font Features
3957
3958- Description: What font features to use for the terminal. When not set, defaults to matching the editor's font features.
3959- Setting: `font_features`
3960- Default: `null`
3961- Platform: macOS and Windows.
3962
3963**Options**
3964
3965See Buffer Font Features
3966
3967```json [settings]
3968{
3969  "terminal": {
3970    "font_features": {
3971      "calt": false
3972      // See Buffer Font Features for more features
3973    }
3974  }
3975}
3976```
3977
3978### Terminal: Line Height
3979
3980- Description: Set the terminal's line height.
3981- Setting: `line_height`
3982- Default: `standard`
3983
3984**Options**
3985
39861. Use a line height that's `comfortable` for reading, 1.618.
3987
3988```json [settings]
3989{
3990  "terminal": {
3991    "line_height": "comfortable"
3992  }
3993}
3994```
3995
39962. Use a `standard` line height, 1.3. This option is useful for TUIs, particularly if they use box characters. (default)
3997
3998```json [settings]
3999{
4000  "terminal": {
4001    "line_height": "standard"
4002  }
4003}
4004```
4005
40063.  Use a custom line height.
4007
4008```json [settings]
4009{
4010  "terminal": {
4011    "line_height": {
4012      "custom": 2
4013    }
4014  }
4015}
4016```
4017
4018### Terminal: Minimum Contrast
4019
4020- Description: Controls the minimum contrast between foreground and background colors in the terminal. Uses the APCA (Accessible Perceptual Contrast Algorithm) for color adjustments. Set this to 0 to disable this feature.
4021- Setting: `minimum_contrast`
4022- Default: `45`
4023
4024**Options**
4025
4026`integer` values from 0 to 106. Common recommended values:
4027
4028- `0`: No contrast adjustment
4029- `45`: Minimum for large fluent text (default)
4030- `60`: Minimum for other content text
4031- `75`: Minimum for body text
4032- `90`: Preferred for body text
4033
4034```json [settings]
4035{
4036  "terminal": {
4037    "minimum_contrast": 45
4038  }
4039}
4040```
4041
4042### Terminal: Option As Meta
4043
4044- Description: Re-interprets the option keys to act like a 'meta' key, like in Emacs.
4045- Setting: `option_as_meta`
4046- Default: `false`
4047
4048**Options**
4049
4050`boolean` values
4051
4052```json [settings]
4053{
4054  "terminal": {
4055    "option_as_meta": true
4056  }
4057}
4058```
4059
4060### Terminal: Shell
4061
4062- Description: What shell to use when launching the terminal.
4063- Setting: `shell`
4064- Default: `system`
4065
4066**Options**
4067
40681. Use the system's default terminal configuration (usually the `/etc/passwd` file).
4069
4070```json [settings]
4071{
4072  "terminal": {
4073    "shell": "system"
4074  }
4075}
4076```
4077
40782. A program to launch:
4079
4080```json [settings]
4081{
4082  "terminal": {
4083    "shell": {
4084      "program": "sh"
4085    }
4086  }
4087}
4088```
4089
40903. A program with arguments:
4091
4092```json [settings]
4093{
4094  "terminal": {
4095    "shell": {
4096      "with_arguments": {
4097        "program": "/bin/bash",
4098        "args": ["--login"]
4099      }
4100    }
4101  }
4102}
4103```
4104
4105## Terminal: Detect Virtual Environments {#terminal-detect_venv}
4106
4107- Description: Activate the [Python Virtual Environment](https://docs.python.org/3/library/venv.html), if one is found, in the terminal's working directory (as resolved by the working_directory and automatically activating the virtual environment.
4108- Setting: `detect_venv`
4109- Default:
4110
4111```json [settings]
4112{
4113  "terminal": {
4114    "detect_venv": {
4115      "on": {
4116        // Default directories to search for virtual environments, relative
4117        // to the current working directory. We recommend overriding this
4118        // in your project's settings, rather than globally.
4119        "directories": [".env", "env", ".venv", "venv"],
4120        // Can also be `csh`, `fish`, and `nushell`
4121        "activate_script": "default"
4122      }
4123    }
4124  }
4125}
4126```
4127
4128Disable with:
4129
4130```json [settings]
4131{
4132  "terminal": {
4133    "detect_venv": "off"
4134  }
4135}
4136```
4137
4138### Terminal: Scroll Multiplier
4139
4140- Description: The multiplier for scrolling speed in the terminal when using mouse wheel or trackpad.
4141- Setting: `scroll_multiplier`
4142- Default: `1.0`
4143
4144**Options**
4145
4146Positive floating point values. Values less than or equal to 0 will be clamped to a minimum of 0.01.
4147
4148**Example**
4149
4150```json
4151{
4152  "terminal": {
4153    "scroll_multiplier": 5.0
4154  }
4155}
4156```
4157
4158## Terminal: Toolbar
4159
4160- Description: Whether or not to show various elements in the terminal toolbar.
4161- Setting: `toolbar`
4162- Default:
4163
4164```json [settings]
4165{
4166  "terminal": {
4167    "toolbar": {
4168      "breadcrumbs": false
4169    }
4170  }
4171}
4172```
4173
4174**Options**
4175
4176At the moment, only the `breadcrumbs` option is available, it controls displaying of the terminal title that can be changed via `PROMPT_COMMAND`.
4177
4178If the terminal title is empty, the breadcrumbs won't be shown.
4179
4180The shell running in the terminal needs to be configured to emit the title.
4181
4182Example command to set the title: `echo -e "\e]2;New Title\007";`
4183
4184### Terminal: Button
4185
4186- Description: Control to show or hide the terminal button in the status bar
4187- Setting: `button`
4188- Default: `true`
4189
4190**Options**
4191
4192`boolean` values
4193
4194```json [settings]
4195{
4196  "terminal": {
4197    "button": false
4198  }
4199}
4200```
4201
4202### Terminal: Working Directory
4203
4204- Description: What working directory to use when launching the terminal.
4205- Setting: `working_directory`
4206- Default: `"current_project_directory"`
4207
4208**Options**
4209
42101. Use the current file's project directory. Fallback to the first project directory strategy if unsuccessful.
4211
4212```json [settings]
4213{
4214  "terminal": {
4215    "working_directory": "current_project_directory"
4216  }
4217}
4218```
4219
42202. Use the first project in this workspace's directory. Fallback to using this platform's home directory.
4221
4222```json [settings]
4223{
4224  "terminal": {
4225    "working_directory": "first_project_directory"
4226  }
4227}
4228```
4229
42303. Always use this platform's home directory if it can be found.
4231
4232```json [settings]
4233{
4234  "terminal": {
4235    "working_directory": "always_home"
4236  }
4237}
4238```
4239
42404. Always use a specific directory. This value will be shell expanded. If this path is not a valid directory the terminal will default to this platform's home directory.
4241
4242```json [settings]
4243{
4244  "terminal": {
4245    "working_directory": {
4246      "always": {
4247        "directory": "~/zed/projects/"
4248      }
4249    }
4250  }
4251}
4252```
4253
4254### Terminal: Path Hyperlink Regexes
4255
4256- Description: Regexes used to identify path hyperlinks. The regexes can be specified in two forms - a single regex string, or an array of strings (which will be collected into a single multi-line regex string).
4257- Setting: `path_hyperlink_regexes`
4258- Default:
4259
4260```json [settings]
4261{
4262  "terminal": {
4263    "path_hyperlink_regexes": [
4264      // Python-style diagnostics
4265      "File \"(?<path>[^\"]+)\", line (?<line>[0-9]+)",
4266      // Common path syntax with optional line, column, description, trailing punctuation, or
4267      // surrounding symbols or quotes
4268      [
4269        "(?x)",
4270        "# optionally starts with 0-2 opening prefix symbols",
4271        "[({\\[<]{0,2}",
4272        "# which may be followed by an opening quote",
4273        "(?<quote>[\"'`])?",
4274        "# `path` is the shortest sequence of any non-space character",
4275        "(?<link>(?<path>[^ ]+?",
4276        "    # which may end with a line and optionally a column,",
4277        "    (?<line_column>:+[0-9]+(:[0-9]+)?|:?\\([0-9]+([,:][0-9]+)?\\))?",
4278        "))",
4279        "# which must be followed by a matching quote",
4280        "(?(<quote>)\\k<quote>)",
4281        "# and optionally a single closing symbol",
4282        "[)}\\]>]?",
4283        "# if line/column matched, may be followed by a description",
4284        "(?(<line_column>):[^ 0-9][^ ]*)?",
4285        "# which may be followed by trailing punctuation",
4286        "[.,:)}\\]>]*",
4287        "# and always includes trailing whitespace or end of line",
4288        "([ ]+|$)"
4289      ]
4290    ]
4291  }
4292}
4293```
4294
4295### Terminal: Path Hyperlink Timeout (ms)
4296
4297- Description: Maximum time to search for a path hyperlink. When set to 0, path hyperlinks are disabled.
4298- Setting: `path_hyperlink_timeout_ms`
4299- Default: `1`
4300
4301## REPL
4302
4303- Description: Repl settings.
4304- Setting: `repl`
4305- Default:
4306
4307```json [settings]
4308"repl": {
4309  // Maximum number of columns to keep in REPL's scrollback buffer.
4310  // Clamped with [20, 512] range.
4311  "max_columns": 128,
4312  // Maximum number of lines to keep in REPL's scrollback buffer.
4313  // Clamped with [4, 256] range.
4314  "max_lines": 32
4315},
4316```
4317
4318## Theme
4319
4320- Description: The theme setting can be specified in two forms - either as the name of a theme or as an object containing the `mode`, `dark`, and `light` themes for the Zed UI.
4321- Setting: `theme`
4322- Default: `One Dark`
4323
4324### Theme Object
4325
4326- Description: Specify the theme using an object that includes the `mode`, `dark`, and `light` themes.
4327- Setting: `theme`
4328- Default:
4329
4330```json [settings]
4331"theme": {
4332  "mode": "system",
4333  "dark": "One Dark",
4334  "light": "One Light"
4335},
4336```
4337
4338### Mode
4339
4340- Description: Specify theme mode.
4341- Setting: `mode`
4342- Default: `system`
4343
4344**Options**
4345
43461. Set the theme to dark mode
4347
4348```json [settings]
4349{
4350  "mode": "dark"
4351}
4352```
4353
43542. Set the theme to light mode
4355
4356```json [settings]
4357{
4358  "mode": "light"
4359}
4360```
4361
43623. Set the theme to system mode
4363
4364```json [settings]
4365{
4366  "mode": "system"
4367}
4368```
4369
4370### Dark
4371
4372- Description: The name of the dark Zed theme to use for the UI.
4373- Setting: `dark`
4374- Default: `One Dark`
4375
4376**Options**
4377
4378Run the {#action theme_selector::Toggle} action in the command palette to see a current list of valid themes names.
4379
4380### Light
4381
4382- Description: The name of the light Zed theme to use for the UI.
4383- Setting: `light`
4384- Default: `One Light`
4385
4386**Options**
4387
4388Run the {#action theme_selector::Toggle} action in the command palette to see a current list of valid themes names.
4389
4390## Title Bar
4391
4392- Description: Whether or not to show various elements in the title bar
4393- Setting: `title_bar`
4394- Default:
4395
4396```json [settings]
4397"title_bar": {
4398  "show_branch_icon": false,
4399  "show_branch_name": true,
4400  "show_project_items": true,
4401  "show_onboarding_banner": true,
4402  "show_user_picture": true,
4403  "show_user_menu": true,
4404  "show_sign_in": true,
4405  "show_menus": false
4406}
4407```
4408
4409**Options**
4410
4411- `show_branch_icon`: Whether to show the branch icon beside branch switcher in the titlebar
4412- `show_branch_name`: Whether to show the branch name button in the titlebar
4413- `show_project_items`: Whether to show the project host and name in the titlebar
4414- `show_onboarding_banner`: Whether to show onboarding banners in the titlebar
4415- `show_user_picture`: Whether to show user picture in the titlebar
4416- `show_user_menu`: Whether to show the user menu button in the titlebar (the one that displays your avatar by default and contains options like Settings, Keymap, Themes, etc.)
4417- `show_sign_in`: Whether to show the sign in button in the titlebar
4418- `show_menus`: Whether to show the menus in the titlebar
4419
4420## Vim
4421
4422- Description: Whether or not to enable vim mode.
4423- Setting: `vim_mode`
4424- Default: `false`
4425
4426## When Closing With No Tabs
4427
4428- Description: Whether the window should be closed when using 'close active item' on a window with no tabs
4429- Setting: `when_closing_with_no_tabs`
4430- Default: `"platform_default"`
4431
4432**Options**
4433
44341. Use platform default behavior:
4435
4436```json [settings]
4437{
4438  "when_closing_with_no_tabs": "platform_default"
4439}
4440```
4441
44422. Always close the window:
4443
4444```json [settings]
4445{
4446  "when_closing_with_no_tabs": "close_window"
4447}
4448```
4449
44503. Never close the window:
4451
4452```json [settings]
4453{
4454  "when_closing_with_no_tabs": "keep_window_open"
4455}
4456```
4457
4458## Project Panel
4459
4460- Description: Customize project panel
4461- Setting: `project_panel`
4462- Default:
4463
4464```json [settings]
4465{
4466  "project_panel": {
4467    "button": true,
4468    "default_width": 240,
4469    "dock": "left",
4470    "entry_spacing": "comfortable",
4471    "file_icons": true,
4472    "folder_icons": true,
4473    "git_status": true,
4474    "indent_size": 20,
4475    "auto_reveal_entries": true,
4476    "auto_fold_dirs": true,
4477    "drag_and_drop": true,
4478    "scrollbar": {
4479      "show": null
4480    },
4481    "sticky_scroll": true,
4482    "show_diagnostics": "all",
4483    "indent_guides": {
4484      "show": "always"
4485    },
4486    "sort_mode": "directories_first",
4487    "hide_root": false,
4488    "hide_hidden": false,
4489    "starts_open": true,
4490    "auto_open": {
4491      "on_create": true,
4492      "on_paste": true,
4493      "on_drop": true
4494    }
4495  }
4496}
4497```
4498
4499### Dock
4500
4501- Description: Control the position of the dock
4502- Setting: `dock`
4503- Default: `left`
4504
4505**Options**
4506
45071. Default dock position to left
4508
4509```json [settings]
4510{
4511  "dock": "left"
4512}
4513```
4514
45152. Default dock position to right
4516
4517```json [settings]
4518{
4519  "dock": "right"
4520}
4521```
4522
4523### Entry Spacing
4524
4525- Description: Spacing between worktree entries
4526- Setting: `entry_spacing`
4527- Default: `comfortable`
4528
4529**Options**
4530
45311. Comfortable entry spacing
4532
4533```json [settings]
4534{
4535  "entry_spacing": "comfortable"
4536}
4537```
4538
45392. Standard entry spacing
4540
4541```json [settings]
4542{
4543  "entry_spacing": "standard"
4544}
4545```
4546
4547### Git Status
4548
4549- Description: Indicates newly created and updated files
4550- Setting: `git_status`
4551- Default: `true`
4552
4553**Options**
4554
45551. Default enable git status
4556
4557```json [settings]
4558{
4559  "git_status": true
4560}
4561```
4562
45632. Default disable git status
4564
4565```json [settings]
4566{
4567  "git_status": false
4568}
4569```
4570
4571### Default Width
4572
4573- Description: Customize default width taken by project panel
4574- Setting: `default_width`
4575- Default: `240`
4576
4577**Options**
4578
4579`float` values
4580
4581### Auto Reveal Entries
4582
4583- Description: Whether to reveal it in the project panel automatically, when a corresponding project entry becomes active. Gitignored entries are never auto revealed.
4584- Setting: `auto_reveal_entries`
4585- Default: `true`
4586
4587**Options**
4588
45891. Enable auto reveal entries
4590
4591```json [settings]
4592{
4593  "auto_reveal_entries": true
4594}
4595```
4596
45972. Disable auto reveal entries
4598
4599```json [settings]
4600{
4601  "auto_reveal_entries": false
4602}
4603```
4604
4605### Auto Fold Dirs
4606
4607- Description: Whether to fold directories automatically when directory has only one directory inside.
4608- Setting: `auto_fold_dirs`
4609- Default: `true`
4610
4611**Options**
4612
46131. Enable auto fold dirs
4614
4615```json [settings]
4616{
4617  "auto_fold_dirs": true
4618}
4619```
4620
46212. Disable auto fold dirs
4622
4623```json [settings]
4624{
4625  "auto_fold_dirs": false
4626}
4627```
4628
4629### Indent Size
4630
4631- Description: Amount of indentation (in pixels) for nested items.
4632- Setting: `indent_size`
4633- Default: `20`
4634
4635### Indent Guides: Show
4636
4637- Description: Whether to show indent guides in the project panel.
4638- Setting: `indent_guides`
4639- Default:
4640
4641```json [settings]
4642"indent_guides": {
4643  "show": "always"
4644}
4645```
4646
4647**Options**
4648
46491. Show indent guides in the project panel
4650
4651```json [settings]
4652{
4653  "indent_guides": {
4654    "show": "always"
4655  }
4656}
4657```
4658
46592. Hide indent guides in the project panel
4660
4661```json [settings]
4662{
4663  "indent_guides": {
4664    "show": "never"
4665  }
4666}
4667```
4668
4669### Scrollbar: Show
4670
4671- Description: Whether to show a scrollbar in the project panel. Possible values: null, "auto", "system", "always", "never". Inherits editor settings when absent, see its description for more details.
4672- Setting: `scrollbar`
4673- Default:
4674
4675```json [settings]
4676"scrollbar": {
4677  "show": null
4678}
4679```
4680
4681**Options**
4682
46831. Show scrollbar in the project panel
4684
4685```json [settings]
4686{
4687  "scrollbar": {
4688    "show": "always"
4689  }
4690}
4691```
4692
46932. Hide scrollbar in the project panel
4694
4695```json [settings]
4696{
4697  "scrollbar": {
4698    "show": "never"
4699  }
4700}
4701```
4702
4703### Sort Mode
4704
4705- Description: Sort order for entries in the project panel
4706- Setting: `sort_mode`
4707- Default: `directories_first`
4708
4709**Options**
4710
47111. Show directories first, then files
4712
4713```json [settings]
4714{
4715  "sort_mode": "directories_first"
4716}
4717```
4718
47192. Mix directories and files together
4720
4721```json [settings]
4722{
4723  "sort_mode": "mixed"
4724}
4725```
4726
47273. Show files first, then directories
4728
4729```json [settings]
4730{
4731  "sort_mode": "files_first"
4732}
4733```
4734
4735### Auto Open
4736
4737- Description: Control whether files are opened automatically after different creation flows in the project panel.
4738- Setting: `auto_open`
4739- Default:
4740
4741```json [settings]
4742"auto_open": {
4743  "on_create": true,
4744  "on_paste": true,
4745  "on_drop": true
4746}
4747```
4748
4749**Options**
4750
4751- `on_create`: Whether to automatically open newly created files in the editor.
4752- `on_paste`: Whether to automatically open files after pasting or duplicating them.
4753- `on_drop`: Whether to automatically open files dropped from external sources.
4754
4755## Agent
4756
4757Visit [the Configuration page](./ai/configuration.md) under the AI section to learn more about all the agent-related settings.
4758
4759## Collaboration Panel
4760
4761- Description: Customizations for the collaboration panel.
4762- Setting: `collaboration_panel`
4763- Default:
4764
4765```json [settings]
4766{
4767  "collaboration_panel": {
4768    "button": true,
4769    "dock": "left",
4770    "default_width": 240
4771  }
4772}
4773```
4774
4775**Options**
4776
4777- `button`: Whether to show the collaboration panel button in the status bar
4778- `dock`: Where to dock the collaboration panel. Can be `left` or `right`
4779- `default_width`: Default width of the collaboration panel
4780
4781## Debugger
4782
4783- Description: Configuration for debugger panel and settings
4784- Setting: `debugger`
4785- Default:
4786
4787```json [settings]
4788{
4789  "debugger": {
4790    "stepping_granularity": "line",
4791    "save_breakpoints": true,
4792    "dock": "bottom",
4793    "button": true
4794  }
4795}
4796```
4797
4798See the [debugger page](./debugger.md) for more information about debugging support within Zed.
4799
4800## Git Panel
4801
4802- Description: Setting to customize the behavior of the git panel.
4803- Setting: `git_panel`
4804- Default:
4805
4806```json [settings]
4807{
4808  "git_panel": {
4809    "button": true,
4810    "dock": "left",
4811    "default_width": 360,
4812    "status_style": "icon",
4813    "fallback_branch_name": "main",
4814    "sort_by_path": false,
4815    "collapse_untracked_diff": false,
4816    "scrollbar": {
4817      "show": null
4818    }
4819  }
4820}
4821```
4822
4823**Options**
4824
4825- `button`: Whether to show the git panel button in the status bar
4826- `dock`: Where to dock the git panel. Can be `left` or `right`
4827- `default_width`: Default width of the git panel
4828- `status_style`: How to display git status. Can be `label_color` or `icon`
4829- `fallback_branch_name`: What branch name to use if `init.defaultBranch` is not set
4830- `sort_by_path`: Whether to sort entries in the panel by path or by status (the default)
4831- `collapse_untracked_diff`: Whether to collapse untracked files in the diff panel
4832- `scrollbar`: When to show the scrollbar in the git panel
4833
4834## Git Hosting Providers
4835
4836- Description: Register self-hosted GitHub, GitLab, or Bitbucket instances so commit hashes, issue references, and permalinks resolve to the right host.
4837- Setting: `git_hosting_providers`
4838- Default: `[]`
4839
4840**Options**
4841
4842Each entry accepts:
4843
4844- `provider`: One of `github`, `gitlab`, or `bitbucket`
4845- `name`: Display name for the instance
4846- `base_url`: Base URL, e.g. `https://git.example.corp`
4847
4848You can define these in user or project settings; project settings are merged on top of user settings.
4849
4850```json [settings]
4851{
4852  "git_hosting_providers": [
4853    {
4854      "provider": "github",
4855      "name": "BigCorp GitHub",
4856      "base_url": "https://git.example.corp"
4857    }
4858  ]
4859}
4860```
4861
4862## Outline Panel
4863
4864- Description: Customize outline Panel
4865- Setting: `outline_panel`
4866- Default:
4867
4868```json [settings]
4869"outline_panel": {
4870  "button": true,
4871  "default_width": 300,
4872  "dock": "left",
4873  "file_icons": true,
4874  "folder_icons": true,
4875  "git_status": true,
4876  "indent_size": 20,
4877  "auto_reveal_entries": true,
4878  "auto_fold_dirs": true,
4879  "indent_guides": {
4880    "show": "always"
4881  },
4882  "scrollbar": {
4883    "show": null
4884  }
4885}
4886```
4887
4888## Calls
4889
4890- Description: Customize behavior when participating in a call
4891- Setting: `calls`
4892- Default:
4893
4894```json [settings]
4895"calls": {
4896  // Join calls with the microphone live by default
4897  "mute_on_join": false,
4898  // Share your project when you are the first to join a channel
4899  "share_on_join": false
4900},
4901```
4902
4903## Colorize Brackets
4904
4905- Description: Whether to use tree-sitter bracket queries to detect and colorize the brackets in the editor (also known as "rainbow brackets").
4906- Setting: `colorize_brackets`
4907- Default: `false`
4908
4909**Options**
4910
4911`boolean` values
4912
4913The colors that are used for different indentation levels are defined in the theme (theme key: `accents`). They can be customized by using theme overrides.
4914
4915## Unnecessary Code Fade
4916
4917- Description: How much to fade out unused code.
4918- Setting: `unnecessary_code_fade`
4919- Default: `0.3`
4920
4921**Options**
4922
4923Float values between `0.0` and `0.9`, where:
4924
4925- `0.0` means no fading (unused code looks the same as used code)
4926- `0.9` means maximum fading (unused code is very faint but still visible)
4927
4928**Example**
4929
4930```json [settings]
4931{
4932  "unnecessary_code_fade": 0.5
4933}
4934```
4935
4936## UI Font Family
4937
4938- Description: The name of the font to use for text in the UI.
4939- Setting: `ui_font_family`
4940- Default: `.ZedSans`. This currently aliases to [IBM Plex](https://www.ibm.com/plex/).
4941
4942**Options**
4943
4944The name of any font family installed on the system, `".ZedSans"` to use the Zed-provided default, or `".SystemUIFont"` to use the system's default UI font (on macOS and Windows).
4945
4946## UI Font Features
4947
4948- Description: The OpenType features to enable for text in the UI.
4949- Setting: `ui_font_features`
4950- Default:
4951
4952```json [settings]
4953"ui_font_features": {
4954  "calt": false
4955}
4956```
4957
4958- Platform: macOS and Windows.
4959
4960**Options**
4961
4962Zed supports all OpenType features that can be enabled or disabled for a given UI font, as well as setting values for font features.
4963
4964For example, to disable font ligatures, add the following to your settings:
4965
4966```json [settings]
4967{
4968  "ui_font_features": {
4969    "calt": false
4970  }
4971}
4972```
4973
4974You can also set other OpenType features, like setting `cv01` to `7`:
4975
4976```json [settings]
4977{
4978  "ui_font_features": {
4979    "cv01": 7
4980  }
4981}
4982```
4983
4984## UI Font Fallbacks
4985
4986- Description: The font fallbacks to use for text in the UI.
4987- Setting: `ui_font_fallbacks`
4988- Default: `null`
4989- Platform: macOS and Windows.
4990
4991**Options**
4992
4993For example, to use `Nerd Font` as a fallback, add the following to your settings:
4994
4995```json [settings]
4996{
4997  "ui_font_fallbacks": ["Nerd Font"]
4998}
4999```
5000
5001## UI Font Size
5002
5003- Description: The default font size for text in the UI.
5004- Setting: `ui_font_size`
5005- Default: `16`
5006
5007**Options**
5008
5009`integer` values from `6` to `100` pixels (inclusive)
5010
5011## UI Font Weight
5012
5013- Description: The default font weight for text in the UI.
5014- Setting: `ui_font_weight`
5015- Default: `400`
5016
5017**Options**
5018
5019`integer` values between `100` and `900`
5020
5021## Settings Profiles
5022
5023- Description: Configure any number of settings profiles that are temporarily applied on top of your existing user settings when selected from `settings profile selector: toggle`.
5024- Setting: `profiles`
5025- Default: `{}`
5026
5027In your `settings.json` file, add the `profiles` object.
5028Each key within this object is the name of a settings profile, and each value is an object that can include any of Zed's settings.
5029
5030Example:
5031
5032```json [settings]
5033"profiles": {
5034  "Presenting (Dark)": {
5035    "agent_buffer_font_size": 18.0,
5036    "buffer_font_size": 18.0,
5037    "theme": "One Dark",
5038    "ui_font_size": 18.0
5039  },
5040  "Presenting (Light)": {
5041    "agent_buffer_font_size": 18.0,
5042    "buffer_font_size": 18.0,
5043    "theme": "One Light",
5044    "ui_font_size": 18.0
5045  },
5046  "Writing": {
5047    "agent_buffer_font_size": 15.0,
5048    "buffer_font_size": 15.0,
5049    "theme": "Catppuccin Frappé - No Italics",
5050    "ui_font_size": 15.0,
5051    "tab_bar": { "show": false },
5052    "toolbar": { "breadcrumbs": false }
5053  }
5054}
5055```
5056
5057To preview and enable a settings profile, open the command palette via {#kb command_palette::Toggle} and search for `settings profile selector: toggle`.
5058
5059## An example configuration:
5060
5061```json [settings]
5062// ~/.config/zed/settings.json
5063{
5064  "theme": "cave-light",
5065  "tab_size": 2,
5066  "preferred_line_length": 80,
5067  "soft_wrap": "none",
5068
5069  "buffer_font_size": 18,
5070  "buffer_font_family": ".ZedMono",
5071
5072  "autosave": "on_focus_change",
5073  "format_on_save": "off",
5074  "vim_mode": false,
5075  "projects_online_by_default": true,
5076  "terminal": {
5077    "font_family": "FiraCode Nerd Font Mono",
5078    "blinking": "off"
5079  },
5080  "languages": {
5081    "C": {
5082      "format_on_save": "on",
5083      "formatter": "language_server",
5084      "preferred_line_length": 64,
5085      "soft_wrap": "preferred_line_length"
5086    }
5087  }
5088}
5089```