21

How can I change Notepad++ setting so that wrapped lines gets indented automatically?

Right now I have something like this:

some text that wraps to
next line
    some indented text 
that also wraps

What I want to get is:

some text that wraps to
next line
    some indented text 
    that also wraps
1
  • 1
    I just wanted to do exactly opposite. So Line Wrap option to default worked well for me. Apr 29, 2016 at 6:57

2 Answers 2

24

In Settings → Preferences... → Editing set the Line Wrap option to Indent.

4
  • This worked. I was using older version, so did not have the setting available.
    – mythealias
    Oct 7, 2012 at 14:46
  • 1
    Strange, I have to use the Line Wrap setting Aligned to get what is shown in the original question. If I use Indent, the wrapped line is indented 1 step further (to indicate that it is a wrapped line, I assume) Nov 2, 2012 at 18:25
  • For this to work, remember to enable Word wrap from the menu: View->Word wrap
    – matsr
    Sep 16, 2013 at 12:08
  • The amount of indentation may be further customized: docs.notepad-plus-plus.org/index.php/Managing_Line_Lengths
    – Desik
    Oct 16, 2015 at 21:46
0

You need to enable auto indentation in Notepad++:

Settings → Preferences → Misc. → check "Auto-indent".

You can also click the "Show Indent Guide" button for better view.

1
  • 4
    That will auto-indent new lines, but it will not indent wrapped lines. Oct 7, 2012 at 14:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .