0

On Notepad++, if I select the first character of a paragraph, and press the 'spacebar', the entire paragraph gets indented by a space. How should I configure it so that only the first character moves one character to the right?

E.g., if I hit spacebar at this cursor location:

enter image description here

I get something that looks like this:

enter image description here

Even though I want only the first word ("Start") to have a space in front of it.

2 Answers2

2

Preferences > Editing > Line Wrap: Default works for me in version 7.5.9

0

Updated Answer

Per the answer by Felipe G. Nievinski (below), with current versions of Notepad++ (e.g. v. 7.9.1 - November 2020 or v 7.9.2 - December 2020), you can change the Line Wrap settings under Settings → Preferences → Editing to Default to help correct this issue:

ex. Aligned (All Word wrap Lines Indented)

Aligned Line Wrap Settings - Screenshot

ex. Default (First Word wrap Line Indented)

Default Line Wrap Settings - Screenshot


Original Answer

The problem you are experiencing is likely due to word wrapping and extremely long sentences without line breaks (your "paragraphs").

To fix this behavior, select View → Word wrap and toggle it off (you can toggle the icon on the toolbar as well). You should be able to indent lines normally.

Assuming your paragraphs contain few or no line breaks, you may want to add these manually:

  • You can use Edit → Line Operations → Split Lines (CTRL+I) to split the lines (add line breaks) approximately where the word wraps would be (i.e. near the edge of the main window).

  • Per this SuperUser answer, you can use the following regex to insert newlines after approximately X number of characters (e.g. 80):

      Find:      (?<=.{80})\s
      Replace:   $0\n 
    
Anaksunaman
  • 18,227