[Tex/LaTex] indentation as displayed in the editor

editorsformattingindentationtexstudiotext manipulation

Each time I tab, the entire paragraph is indented right, in the Tex editor (TeXstudio), instead of just the start of the paragraph.

How do I set the options of TeXstudio to not indent the whole paragraph in the editor when I tab the beginning of it, only show an ordinary indent? Same thing with spaces before the first word of the paragraph. Moves the whole paragraph right…

How to disable/enable this functionality? I can't find the option…

[Yes, it's useful for papers, and I use automatic indentation of TeXstudio and appreciate this functionality. Merely not when I write mostly text based material.]

Best Answer

In fact, what is happening there is that TeXstudio is indenting the line (not the whole paragraph).

Probably what you are calling paragraph is a single line. So when TXS wraps the line it shows an arrow on the left panel (near the line number) and then if you indent that line the whole block is also indented.

If you want to indent only the first line of the paragraph you have to break the line (just hit ENTER).

See the image:

enter image description here

After compilation, the output contains a single paragraph, since there is no \par or blank line to create a new one.

But the text code is contained only in 3 lines: 14, 15 and 16.

Lines 14 and 16 contain indentation (in my case, length 2; there are 2 dots; you can configure this).

Finally, note the curved arrows to indicate that the line was wrapped.

Related Question