|
From: | John W. Eaton |
Subject: | Re: Indentation of current line or selected blocks in the code editor? |
Date: | Tue, 7 Nov 2017 17:43:27 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
On 11/07/2017 04:00 PM, Torsten wrote:
In Octave editor, <Tab> indents line/selection, <Shift>+<Tab> unindents line/selection.
I see that tab does indent by a fixed amount when the cursor is before the text on the line. If the cursor is in the middle of the text, it inserts spaces at the location of the cursor instead of indenting the line (that's the behavior I expect from using Emacs, anyway).
For single lines, shift+tab just moves the cursor back, not the text on the line.
For selections it does appear to work, but it is a fixed indent, not sensitive to context.
I'm looking for something that will indent the code according to syntax, so that the bodies of loops and conditionals will be neatly aligned automatically, as a pretty printer would.
jwe
[Prev in Thread] | Current Thread | [Next in Thread] |