Configuring Zed

Folder-specific settings

Folder-specific settings are used to override Zed's global settings for files within a specific directory in the project panel. To get started, create a .zed subdirectory and add a settings.json within it. It should be noted that folder-specific settings don't need to live only a project's root, but can be defined at multiple levels in the project hierarchy. In setups like this, Zed will find the configuration nearest to the file you are working in and apply those settings to it. In most cases, this level of flexibility won't be needed and a single configuration for all files in a project is all that is required; the Zed > Settings > Open Local Settings menu action is built for this case. Running this action will look for a .zed/settings.json file at the root of the first top-level directory in your project panel. If it does not exist, it will create it.

The following global settings can be overridden with a folder-specific configuration:

  • copilot
  • enable_language_server
  • ensure_final_newline_on_save
  • format_on_save
  • formatter
  • hard_tabs
  • languages
  • preferred_line_length
  • remove_trailing_whitespace_on_save
  • soft_wrap
  • tab_size
  • show_copilot_suggestions
  • show_whitespaces

See the Global settings section for details about these settings

Global settings

To get started with editing Zed's global settings, open ~/.config/zed/settings.json via + ,, the command palette (zed: open settings), or the Zed > Settings > Open Settings application menu item.

Here are all the currently available settings.

Active Pane Magnification

  • Description: Scale by which to zoom the active pane. When set to 1.0, the active pane has the same size as others, but when set to a larger value, the active pane takes up more space.
  • Setting: active_pane_magnification
  • Default: 1.0

Options

float values

Autosave

  • Description: When to automatically save edited buffers.
  • Setting: autosave
  • Default: off

Options

  1. To disable autosave, set it to off
{
  "autosave": "off"
}
  1. To autosave when focus changes, use on_focus_change:
{
  "autosave": "on_focus_change"
}
  1. To autosave when the active window changes, use on_window_change:
{
  "autosave": "on_window_change"
}
  1. To autosave after an inactivity period, use after_delay:
{
  "autosave": {
    "after_delay": {
      "milliseconds": 1000
    }
  }
}

Auto Update

  • Description: Whether or not to automatically check for updates.
  • Setting: auto_update
  • Default: true

Options

boolean values

Buffer Font Family

  • Description: The name of a font to use for rendering text in the editor.
  • Setting: buffer_font_family
  • Default: Zed Mono

Options

The name of any font family installed on the user's system

Buffer Font Features

  • Description: The OpenType features to enable for text in the editor.
  • Setting: buffer_font_features
  • Default: null

Options

Zed supports a subset of OpenType features that can be enabled or disabled for a given buffer or terminal font. The following OpenType features can be enabled or disabled too: calt, case, cpsp, frac, liga, onum, ordn, pnum, ss01, ss02, ss03, ss04, ss05, ss06, ss07, ss08, ss09, ss10, ss11, ss12, ss13, ss14, ss15, ss16, ss17, ss18, ss19, ss20, subs, sups, swsh, titl, tnum, zero.

For example, to disable ligatures for a given font you can add the following to your settings:

{
  "buffer_font_features": {
    "calt": false
  }
}

Buffer Font Size

  • Description: The default font size for text in the editor.
  • Setting: buffer_font_size
  • Default: 15

Options

integer values

Confirm Quit

  • Description: Whether or not to prompt the user to confirm before closing the application.
  • Setting: confirm_quit
  • Default: false

Options

boolean values

Centered Layout

  • Description: Configuration for the centered layout mode.
  • Setting: centered_layout
  • Default:
"centered_layout": {
  "left_padding": 0.2,
  "right_padding": 0.2,
}

Options

The left_padding and right_padding options define the relative width of the left 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.

Copilot

  • Description: Copilot-specific settings.
  • Setting: copilot
  • Default:
"copilot": {
  "disabled_globs": [
    ".env"
  ]
}

Options

Disabled Globs

  • Description: The set of glob patterns for which Copilot should be disabled in any matching file.
  • Setting: disabled_globs
  • Default: [".env"]

Options

List of string values

Current Line Highlight

  • Description: How to highlight the current line in the editor.
  • Setting: current_line_highlight
  • Default: all

Options

  1. Don't highlight the current line:
"current_line_highlight": "none"
  1. Highlight the gutter area.
"current_line_highlight": "gutter"
  1. Highlight the editor area.
"current_line_highlight": "line"
  1. Highlight the full line.
"current_line_highlight": "all"
  • Description: Whether or not the cursor blinks.
  • Setting: cursor_blink
  • Default: true

Options

boolean values

Default Dock Anchor

  • Description: The default anchor for new docks.
  • Setting: default_dock_anchor
  • Default: bottom

Options

  1. Position the dock attached to the bottom of the workspace: bottom
  2. Position the dock to the right of the workspace like a side panel: right
  3. Position the dock full screen over the entire workspace: expanded

Editor Scrollbar

  • Description: Whether or not to show the editor scrollbar and various elements in it.
  • Setting: scrollbar
  • Default:
"scrollbar": {
  "show": "auto",
  "cursors": true,
  "git_diff": true,
  "search_results": true,
  "selected_symbol": true,
  "diagnostics": true
},

Show Mode

  • Description: When to show the editor scrollbar.
  • Setting: show
  • Default: auto

Options

  1. Show the scrollbar if there's important information or follow the system's configured behavior:
"scrollbar": {
  "show": "auto"
}
  1. Match the system's configured behavior:
"scrollbar": {
  "show": "system"
}
  1. Always show the scrollbar:
"scrollbar": {
  "show": "always"
}
  1. Never show the scrollbar:
"scrollbar": {
  "show": "never"
}

Cursor Indicators

  • Description: Whether to show cursor positions in the scrollbar.
  • Setting: cursors
  • Default: true

Options

boolean values

Git Diff Indicators

  • Description: Whether to show git diff indicators in the scrollbar.
  • Setting: git_diff
  • Default: true

Options

boolean values

Search Results Indicators

  • Description: Whether to show buffer search results in the scrollbar.
  • Setting: search_results
  • Default: true

Options

boolean values

Selected Symbols Indicators

  • Description: Whether to show selected symbol occurrences in the scrollbar.
  • Setting: selected_symbol
  • Default: true

Options

boolean values

Diagnostics

  • Description: Whether to show diagnostic indicators in the scrollbar.
  • Setting: diagnostics
  • Default: true

Options

boolean values

Editor Tab Bar

  • Description: Settings related to the editor's tab bar.
  • Settings: tab_bar
  • Default:
"tab_bar": {
  "show": true,
  "show_nav_history_buttons": true
}

Show

  • Description: Whether or not to show the tab bar in the editor.
  • Setting: show
  • Default: true

Options

boolean values

  • Description: Whether or not to show the navigation history buttons.
  • Setting: show_nav_history_buttons
  • Default: true

Options

boolean values

Editor Tabs

  • Description: Configuration for the editor tabs.
  • Setting: tabs
  • Default:
"tabs": {
  "close_position": "right",
  "git_status": false
},

Close Position

  • Description: Where to display close button within a tab.
  • Setting: close_position
  • Default: right

Options

  1. Display the close button on the right:
{
  "close_position": "right"
}
  1. Display the close button on the left:
{
  "close_position": "left"
}

Git Status

  • Description: Whether or not to show Git file status in tab.
  • Setting: git_status
  • Default: false

Editor Toolbar

  • Description: Whether or not to show various elements in the editor toolbar.
  • Setting: toolbar
  • Default:
"toolbar": {
  "breadcrumbs": true,
  "quick_actions": true
},

Options

Each option controls displaying of a particular toolbar element. If all elements are hidden, the editor toolbar is not displayed.

Enable Language Server

  • Description: Whether or not to use language servers to provide code intelligence.
  • Setting: enable_language_server
  • Default: true

Options

boolean values

Ensure Final Newline On Save

  • Description: Whether or not to ensure there's a single newline at the end of a buffer when saving it.
  • Setting: ensure_final_newline_on_save
  • Default: true

Options

boolean values

LSP

  • Description: Configuration for language servers.
  • Setting: lsp
  • Default: null

Options

The following settings can be overridden for specific language servers:

  • initialization_options

To override settings for a language, add an entry for that language server's name to the lsp value. Example:

"lsp": {
  "rust-analyzer": {
    "initialization_options": {
      "check": {
        "command": "clippy" // rust-analyzer.check.command (default: "check")
      }
    }
  }
}

Format On Save

  • Description: Whether or not to perform a buffer format before saving.
  • Setting: format_on_save
  • Default: on

Options

  1. on, enables format on save obeying formatter setting:
{
  "format_on_save": "on"
}
  1. off, disables format on save:
{
  "format_on_save": "off"
}

Formatter

  • Description: How to perform a buffer format.
  • Setting: formatter
  • Default: auto

Options

  1. To use the current language server, use "language_server":
{
  "formatter": "language_server"
}
  1. 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):
{
  "formatter": {
    "external": {
      "command": "sed",
      "arguments": ["-e", "s/ *$//"]
    }
  }
}
  1. Or to use code actions provided by the connected language servers, use "code_actions" (requires Zed 0.130.x):
{
  "formatter": {
    "code_actions": {
      // Use ESLint's --fix:
      "source.fixAll.eslint": true,
      // Organize imports on save:
      "source.organizeImports": true
    }
  }
}

Code Actions On Format

  • Description: The code actions to perform with the primary language server when formatting the buffer.
  • Setting: code_actions_on_format
  • Default: {}, except for Go it's { "source.organizeImports": true }

Examples

  1. Organize imports on format in TypeScript and TSX buffers:
{
  "languages": {
    "TypeScript": {
      "code_actions_on_format": {
        "source.organizeImports": true
      }
    },
    "TSX": {
      "code_actions_on_format": {
        "source.organizeImports": true
      }
    }
  }
}
  1. Run ESLint fixAll code action when formatting (requires Zed 0.125.0):
{
  "languages": {
    "JavaScript": {
      "code_actions_on_format": {
        "source.fixAll.eslint": true
      }
    }
  }
}
  1. Run only a single ESLint rule when using fixAll (requires Zed 0.125.0):
{
  "languages": {
    "JavaScript": {
      "code_actions_on_format": {
        "source.fixAll.eslint": true
      }
    }
  },
  "lsp": {
    "eslint": {
      "settings": {
        "codeActionOnSave": {
          "rules": ["import/order"]
        }
      }
    }
  }
}

Auto close

  • Description: Whether to automatically add matching closing characters when typing opening parenthesis, bracket, brace, single or double quote characters.
  • Setting: use_autoclose
  • Default: true

Options

boolean values

Always Treat Brackets As Autoclosed

  • Description: Controls how the editor handles the autoclosed characters.
  • Setting: always_treat_brackets_as_autoclosed
  • Default: false

Options

boolean values

Example

If the setting is set to true:

  1. Enter in the editor: )))
  2. Move the cursor to the start: ^)))
  3. Enter again: )))

The result is still ))) and not )))))), which is what it would be by default.

File Types

  • Setting: file_types
  • Description: Configure how Zed selects a language for a file based on its filename or extension. Supports glob entries.
  • Default: {}

Examples

To interpret all .c files as C++, files called MyLockFile as TOML and files starting with Dockerfile as Dockerfile:

{
  "file_types": {
    "C++": ["c"],
    "TOML": ["MyLockFile"],
    "Dockerfile": ["Dockerfile*"]
  }
}

Git

  • Description: Configuration for git-related features.
  • Setting: git
  • Default:
{
  "git": {
    "git_gutter": "tracked_files",
    "inline_blame": {
      "enabled": true
    }
  }
}

Git Gutter

  • Description: Whether or not to show the git gutter.
  • Setting: git_gutter
  • Default: tracked_files

Options

  1. Show git gutter in tracked files
{
  "git": {
    "git_gutter": "tracked_files"
  }
}
  1. Hide git gutter
{
  "git": {
    "git_gutter": "hide"
  }
}

Inline Git Blame

  • Description: Whether or not to show git blame information inline, on the currently focused line (requires Zed 0.132.0).
  • Setting: inline_blame
  • Default:
{
  "git": {
    "inline_blame": {
      "enabled": true
    }
  }
}

Options

  1. Disable inline git blame:
{
  "git": {
    "inline_blame": {
      "enabled": false
    }
  }
}
  1. Only show inline git blame after a delay (that starts after cursor stops moving):
{
  "git": {
    "inline_blame": {
      "enabled": false,
      "delay_ms": 500
    }
  }
}

Hard Tabs

  • Description: Whether to indent lines using tab characters or multiple spaces.
  • Setting: hard_tabs
  • Default: false

Options

boolean values

Hover Popover Enabled

  • Description: Whether or not to show the informational hover box when moving the mouse over symbols in the editor.
  • Setting: hover_popover_enabled
  • Default: true

Options

boolean values

Inlay hints

  • Description: Configuration for displaying extra text with hints in the editor.
  • Setting: inlay_hints
  • Default:
"inlay_hints": {
  "enabled": false,
  "show_type_hints": true,
  "show_parameter_hints": true,
  "show_other_hints": true,
  "edit_debounce_ms": 700,
  "scroll_debounce_ms": 50
}

Options

Inlay hints querying consists of two parts: editor (client) and LSP server. With 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. At 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.

The following languages have inlay hints preconfigured by Zed:

Use the lsp section for the server configuration. Examples are provided in the corresponding language documentation.

Hints are not instantly queried in Zed, two kinds of debounces are used, either may be set to 0 to be disabled. Settings-related hint updates are not debounced.

Journal

  • Description: Configuration for the journal.
  • Setting: journal
  • Default:
"journal": {
  "path": "~",
  "hour_format": "hour12"
}

Path

  • Description: The path of the directory where journal entries are stored.
  • Setting: path
  • Default: ~

Options

string values

Hour Format

  • Description: The format to use for displaying hours in the journal.
  • Setting: hour_format
  • Default: hour12

Options

  1. 12-hour format:
{
  "hour_format": "hour12"
}
  1. 24-hour format:
{
  "hour_format": "hour24"
}

Languages

  • Description: Configuration for specific languages.
  • Setting: languages
  • Default: null

Options

To override settings for a language, add an entry for that languages name to the languages value. Example:

"languages": {
  "C": {
    "format_on_save": "off",
    "preferred_line_length": 64,
    "soft_wrap": "preferred_line_length"
  },
  "JSON": {
    "tab_size": 4
  }
}

The following settings can be overridden for each specific language:

  • enable_language_server
  • ensure_final_newline_on_save
  • format_on_save
  • formatter
  • hard_tabs
  • preferred_line_length
  • remove_trailing_whitespace_on_save
  • show_copilot_suggestions
  • show_whitespaces
  • soft_wrap
  • tab_size
  • use_autoclose
  • always_treat_brackets_as_autoclosed

These values take in the same options as the root-level settings with the same name.

Preview tabs

  • Description: (requires Zed 0.132.x)
    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.
    There are several ways to convert a preview tab into a regular tab:

    • Double-clicking on the file
    • Double-clicking on the tab header
    • Using the project_panel::OpenPermanent action
    • Editing the file
    • Dragging the file to a different pane
  • Setting: preview_tabs

  • Default:

"preview_tabs": {
  "enabled": true,
  "enable_preview_from_file_finder": false,
  "enable_preview_from_code_navigation": false,
}

Enable preview from file finder

  • Description: Determines whether to open files in preview mode when selected from the file finder.
  • Setting: enable_preview_from_file_finder
  • Default: false

Options

boolean values

Enable preview from code navigation

  • Description: Determines whether a preview tab gets replaced when code navigation is used to navigate away from the tab (requires Zed 0.134.x).
  • Setting: enable_preview_from_code_navigation
  • Default: false

Options

boolean values

Preferred Line Length

  • Description: The column at which to soft-wrap lines, for buffers where soft-wrap is enabled.
  • Setting: preferred_line_length
  • Default: 80

Options

integer values

Projects Online By Default

  • Description: Whether or not to show the online projects view by default.
  • Setting: projects_online_by_default
  • Default: true

Options

boolean values

Remove Trailing Whitespace On Save

  • Description: Whether or not to remove any trailing whitespace from lines of a buffer before saving it.
  • Setting: remove_trailing_whitespace_on_save
  • Default: true

Options

boolean values

Show Call Status Icon

  • Description: Whether or not to show the call status icon in the status bar.
  • Setting: show_call_status_icon
  • Default: true

Options

boolean values

Show Completions On Input

  • Description: Whether or not to show completions as you type.
  • Setting: show_completions_on_input
  • Default: true

Options

boolean values

Show Completion Documentation

  • Description: Whether to display inline and alongside documentation for items in the completions menu.
  • Setting: show_completion_documentation
  • Default: true

Options

boolean values

Completion Documentation Debounce Delay

  • Description: The debounce delay before re-querying the language server for completion documentation when not included in original completion list.
  • Setting: completion_documentation_secondary_query_debounce
  • Default: 300 ms

Options

integer values

Show Copilot Suggestions

  • Description: Whether or not to show Copilot suggestions as you type or wait for a copilot::Toggle.
  • Setting: show_copilot_suggestions
  • Default: true

Options

boolean values

Show Whitespaces

  • Description: Whether or not to show render whitespace characters in the editor.
  • Setting: show_whitespaces
  • Default: selection

Options

  1. all
  2. selection
  3. none

Soft Wrap

  • Description: Whether or not to automatically wrap lines of text to fit editor / preferred width.
  • Setting: soft_wrap
  • Default: none

Options

  1. editor_width
  2. preferred_line_length
  3. none

Tab Size

  • Description: The number of spaces to use for each tab character.
  • Setting: tab_size
  • Default: 4

Options

integer values

Telemetry

  • Description: Control what info is collected by Zed.
  • Setting: telemetry
  • Default:
"telemetry": {
  "diagnostics": true,
  "metrics": true
},

Options

Diagnostics

  • Description: Setting for sending debug-related data, such as crash reports.
  • Setting: diagnostics
  • Default: true

Options

boolean values

Metrics

  • Description: Setting for sending anonymized usage data, such what languages you're using Zed with.
  • Setting: metrics
  • Default: true

Options

boolean values

Terminal

  • Description: Configuration for the terminal.
  • Setting: terminal
  • Default:
"terminal": {
  "alternate_scroll": "off",
  "blinking": "terminal_controlled",
  "copy_on_select": false,
  "env": {},
  "font_family": null,
  "font_features": null,
  "font_size": null,
  "option_as_meta": false,
  "button": false,
  "shell": {},
  "toolbar": {
    "title": true
  },
  "working_directory": "current_project_directory"
}

Alternate Scroll

  • 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.
  • Setting: alternate_scroll
  • Default: off

Options

  1. Default alternate scroll mode to on
{
  "alternate_scroll": "on"
}
  1. Default alternate scroll mode to off
{
  "alternate_scroll": "off"
}

Blinking

  • Description: Set the cursor blinking behavior in the terminal
  • Setting: blinking
  • Default: terminal_controlled

Options

  1. Never blink the cursor, ignore the terminal mode
{
  "blinking": "off"
}
  1. Default the cursor blink to off, but allow the terminal to turn blinking on
{
  "blinking": "terminal_controlled"
}
  1. Always blink the cursor, ignore the terminal mode
"blinking": "on",

Copy On Select

  • Description: Whether or not selecting text in the terminal will automatically copy to the system clipboard.
  • Setting: copy_on_select
  • Default: false

Options

boolean values

Env

  • 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
  • Setting: env
  • Default: {}

Example

"env": {
  "ZED": "1",
  "KEY": "value1:value2"
}

Font Size

  • Description: What font size to use for the terminal. When not set defaults to matching the editor's font size
  • Setting: font_size
  • Default: null

Options

integer values

Font Family

  • Description: What font to use for the terminal. When not set, defaults to matching the editor's font.
  • Setting: font_family
  • Default: null

Options

The name of any font family installed on the user's system

Font Features

  • Description: What font features to use for the terminal. When not set, defaults to matching the editor's font features.
  • Setting: font_features
  • Default: null

Options

See Buffer Font Features

Option As Meta

  • Description: Re-interprets the option keys to act like a 'meta' key, like in Emacs.
  • Setting: option_as_meta
  • Default: true

Options

boolean values

Shell

  • Description: What shell to use when launching the terminal.
  • Setting: shell
  • Default: system

Options

  1. Use the system's default terminal configuration (usually the /etc/passwd file).
{
  "shell": "system"
}
  1. A program to launch:
"shell": {
    "program": "sh"
}
  1. A program with arguments:
"shell": {
  "with_arguments": {
    "program": "/bin/bash",
    "args": ["--login"]
  }
}

Terminal Toolbar

  • Description: Whether or not to show various elements in the terminal toolbar. It only affects terminals placed in the editor pane.
  • Setting: toolbar
  • Default:
"toolbar": {
  "title": true,
},

Options

At the moment, only the title option is available, it controls displaying of the terminal title that can be changed via PROMPT_COMMAND. If the title is hidden, the terminal toolbar is not displayed.

Terminal Button

  • Description: Control to show or hide the terminal button in the status bar
  • Setting: button
  • Default: true

Options

boolean values

Working Directory

  • Description: What working directory to use when launching the terminal.
  • Setting: working_directory
  • Default: "current_project_directory"

Options

  1. Use the current file's project directory. Will Fallback to the first project directory strategy if unsuccessful
{
  "working_directory": "current_project_directory"
}
  1. Use the first project in this workspace's directory. Will fallback to using this platform's home directory.
{
  "working_directory": "first_project_directory"
}
  1. Always use this platform's home directory (if we can find it)
{
  "working_directory": "always_home"
}
  1. 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.
"working_directory": {
  "always": {
    "directory": "~/zed/projects/"
  }
}

Theme

  • 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.
  • Setting: theme
  • Default: One Dark

Theme Object

  • Description: Specify the theme using an object that includes the mode, dark, and light themes.
  • Setting: theme
  • Default:
"theme": {
  "mode": "dark",
  "dark": "One Dark",
  "light": "One Light"
},

Mode

  • Description: Specify theme mode.
  • Setting: mode
  • Default: dark

Options

  1. Set the theme to dark mode
{
  "mode": "dark"
}
  1. Set the theme to light mode
{
  "mode": "light"
}
  1. Set the theme to system mode
{
  "mode": "system"
}

Dark

  • Description: The name of the dark Zed theme to use for the UI.
  • Setting: dark
  • Default: One Dark

Options

Run the theme selector: toggle action in the command palette to see a current list of valid themes names.

Light

  • Description: The name of the light Zed theme to use for the UI.
  • Setting: light
  • Default: One Light

Options

Run the theme selector: toggle action in the command palette to see a current list of valid themes names.

Vim

  • Description: Whether or not to enable vim mode (work in progress).
  • Setting: vim_mode
  • Default: false

Project Panel

  • Description: Customise project panel
  • Setting: project_panel
  • Default:
"project_panel": {
  "button": true,
  "dock": "left",
  "git_status": true,
  "default_width": "N/A - width in pixels"
},

Dock

  • Description: Control the position of the dock
  • Setting: dock
  • Default: left

Options

  1. Default dock position to left
{
  "dock": "left"
}
  1. Default dock position to right
{
  "dock": "right"
}

Git Status

  • Description: Indicates newly created and updated files
  • Setting: git_status
  • Default: true
  1. Default enable git status
{
  "git_status": true
}
  1. Default disable git status
{
  "git_status": false
}

Default Width

  • Description: Customise default width taken by project panel
  • Setting: default_width
  • Default: N/A width in pixels (eg: 420)

Options

boolean values

Calls

  • Description: Customise behaviour when participating in a call
  • Setting: calls
  • Default:
"calls": {
  // Join calls with the microphone live by default
  "mute_on_join": false,
  // Share your project when you are the first to join a channel
  "share_on_join": true
},

An example configuration:

// ~/.config/zed/settings.json
{
  "theme": "cave-light",
  "tab_size": 2,
  "preferred_line_length": 80,
  "soft_wrap": "none",

  "buffer_font_size": 18,
  "buffer_font_family": "Zed Mono",

  "autosave": "on_focus_change",
  "format_on_save": "off",
  "vim_mode": false,
  "projects_online_by_default": true,
  "terminal": {
    "font_family": "FiraCode Nerd Font Mono",
    "blinking": "off"
  },
  "languages": {
    "C": {
      "format_on_save": "language_server",
      "preferred_line_length": 64,
      "soft_wrap": "preferred_line_length"
    }
  }
}