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