Failed to set word wrap in Sublime Text 3

I get this error when trying to enable word wrap:

Error trying to parse settings: Unexpected character, expected a comma or closing bracket in Packages/User/Preferences.sublime-settings:3:13 

This is the code in my Preferences.sublime settings:

 { "ignored_packages": "word_wrap": "true", [ "Vintage" ] } 
+7
sublimetext3 word-wrap
source share
3 answers

Try the following:

 { "ignored_packages": [ "Vintage" ], "word_wrap": true } 

I changed two things:

  • Put "Vintage" inside the list of ignored packages.
  • Removed quotes around "true" in "word_wrap": "true" .
+19
source share

You can also install it manually, without code, just go to Sublime Text to check the menu, click on the browse menu and there click on the word wrap.

For a more detailed image check below.

enter image description here

+9
source share

All of the above solutions (default settings and user settings) can be overridden with syntax-specific settings. Settings> Settings - Specific Syntax

They relate to the type of file you are currently using. eg. Perl.sublime settings. Add this to the file:

 { "word_wrap": true } 
+2
source share

All Articles