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