Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable word-wrap by default in Sublime "Find in Files" results

Tags:

sublimetext

Sublime's "Find in Files" (CTRL-SHIFT-F or CMD-SHIFT-F) search results always have word wrap on by default. This is really annoying whenever a file containing a single huge line of text gets caught in the results, since:

  • wrapping the huge line takes ages and slows Sublime (and perhaps the whole computer) to a crawl, and
  • it makes the results difficult to read, since the wrapped line may take up screens and screens of space

It's possible to disable word-wrap from the "View" menu, but this change doesn't persist after closing the "Find Results" tab.

Is there a way to turn off word wrap for all Find Results?

like image 787
Mark Amery Avatar asked Dec 14 '16 12:12

Mark Amery


People also ask

How do I turn off Word Wrap in sublime?

To disable Word Wrap in Sublime Text 3, you need to click on “View” in the top bar, then untick “Word Wrap”. This will completely disable the Word Wrapping feature. Click on “View” in the top bar, then untick “Word Wrap”.

How do I change the default Word Wrap in Sublime Text?

The only way to enable word - wrap is to do it on a per file basis, by going to View -> Word Wrap (tick).

Which attribute of the tag is used to turn off the word wrapping?

HTML | <td> nowrap Attribute The HTML <td> nowrap Attribute is used to specify that the content present inside the cell should not wrap. It contains the Boolean value.

How do you wrap text 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.


1 Answers

Yes, with the Find Results tab active (ensure the "Use Buffer" option is enabled in the Find in Files panel to get a tab instead of an output panel when you perform the search), you can navigate to the Preferences -> Syntax Specific menu item and enter:

"word_wrap": false, 

and save it. This will ensure that word wrap is always disabled for Find Results.

(You can always turn "Use Buffer" off again afterwards, it's only necessary for the menu item to open the correct syntax specific settings file, which is Packages/User/Find Results.sublime-settings.)

like image 135
Keith Hall Avatar answered Oct 29 '22 10:10

Keith Hall