Skip to content

VSCode base keymap should have Alt+Z set to toggle word wrap #40031

@Damglador

Description

@Damglador

Summary

VSCode base keymap in Zed doesn't toggle word wrap on Alt+Z like VSCode.

Description

There's editor: toogle soft wrap keybind in Zed that does basically the same thing as Alt+Z in VSCode, so perhaps it should be mapper to Alt+Z with VSCode base keymap.

Steps to reproduce:

  1. Get a file with a long line of text
  2. Set base keymap to VSCode
  3. Open the file in Zed and VSCode
  4. Press Alt+Z in Zed
  5. Press Alt+Z in VSCode

Expected Behavior:
Zed should toggle word wrap like VSCode does on Alt+Z

Actual Behavior:
Zed doesn't toggle word wrap even though it uses VSCode base keymap

keymap.json
[
  {
    "context": "Workspace",
    "bindings": {
      // "shift shift": "file_finder::Toggle"
    }
  },
  {
    "context": "Editor && vim_mode == insert",
    "bindings": {
      // "j k": "vim::NormalBefore"
    }
  },
  {
    "context": "Terminal",
    "bindings": {
      "ctrl-c": "terminal::Copy"
    }
  },
  {
    "context": "Terminal",
    "bindings": {
      "ctrl-v": "terminal::Paste"
    }
  },
  {
    "context": "Terminal",
    "bindings": {
      "ctrl-shift-c": [
        "terminal::SendKeystroke",
        "ctrl-c"
      ]
    }
  }
]
settings.json
{
  "format_on_save": "off",
  "hard_tabs": false,
  "icon_theme": "Colored Zed Icons Theme Light",
  "ui_font_size": 16,
  "buffer_font_size": 16,
  "theme": {
    "mode": "system",
    "light": "One Light",
    "dark": "Catppuccin Mocha"
  },
  "disable_ai": true,
  "terminal": {
    "copy_on_select": true
  }
}

Zed Version and System Specs

Zed: v0.206.7 (Zed)
OS: Linux Wayland arch unknown
Memory: 13.5 GiB
Architecture: x86_64
GPU: AMD Radeon Graphics (RADV RENOIR) || radv || Mesa 25.2.3-arch1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    editorFeedback for code editing, formatting, editor iterations, etcgood first issueIssue suitable for first-time contributorskeybindsKeyboard shortcuts, mapping, binding, keymaps, etc

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions