SRL Archive - Suggestions

Quick Align


anonymity

2011-11-09 14:33:28

- Select an area (or ctrl+a), press some key command (ex: ctrl+a+r) and the text would be aligned to some standard (2 spaces) indentation.

EX: Selecting the following text

function Herp(derp: integer): integer;
var
x: integer;
begin
x := 0;

while (x < derp) do
begin
x := (x+2);
x := (x-1);
end;

result := x;
end;

- and after realignment

function Herp(derp: integer): integer;
var
x: integer;
begin
x := 0;

while (x < derp) do
begin
x := (x+2);
x := (x-1);
end;

result := x;
end;

Yago

2011-11-09 20:31:01

I support this.

i luffs yeww

2011-11-09 21:11:55

Just a tip, if you highlight code and press tab it indents by two spaces, shift tab "undents" (lol) by two, as well. Not exactly what you asked for, but it's helpful.

anonymity

2011-11-09 21:24:24

From: i luffs yeww
Just a tip, if you highlight code and press tab it indents by two spaces, shift tab "undents" (lol) by two, as well. Not exactly what you asked for, but it's helpful.


Yeap, knew that one. Pro-tip for others though! =]

I just thought it would be nice:
1. for beginners.
2. for large scripts, if one were to lose their indentation alignment, that would fix it.
- ctrl+a _then_ ctrl+a+r
- boom all fixed.

[Nathan]

2011-11-10 01:26:58

this would be so handy. or a tab button that actually worked… thatd be nice too…

Gu3st...

2011-11-10 08:25:04

From: [Nathan]
this would be so handy. or a tab button that actually worked… thatd be nice too…
The tab button works just fine

anonymity

2011-12-06 20:15:47

Yea, tab works fine. But I think it'd still be a really useful feature.