0

I have a JavaScript file that has very long one-line comments, I want to set "editor.wordWrap": "on" for this file only and keep other js files unwrapped.

I tried Alt+Z, but it doesn't persist on VSCode reload. Are there any better ways?

rioV8
  • 24,506
  • 3
  • 32
  • 49
Wenfang Du
  • 8,804
  • 9
  • 59
  • 90
  • You _can_ enable per language, like so: https://stackoverflow.com/a/53678794/6530134, so just for your javascript files. Closer, but not for a *single* file – Timothy G. Aug 24 '21 at 12:05
  • 1
    @TimothyG. The feature request for specific files is tracked [here](https://github.com/microsoft/vscode/issues/112280). – Wenfang Du Aug 25 '21 at 13:06

0 Answers0