Atom Editor: Soft-wrap like sublimetext in Atom
Asked Answered
S

4

12

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

Sphene answered 17/2, 2016 at 10:51 Comment(0)
I
29

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

Inkwell answered 29/2, 2016 at 13:44 Comment(2)
Thanks for the answer. Could you also add how I can add a keyboard shortcut to toogle soft wrap in Atom. I have been trying to do that for some time now, but no luck. I want to assign the key alt + z to atom for toggling soft wrap.Chinua
@PromisePreston add this to your keymap.cson: 'atom-text-editor': 'alt-z': 'editor:toggle-soft-wrap' (see this)Safari
M
0
  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 .
Marsala answered 16/7, 2021 at 9:45 Comment(0)
V
0

This worked for me.

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

enter image description here

Vashtivashtia answered 30/8, 2022 at 6:7 Comment(0)
P
0

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
Postconsonantal answered 30/3, 2024 at 9:1 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.