VS Code word wrap 不好使

# 环境

- Windows 10

# 症状

- word wrap 不好使,无论是通过菜单、快捷、还是命令都无法切换

# 病因

- 今天弹出一个 Notification,给出了答案:

```

Are you using a screen reader to operate VS Code? (Certain features like word wrap are disabled when using a screen reader)

```

# 解决

- 关注这个 Setting.json 配置,不要设置“on”:

```

// Controls whether the editor should run in a mode where it is optimized for screen readers.

  //  - auto: The editor will use platform APIs to detect when a Screen Reader is attached.

  //  - on: The editor will be permanently optimized for usage with a Screen Reader.

  //  - off: The editor will never be optimized for usage with a Screen Reader.

  "editor.accessibilitySupport": "auto",

```

# 官方文档

https://code.visualstudio.com/docs/editor/accessibility#_screen-reader-mode

结案~

猜你喜欢

转载自www.cnblogs.com/duxing/p/12641827.html