Hi,
In 'emacs', I can select some lines of code an perform a 'Indent Line or Region', which indents the lines selected.
How can I do that in 'geany'?
Thanks a lot, Rodrigo
Hello,
2007/11/16, Rodrigo Canellas rodrigo.canellas@gmail.com:
In 'emacs', I can select some lines of code an perform a 'Indent Line or Region', which indents the lines selected.
I don't known what emacs exactly do in this case, but in geany, select a block and use TAB/Shift+TAB will change indentation of this block. http://geany.uvena.de/manual/0.12/index.html#keyboard-commands
Regards JJL
Hi,
Thanks, but AFAIK, this will shift the selected block left/right, correct?
'emacs' indents the lines inside the selected block. For example:
int f() { int j = 3; int r =-9;
int y = j * r;
return y; }
Suppose indentation length is 2, that command in 'emacs' would do:
int f() { int j = 3; int r =-9;
int y = j * r;
return y; }
Thanks a lot!
2007/11/16, JJL buggerone@gmail.com:
Hello,
2007/11/16, Rodrigo Canellas rodrigo.canellas@gmail.com:
In 'emacs', I can select some lines of code an perform a 'Indent Line
or
Region', which indents the lines selected.
I don't known what emacs exactly do in this case, but in geany, select a block and use TAB/Shift+TAB will change indentation of this block. http://geany.uvena.de/manual/0.12/index.html#keyboard-commands
Regards JJL -- http://kubuntu.free.fr/blog _______________________________________________ Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
Hello,
Thanks, but AFAIK, this will shift the selected block left/right, correct?
yes.
'emacs' indents the lines inside the selected block. For example:
For that, I'm used to astyle (http://astyle.sourceforge.net/). I used it with SCiTe but not yet tried with Geany. I think it should be quite easy to integrate it via definable commands http://geany.uvena.de/manual/0.12/index.html#send-text-through-definable-com...
Regards JJL
On Fri, 16 Nov 2007 10:27:13 -0200 "Rodrigo Canellas" rodrigo.canellas@gmail.com wrote:
'emacs' indents the lines inside the selected block. For example:
int f() { int j = 3; int r =-9;
int y = j * r; return y; }
Suppose indentation length is 2, that command in 'emacs' would do:
int f() { int j = 3; int r =-9;
int y = j * r;
return y; }
Try the 'Smart line indent' keybinding command. You will need to define a shortcut for it first (I use Ctrl-Alt-I). This will indent all selected lines to the same level as the preceding line. Then you can indent the block manually using ctrl-i or tab (or add shift for unindent).
Regards, Nick