Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to set up word wrap in Sublime Text 3

I'm getting 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"
]
}
like image 380
Jeffrey Cunningham Avatar asked Sep 24 '15 03:09

Jeffrey Cunningham


People also ask

How do I enable word wrap in Sublime Text?

You can also set it manually, without code just go to Sublime Text check the menus, click on view menu and in there click on the word wrap.

How do I wrap a code in Sublime Text 3?

If you click on “View” in the top bar again, then click “Word Wrap Column” you can select how wide you want the text to be before wrapping around.

What happens when word wrap is enabled how do we enable it?

Word wrap is often set up by default and can be turned off by enabling hyphenation, clicking the word wrap button, or adjusting the program's settings. The picture shows an example of what a word wrap button may look like or resemble for programs that have the option.


2 Answers

Try this:

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

I changed two things:

  1. Place "Vintage" inside the list of ignored packages.
  2. Removed the quotes around "true"in "word_wrap": "true".
like image 146
adilapapaya Avatar answered Nov 08 '22 12:11

adilapapaya


You can also set it manually, without code just go to Sublime Text check the menus, click on view menu and in there click on the word wrap.

For more check the image below.

enter image description here

like image 38
Inzimam Tariq IT Avatar answered Nov 08 '22 12:11

Inzimam Tariq IT