Prev: Can some please advice on how to integate GNAT GPL 2010 withVisual Studio?
Next: Multicore, parallel / concurrent programming and Ada blog material
From: Jeffrey R. Carter on 7 Jul 2010 18:30 On 07/07/2010 01:32 PM, Gautier write-only wrote: > On Jul 7, 7:27 am, Phil Thornley wrote: > >> Ctrl-Tab indents the current line or all selected lines. > > Cool - do you know how to unindent, comment, uncomment a block as > well ? 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
From: tonyg on 8 Jul 2010 05:27 On Jul 7, 11:30 pm, "Jeffrey R. Carter" <spam.jrcarter....(a)spam.acm.org> wrote: > On 07/07/2010 01:32 PM, Gautier write-only wrote: > > > On Jul 7, 7:27 am, Phil Thornley wrote: > > >> Ctrl-Tab indents the current line or all selected lines. > > > Cool - do you know how to unindent, comment, uncomment a block as > > well ? > > 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.
From: Britt Snodgrass on 8 Jul 2010 21:49
On Jul 8, 4:27 am, tonyg <tonytheg...(a)googlemail.com> wrote: > > 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 |