1

One of the limitations of the text editor is encountered when working with text that includes indentation.

For instance, if I type in 4 spaces to start a new level of indent, I have to type in 4 spaces for every subsequent line with the same level of indent. This gets worse if the text includes multiple levels of indentation; 3 levels of indent would mean typing in 16 spaces which is not uncommon especially if you are working with source code on sites like Stack Overflow. It would be great if the cursor stays at the same level when I press Enter \ Return.

Of course, you can always use another text editor, but it'd be great if the editor here could do that.

  • 4
    How often to you write source code directly in SO, compared to using your favorite editor and testing it works before pasting it into an SO window? – nohillside Jan 6 at 7:32
  • 5
    I use ctrl+k after finished writing code generally. – Abhishek Gurjar Jan 6 at 7:52
  • Stack Exchange can't be the only place on the Internet in need of a more advanced (code) inline editor. Aren't there some examples of front runners regarding this on the entire Internet? – P.Mort. - forgot Clay Shirky_q Jan 6 at 14:41
  • 2
    Some call this feature auto-indentation or auto-indent. – P.Mort. - forgot Clay Shirky_q Jan 6 at 14:53
  • Press Shift+Enter. Or simply use code fences instead. – Sebastian Simon Jan 6 at 15:05
2

If I understand you correctly, you're not asking for indenting any

Code

which requires one empty line plus 4 blanks.

According the documentation, indenting is not possible so far.

You can do either by copy 4 blanks and paste them required times. But you can ask for a feature request. However, I don't expect, that it get's accepted.

  • indenting is not possible so far Why not? It's possible.. – ppwater Jan 6 at 13:18
  • 1
    Indenting in general is possible of course, but not in the way the requestor asked for. – D. Lohrsträter Jan 6 at 13:30

You must log in to answer this question.

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