Ctrl-Tab indents the current line or all selected lines.
(Ctrl-A selects all the lines in a file.)
Cheers,
Phil
Thanks Phil
> Ctrl-Tab indents the current line or all selected lines.
Cool - do you know how to unindent, comment, uncomment a block as
well ?
It something that is very easily available in AdaGIDE (key+buttons)
and that woud be great in GPS.
Gautier
Yes, ctrl+- and ctrl+_ (to comment/uncomment), all this is in the Edit
menu with the corresponding key short cut displayed :)
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net - http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
Actually, Ctrl-Tab *reformats* the current or selected lines. That may involve
indenting, unindenting, or leaving the indentation the same.
--
Jeff Carter
"Unix and C are the ultimate computer viruses."
Richard Gabriel
99
I think I twisted the english language a bit when I said 'correctly
indent' when I should of said 'correctly format'. I asked because I've
been using gnat-gps for the first time to do an ada project moving
from gedit and vi.
I'd recommend you also try using the ASIS based "gnatpp" pretty-
printer. It's very configurable (using a Pretty_Printer package in
the GNAT Project file) and is what you probably want to use once the
your code is complete and correct enough to compile. You can invoke
it from GPS's Edit menu. The formatting options are described in the
GNAT Users Guide.
- Britt