Sublime Forum

Word-wrap help

#1

Hello, I am having problems with making my word-wrap auto option.

I am using

“word-wrap”: true;

in my Preferences > Settings-User file, but every time I open a new file or work on an exiting file, the code for word-wrap is not being recognized. I want this feature to be auto so I do not have to manually turn it on every time I open Sublime.

Can anyone offer any help with this? I have seen YouTube videos doing this exact same thing and it works for them oddly. Here is the full code in my Settings-User profile:

{
“color_scheme”: “Packages/Material Theme/schemes/Material-Theme.tmTheme”,
“font_size”: 22,
“word-wrap”: true,
“ignored_packages”:
[
“Vintage”
],
“tab_size”: 2,
“theme”: “Material-Theme.sublime-theme”,
“translate_tabs_to_spaces”: true,
}

Any help would be much appreciated.

0 Likes

#2

Probably the final comma before the last brace should not be there.

1 Like

#3

Thanks for replying. I tried your suggestion (removing the comma after “translate_tabs_to_spaces”: true), but still no luck. Even after quitting and restarting Sublime.

If it took, word-wrap would have a check mark by it in the “View” menu like when you manually enable it, but it still shows it as being unaffected

0 Likes

#4

[UPDATE] Looks like it has taken finally! It took closing and opening Sublime a few times. I even tested opening different files and folders upon launching and Word Wrap had the check mark next to it by default.

Hopefully it holds…thanks again for your help!

0 Likes

#5

the setting is word_wrap, not word-wrap:wink:

2 Likes

#6

See, that’s what I love about this stuff (programming) :stuck_out_tongue_closed_eyes:

It should definitely work now, hahaha. Thanks Keith!

1 Like