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

 

结案~


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM