Dark star
Dark star

Reputation: 5832

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

Upvotes: 12

Views: 15452

Answers (4)

chendu
chendu

Reputation: 829

This worked for me.

The number is: 99999999999999999999 (I think we can add 2 more 9-s to it).

enter image description here

Upvotes: 0

Ahmad Sharif
Ahmad Sharif

Reputation: 4435

Add the following to your keymap.cson: Reference

'atom-text-editor':
  'f10': 'editor:toggle-soft-wrap'

Second Method

–––––––––––––––––––––––––––––––––––––––––––––––––

Open config.cson. Edit>Open Your Config.

  editor:
    softWrap: true

Upvotes: 0

Geetika
Geetika

Reputation: 1

  1. click on the file in your atom editor, there you can see settings option.
  2. click on the settings option or you can use the shortcut control+comma(ctrl+,).
  3. Then click on the editor tab.
  4. scroll down below and you get the option called soft wrap.
  5. click on the soft wrap option .

Upvotes: 0

Michelle Tilley
Michelle Tilley

Reputation: 159105

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

Upvotes: 29

Related Questions