Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Atom Editor: Soft-wrap like sublimetext in Atom

Why Atom can't soft-wrap code like sublime text? I want full screen code but soft-wrap. that means the end of line and close minimap cut line. How i can do that in atom?

enter image description here

like image 618
Sajad Avatar asked Feb 17 '16 10:02

Sajad


People also ask

Which is better sublime text or Atom?

Sublime is way advanced than the Atom when it comes to performance. As they say, size can make or break a software tool. Atom being the heavier in size is slower than Sublime Text. It shows response lags issues when it comes to jumping between multiple files.

What is wrap guide in Atom?

The wrap-guide package places a vertical line in each editor at a certain column to guide your formatting, so lines do not exceed a certain width. By default, the wrap-guide is placed at the value of editor. preferredLineLength config setting. The 80th column is used as the fallback if the config value is unset.


1 Answers

There are a few settings that can affect soft wrapping in Atom. They are all in the Settings view, accessed by pressing ⌘, (command+comma) if you're using the default keybinds on OS X.

First, to enable soft wrapping, check the "Soft Wrap" checkbox. This will enable soft wrapping at the edge of the window:

Soft Wrapping at Edge

If you want to soft wrap at the line down the right side of the editor, check the "Soft Wrap At Preferred Line Length" checkbox:

Soft Wrapping at Preferred Line Length

The line indicates your preferred line length, and you can change its position by editing the number under "Preferred Line Length," which affects wrapping with the above option enabled:

Wrapping with New Preferred Line Length

Finally, if you want the wrapped lines to be indented a bit, you can set a value in the "Soft Wrap Hanging Indent" option:

Soft Wrap Hanging Indent

like image 176
Michelle Tilley Avatar answered Oct 14 '22 16:10

Michelle Tilley