### Start LM Studio Server Source: https://zed.dev/docs/ai/use-a-local-model Launch the LM Studio API server to make downloaded models accessible to Zed. Ensure LM Studio is installed and a model is downloaded. ```bash lms server start ``` -------------------------------- ### Install Zed Preview Build on Linux Source: https://zed.dev/docs/installation Install the preview build of Zed on Linux by setting the ZED_CHANNEL environment variable to 'preview' before running the installation script. ```bash curl -f https://zed.dev/install.sh | ZED_CHANNEL=preview sh ``` -------------------------------- ### Install Local Build Source: https://zed.dev/docs/development/linux Installs the Zed binary and CLI to local directories. ```bash ./script/install-linux ``` -------------------------------- ### Install Zed Desktop Integration Source: https://zed.dev/docs/linux After manual installation, this command installs the necessary .desktop file for XDG-compatible desktop environments. It also modifies the Icon and Exec paths within the .desktop file to point to the manually installed Zed application. ```bash install -D ~/.local/zed.app/share/applications/dev.zed.Zed.desktop -t ~/.local/share/applications sed -i "s|Icon=zed|Icon=$HOME/.local/zed.app/share/icons/hicolor/512x512/apps/zed.png|g" ~/.local/share/applications/dev.zed.Zed.desktop sed -i "s|Exec=zed|Exec=$HOME/.local/zed.app/bin/zed|g" ~/.local/share/applications/dev.zed.Zed.desktop ``` -------------------------------- ### Install Linux System Libraries Source: https://zed.dev/docs/development/linux Execute this script to install the necessary system libraries for building Zed. ```bash script/linux ``` -------------------------------- ### Install Ark R Kernel Source: https://zed.dev/docs/repl Install the Ark R kernel by downloading the binary and running the install command. This enables R language support in Zed's REPL. ```bash ark --install ``` -------------------------------- ### Install sql-formatter Source: https://zed.dev/docs/languages/sql Install the sql-formatter tool globally using npm. This is a prerequisite for using sql-formatter with Zed. ```shell npm install -g sql-formatter ``` -------------------------------- ### Example Zed Settings Configuration Source: https://zed.dev/docs/configuring-zed A comprehensive example of a `settings.json` file demonstrating various configurations for theme, tab size, line length, soft wrap, fonts, autosave, format on save, Vim mode, terminal settings, and language-specific overrides. ```json { "theme": "cave-light", "tab_size": 2, "preferred_line_length": 80, "soft_wrap": "none", "buffer_font_size": 18, "buffer_font_family": ".ZedMono", "autosave": "on_focus_change", "format_on_save": "off", "vim_mode": false, "terminal": { "font_family": "FiraCode Nerd Font Mono", "blinking": "off" }, "languages": { "C": { "format_on_save": "on", "formatter": "language_server", "preferred_line_length": 64, "soft_wrap": "bounded" } } } ``` -------------------------------- ### Default Indent Guides Configuration Source: https://zed.dev/docs/configuring-zed Enables indent guides with default settings for line width and coloring. ```json { "indent_guides": { "enabled": true, "line_width": 1, "active_line_width": 1, "coloring": "fixed", "background_coloring": "disabled" } } ``` -------------------------------- ### Install heaptrack dependencies Source: https://zed.dev/docs/development/linux Install the necessary system and cargo packages for memory profiling. ```bash $ sudo apt install heaptrack heaptrack-gui $ cargo install cargo-heaptrack ``` -------------------------------- ### Configure Auto Install Extensions Source: https://zed.dev/docs/configuring-zed Specifies which extensions to automatically install or never install. Use `true` to install and `false` to prevent installation. ```json { "auto_install_extensions": { "html": true, "dockerfile": true, "docker-compose": false } } ``` -------------------------------- ### Install Zed Preview via Homebrew Source: https://zed.dev/docs/installation Use this command to install the preview version of Zed using Homebrew on macOS. ```bash brew install --cask zed@preview ``` -------------------------------- ### Install Deno Jupyter Kernel for TypeScript Source: https://zed.dev/docs/repl Install the Deno Jupyter kernel to enable TypeScript REPL functionality. Ensure Deno is installed first. ```bash deno jupyter --install ``` -------------------------------- ### Install Zed via winget Source: https://zed.dev/docs/installation Use this command to install Zed on Windows using the winget package manager. ```bash winget install -e --id ZedIndustries.Zed ``` -------------------------------- ### Example Debugger Configuration Source: https://zed.dev/docs/debugger This is a basic example of a debugger configuration, including adapter, label, request type, program path, and working directory. ```json [ { "label": "Example Start debugger config", "adapter": "Example adapter name", "request": "launch", "program": "path_to_program", "cwd": "$ZED_WORKTREE_ROOT" } ] ``` -------------------------------- ### Verify sql-formatter Installation Source: https://zed.dev/docs/languages/sql Check if sql-formatter is installed and accessible in your system's PATH. This command helps confirm the installation. ```shell which sql-formatter sql-formatter --version ``` -------------------------------- ### Manual Zed Installation from Tarball Source: https://zed.dev/docs/linux Manually install Zed by downloading a pre-built tarball. This involves extracting the archive and creating a symbolic link to the Zed binary in a directory included in your system's PATH. ```bash mkdir -p ~/.local # extract zed to ~/.local/zed.app/ tar -xvf .tar.gz -C ~/.local # link the zed binary to ~/.local/bin (or another directory in your $PATH) ln -sf ~/.local/zed.app/bin/zed ~/.local/bin/zed ``` -------------------------------- ### Install Haskell Language Server (HLS) with ghcup Source: https://zed.dev/docs/languages/haskell Installs the Haskell Language Server (HLS) using the recommended ghcup tool. This command fetches and installs HLS, and the subsequent command verifies the installation by locating the HLS wrapper. ```bash curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh ghcup install hls which haskell-language-server-wrapper ``` -------------------------------- ### Start Ollama Server Source: https://zed.dev/docs/ai/use-a-local-model Start the Ollama server to make models available for Zed. This command is for Linux or shell execution. ```bash ollama serve ``` -------------------------------- ### Configure Project Panel Indent Guides Source: https://zed.dev/docs/configuring-zed Control the visibility of indent guides within the project panel. Can be set to 'always' or 'never'. ```json { "project_panel": { "indent_guides": { "show": "always" } } } ``` ```json { "project_panel": { "indent_guides": { "show": "never" } } } ``` -------------------------------- ### Install Almond REPL Source: https://zed.dev/docs/languages/scala Installs Almond, an interactive Scala shell (REPL), along with OpenJDK binaries. This allows for interactive Scala code execution. ```bash brew install --cask temurin ``` ```bash brew install coursier/formulas/coursier && cs setup ``` ```bash coursier launch --use-bootstrap almond -- --install ``` -------------------------------- ### Extract Script Example Source: https://zed.dev/docs/ai/skills This command shows how to run the extraction script, which is likely used to process skill-related files. ```bash scripts/extract.py ``` -------------------------------- ### Install Zed via Homebrew (macOS) Source: https://zed.dev/docs/migrate/vs-code Use this command to install Zed on macOS using Homebrew. ```bash brew install zed-editor/zed/zed ``` -------------------------------- ### Check Dart Installation Source: https://zed.dev/docs/languages/dart Verify that the Dart SDK is installed and accessible in your system's PATH. This is a prerequisite for the Dart extension to function correctly. ```bash which dart dart --version ``` -------------------------------- ### Install uv (Recommended Python Package Manager) Source: https://zed.dev/docs/languages/python Installs the uv package manager using a curl script. This is the recommended method for managing Python environments. ```bash curl -LsSf https://astral.sh/uv/install.sh | sh ``` -------------------------------- ### Generate Zed Log with CLI Source: https://zed.dev/docs/linux Use the Zed CLI to start Zed with WGPU info logging and then display the log contents. This is an alternative method for collecting logs when the main Zed application might not start. ```bash ZED_LOG=wgpu=info /path/to/zed/cli --foreground . # copy the output ``` -------------------------------- ### Install PipeWire ALSA Plugin Source: https://zed.dev/docs/linux Install the PipeWire ALSA plugin on Debian-based systems to enable ALSA to route audio through PipeWire. ```bash sudo apt install pipewire-alsa ``` -------------------------------- ### Enable Indent-Aware Coloring for Indent Guides Source: https://zed.dev/docs/configuring-zed Activates 'rainbow indentation' for indent guides, using theme accents for coloring. ```json { "indent_guides": { "enabled": true, "coloring": "indent_aware" } } ``` -------------------------------- ### Verify Vulkan Installation Source: https://zed.dev/docs/linux Run 'vkcube' to verify that Vulkan is installed and can find a compatible GPU. This helps in troubleshooting Zed's window opening failures. ```bash vkcube ``` -------------------------------- ### Task with Reveal Target Source: https://zed.dev/docs/tasks Configure a task in tasks.json to specify where its output should be revealed. This example sets the 'reveal_target' to 'center' for the 'start lazygit' task. ```json // In tasks.json { "label": "start lazygit", "command": "lazygit -p $ZED_WORKTREE_ROOT" } ``` -------------------------------- ### Debugger Configuration with Build Task Source: https://zed.dev/docs/debugger Configure a debugger task that includes a 'build' field to run setup steps like compiling before the debugger starts. ```json [ { "label": "Build Binary", "adapter": "CodeLLDB", "program": "path_to_program", "request": "launch", "build": { "command": "make", "args": ["build", "-j8"] } } ] ``` -------------------------------- ### Configure Session Restoration: Welcome Launchpad Source: https://zed.dev/docs/configuring-zed Sets Zed to always start with the welcome launchpad, providing quick access to recent projects and new file options. This bypasses any previous session restoration. ```json { "restore_on_startup": "launchpad" } ``` -------------------------------- ### Open Agent Panel Source: https://zed.dev/docs/getting-started Access the AI Agent Panel to start conversations, ask questions, or get assistance from Zed's built-in AI. ```shell Ctrl+Shift+A ``` -------------------------------- ### Verify shfmt Installation and Version Source: https://zed.dev/docs/languages/sh Check if shfmt is accessible in your system's PATH and display its version. ```bash which shfmt shfmt --version ``` -------------------------------- ### Keybinding for Task with Reveal Target Source: https://zed.dev/docs/tasks Bind a key to a task that has a specified reveal target. This example binds 'alt-g' to the 'start lazygit' task and sets its reveal target to 'center'. ```json // In keymap.json { "context": "Workspace", "bindings": { "alt-g": [ "task::Spawn", { "task_name": "start lazygit", "reveal_target": "center" } ] } } ``` -------------------------------- ### Override Default Ansible Language Server Settings Source: https://zed.dev/docs/languages/ansible Example of overriding default Ansible language server settings in Zed. Note the `ansible.path` prefix for settings. Ensure `ansible-lint` is installed for linting. ```json { "lsp": { "ansible-language-server": { "settings": { "ansible": { "path": "ansible" }, "executionEnvironment": { "enabled": false }, "python": { "interpreterPath": "python3" }, "validation": { "enabled": false, "lint": { "enabled": false, "path": "ansible-lint" } } } } } } ``` -------------------------------- ### Zed Predict Onboarding: Open Onboarding Source: https://zed.dev/docs/all-actions Opens the Zed Predict onboarding modal. Use this to access the initial setup or tutorial for Zed Predict. ```text zed predict onboarding: open zed predict onboarding ``` -------------------------------- ### Enable Helix-Style Jump-to-Word Source: https://zed.dev/docs/vim Assign a keybinding for the Helix-style jump-to-word action, which displays jump labels at visible word starts. This example uses 'g w' and overrides Vim's default rewrap binding. ```json { "context": "vim_mode == normal || vim_mode == visual", "bindings": { "g w": "vim::HelixJumpToWord" } } ``` -------------------------------- ### Context Expression Examples Source: https://zed.dev/docs/key-bindings Demonstrates various ways to construct context expressions for key bindings, including logical operators and ancestor matching. ```text "context": "Editor" "context": "Editor && mode == full" "context": "!Editor && !Terminal" "context": "os == macos > Editor" ``` -------------------------------- ### Action Binding Examples Source: https://zed.dev/docs/key-bindings Shows how to bind actions to keystrokes, including actions with no arguments, a single argument, and multiple arguments. ```json "ctrl-a": "language_selector::Toggle" "cmd-1": ["workspace::ActivatePane", 0] "ctrl-a": ["pane::DeploySearch", { "replace_enabled": true }] ``` -------------------------------- ### Configure elm-language-server in Zed Source: https://zed.dev/docs/languages/elm Configures the elm-language-server within Zed's settings.json. This example shows how to disable Elm Language Server diagnostics, control diagnostic updates, and set elm-review diagnostics to 'warning'. Ensure elm, elm-format, and elm-review are installed and accessible. ```json { "lsp": { "elm-language-server": { "initialization_options": { "disableElmLSDiagnostics": true, "onlyUpdateDiagnosticsOnSave": false, "elmReviewDiagnostics": "warning" } } } } ``` -------------------------------- ### Example Zed Contexts Source: https://zed.dev/docs/key-bindings Illustrates how Zed's context tree is structured and what active contexts might look like in different scenarios. ```text Workspace os=macos keyboard_layout=com.apple.keylayout.QWERTY Pane Editor mode=full extension=md vim_mode=insert Workspace os=macos Dock ProjectPanel not_editing ``` -------------------------------- ### Install Zed using the Linux Installation Script Source: https://zed.dev/docs/installation This command installs Zed on Linux using a curl script. It installs the latest stable version by default. ```bash curl -f https://zed.dev/install.sh | sh ``` -------------------------------- ### Verify Python Installation Source: https://zed.dev/docs/languages/python Checks if Python is installed and accessible in your shell by displaying the installed version. ```bash python3 --version ``` -------------------------------- ### Key Sequence and Modifier Examples Source: https://zed.dev/docs/key-bindings Demonstrates how to define key sequences and use various modifiers for custom key bindings in Zed. ```json { "bindings": { "cmd-k cmd-s": "zed::OpenKeymap", // matches โŒ˜-k then โŒ˜-s "space e": "editor::ShowCompletions", // type space then e "รง": "editor::ShowCompletions", // matches โŒฅ-c "shift shift": "file_finder::Toggle" // matches pressing and releasing shift twice } } ``` -------------------------------- ### Install Python with Homebrew Source: https://zed.dev/docs/languages/python Installs Python using the Homebrew package manager. Ensure Homebrew is installed before running this command. ```bash brew install python ``` -------------------------------- ### Configure Shell Program with Arguments Source: https://zed.dev/docs/reference/all-settings Launches a specified shell program with custom arguments. Example uses '/bin/bash' with '--login'. ```json { "terminal": { "shell": { "with_arguments": { "program": "/bin/bash", "args": ["--login"] } } } } ``` -------------------------------- ### Disable Indent Guides Source: https://zed.dev/docs/configuring-zed Turns off all indent guides. ```json { "indent_guides": { "enabled": false } } ``` -------------------------------- ### Example Keymap Configuration Source: https://zed.dev/docs/key-bindings This JSON structure defines key bindings, including global bindings and context-specific bindings for the project panel. ```json [ { "bindings": { "ctrl-right": "editor::SelectLargerSyntaxNode", "ctrl-left": "editor::SelectSmallerSyntaxNode" } }, { "context": "ProjectPanel && not_editing", "bindings": { "o": "project_panel::Open" } } ] ``` -------------------------------- ### Install a Specific Zed Version on Linux Source: https://zed.dev/docs/installation Install a specific version of Zed on Linux by setting the ZED_VERSION environment variable before running the installation script. ```bash # Install the latest stable version (default) curl -f https://zed.dev/install.sh | sh # Install a specific version curl -f https://zed.dev/install.sh | ZED_VERSION=0.216.0 sh ``` -------------------------------- ### Biome Configuration File Source: https://zed.dev/docs/languages/biome This is an example of a basic `biome.json` configuration file. Ensure this file is present in your workspace root for Biome to function correctly. ```json { "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json" } ``` -------------------------------- ### Define npm:install capabilities Source: https://zed.dev/docs/extensions/capabilities Manages permissions for installing npm packages. Allows restricting installations to specific packages or permitting all packages. ```toml { kind = "npm:install", package = "*" } ``` ```toml { kind = "npm:install", package = "typescript" } ``` -------------------------------- ### Configure Multiple Vim Mode Settings Source: https://zed.dev/docs/vim This example shows how to configure various Vim mode settings, including the default mode, system clipboard usage, smart case search, regex search, default substitute behavior, relative line numbers, and highlight duration. It also includes a custom digraph for the zombie emoji. ```json { "vim": { "default_mode": "insert", "use_system_clipboard": "never", "use_smartcase_find": true, "use_regex_search": true, "gdefault": true, "toggle_relative_line_numbers": true, "highlight_on_yank_duration": 50, "custom_digraphs": { "fz": "๐ŸงŸโ€โ™€๏ธ" } } } ``` -------------------------------- ### Verify fish_indent installation Source: https://zed.dev/docs/languages/fish Check if the fish_indent tool is installed and accessible in your system path. ```bash which fish_indent fish_indent --version ``` -------------------------------- ### Verify Shellcheck Installation Source: https://zed.dev/docs/languages/bash Check if shellcheck is installed and accessible from your system's PATH. ```bash which shellcheck shellcheck --version ``` -------------------------------- ### Configure clangd Pre-release Version Source: https://zed.dev/docs/languages/cpp Instruct Zed to install and use a pre-release version of clangd by setting `pre_release` to `true` in your `settings.json`. ```json { "lsp": { "clangd": { "fetch": { "pre_release": true } } } } ``` -------------------------------- ### Simplified Zed Settings with Project Configuration Source: https://zed.dev/docs/languages/sql When using a .sql-formatter.json file, Zed's settings can be simplified to just specify the external formatter command. ```json { "languages": { "SQL": { "formatter": { "external": { "command": "sql-formatter" } } } } } ``` -------------------------------- ### Install PHP on macOS, Debian/Ubuntu, CentOS, or Arch Linux Source: https://zed.dev/docs/languages/php Instructions for installing PHP via package managers on various operating systems. Ensure PHP is installed and available in your system's PATH. ```bash # macOS via Homebrew brew install php # Debian/Ubuntu sudo apt-get install php-cli # CentOS 8+/RHEL sudo dnf install php-cli # Arch Linux sudo pacman -S php # check PHP path ## macOS and Linux which php ## Windows where php ``` -------------------------------- ### Enable Indent Guides for Specific Language Source: https://zed.dev/docs/configuring-zed Enables indent guides specifically for the Python language. ```json { "languages": { "Python": { "indent_guides": { "enabled": true } } } } ``` -------------------------------- ### Load Xresources Configuration Source: https://zed.dev/docs/linux Merge the updated ~/.Xresources file into the current X server, applying the new DPI settings. Restart Zed for changes to take effect. ```bash xrdb -merge ~/.Xresources ``` -------------------------------- ### Example Debug Configurations in .zed/debug.json Source: https://zed.dev/docs/debugger Define custom debug configurations for your project in the `.zed/debug.json` file. This file should be an array of configuration objects, each specifying an adapter and a label. ```json [ { "adapter": "CodeLLDB", "label": "First configuration" // ... }, { "adapter": "Debugpy", "label": "Second configuration" // ... } ] ``` -------------------------------- ### Verify ocaml-lsp Installation Source: https://zed.dev/docs/languages/ocaml Run this command in your terminal to check if the ocaml-lsp language server is installed and accessible. ```bash ocamllsp --help ``` -------------------------------- ### Create per-project settings file Source: https://zed.dev/docs/migrate/intellij Override global settings for a specific project by creating a `.zed/settings.json` file in the project root. ```json .zed/settings.json ``` -------------------------------- ### Configure inlay_hints setting Source: https://zed.dev/docs/migrate/intellij Enable inline parameter names and type hints, similar to IntelliJ's hints. ```json "inlay_hints": true ``` -------------------------------- ### List Installed Extensions on Linux Source: https://zed.dev/docs/configuring-zed Command to list installed extensions in the default Zed extensions directory on Linux. ```bash ls ~/.local/share/zed/extensions/installed ``` -------------------------------- ### List Installed Extensions on macOS Source: https://zed.dev/docs/configuring-zed Command to list installed extensions in the default Zed extensions directory on macOS. ```bash ls ~/Library/Application\ Support/Zed/extensions/installed/ ``` -------------------------------- ### CodeLLDB Debug Configuration for Native Binaries Source: https://zed.dev/docs/languages/c Example debug configuration for launching a native binary using the CodeLLDB adapter in Zed. Ensure your build process includes debug information (`-g`). ```json [ { "label": "Debug native binary", "build": { "command": "make", "args": ["-j8"], "cwd": "$ZED_WORKTREE_ROOT" }, "program": "$ZED_WORKTREE_ROOT/build/prog", "request": "launch", "adapter": "CodeLLDB" } ] ``` -------------------------------- ### Example Task Definition Source: https://zed.dev/docs/tasks Defines a sample task with a command to echo messages and a sleep interval. It includes configurations for environment variables, terminal reuse, concurrency, reveal behavior, and shell. ```json [ { "label": "Example task", "command": "for i in {1..5}; do echo \"Hello $i/5\"; sleep 1; done", "env": { "foo": "bar" }, "use_new_terminal": false, "allow_concurrent_runs": false, "reveal": "always", "hide": "never", "shell": "system", "show_summary": true, "show_command": true, "save": "none" } ] ``` -------------------------------- ### Linker Error Example Source: https://zed.dev/docs/development/linux Example of a linker error encountered during build due to GCC 14 compatibility issues. ```text error: linking with `cc` failed: exit status: 1 ... = note: /usr/bin/ld: /tmp/rustcISMaod/libaws_lc_sys-79f08eb6d32e546e.rlib(f8e4fd781484bd36-bcm.o): in function `aws_lc_0_25_0_handle_cpu_env': /aws-lc/crypto/fipsmodule/cpucap/cpu_intel.c:(.text.aws_lc_0_25_0_handle_cpu_env+0x63): undefined reference to `__isoc23_sscanf' /usr/bin/ld: /tmp/rustcISMaod/libaws_lc_sys-79f08eb6d32e546e.rlib(f8e4fd781484bd36-bcm.o): in function `pkey_rsa_ctrl_str': /aws-lc/crypto/fipsmodule/evp/p_rsa.c:741:(.text.pkey_rsa_ctrl_str+0x20d): undefined reference to `__isoc23_strtol' /usr/bin/ld: /aws-lc/crypto/fipsmodule/evp/p_rsa.c:752:(.text.pkey_rsa_ctrl_str+0x258): undefined reference to `__isoc23_strtol' collect2: error: ld returned 1 exit status = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified = note: use the `-l` flag to specify native libraries to link = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib) error: could not compile `remote_server` (bin "remote_server") due to 1 previous error ``` -------------------------------- ### List Installed Extensions on Windows Source: https://zed.dev/docs/configuring-zed PowerShell command to list installed extensions in the default Zed extensions directory on Windows. ```powershell Get-ChildItem "$env:LOCALAPPDATA\Zed\extensions\installed" -Name ``` -------------------------------- ### Configure PHP Tools Premium License Source: https://zed.dev/docs/languages/php Set up the PHP Tools premium license by providing the license key in initialization_options or as an environment variable. ```json { "lsp": { "phptools": { "initialization_options": { "0": "your_license_key" } } } } ``` ```dotenv DEVSENSE_PHP_LS_LICENSE="your_license_key" ``` -------------------------------- ### Example Extension Directory Structure Source: https://zed.dev/docs/extensions/icon-themes This illustrates the typical file and directory layout for a Zed extension that provides an icon theme. It shows the placement of the main configuration file (`extension.toml`), the icon theme definition file (`my-icon-theme.json`), and the icon assets. ```plaintext extension.toml icon_themes/ my-icon-theme.json icons/ audio.svg chevron-down.svg chevron-right.svg file.svg folder-open.svg folder.svg rust.svg ``` -------------------------------- ### Install Zed Stable via Homebrew Source: https://zed.dev/docs/installation Use this command to install the stable version of Zed using Homebrew on macOS. ```bash brew install --cask zed ``` -------------------------------- ### Configure Ruby LSP Initialization Options Source: https://zed.dev/docs/languages/ruby Pass configuration options to the `ruby-lsp` language server through `initialization_options`. This example shows how to disable specific features. ```json { "languages": { "Ruby": { "language_servers": ["ruby-lsp", "!solargraph", "..."] } }, "lsp": { "ruby-lsp": { "initialization_options": { "enabledFeatures": { "someFeature": false } } } } } ``` -------------------------------- ### Building UI Elements with Zed Source: https://zed.dev/docs/development/glossary Demonstrates how to construct UI elements using Zed's declarative syntax. This example shows a flex layout with conditional styling and absolute positioning for a child element. ```rust h_flex() .id(text[i]) .relative() .when(selected, |this| { this.child( div() .h_4() .absolute() etc etc ``` -------------------------------- ### Language Configuration Example Source: https://zed.dev/docs/extensions/languages Defines the basic metadata for a language, including its name, associated grammar, file suffixes, and line comment syntax. ```toml name = "My Language" grammar = "my-language" path_suffixes = ["myl"] line_comments = ["# "] ```