comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: pretty-print case-when GPS confusion
Date: Mon, 17 Aug 2020 07:25:05 +0200	[thread overview]
Message-ID: <rhd4bi$d7a$1@dont-email.me> (raw)
In-Reply-To: <d59ad377-0191-4d01-9f07-9276e1a714d3n@googlegroups.com>

On 8/17/20 1:22 AM, Micah Waddoups wrote:
> So, I have been happy with my pretty-printing/formatting within GPS for a long time, but there is one thing that really gets me irritated because it tends to run the text out of the visible area.  That is the inconsistant indenting of "when" within the scope of "case".  Sometimes it indents, which I do NOT want, and sometimes it does not indent.  I know the mechanics of the decision and I can manually tweak it, but it is a persistent problem.  I use case statements often enough that when it behaves against my wishes, just a few layers of case statements tends to go off the screen to the right and I find the result more difficult to read.
> 
> Does  anyone have a simple solution or switch to use that I have overlooked?

Under Edit=>Preferences=>Editor=>Ada is Case Indentation. Choosing Non RM Style 
seems to consistently give what you want.

If you want similar (non) indentation of "when" under "exception" then you're 
out of luck.

-- 
Jeff Carter
"Apple juice and Darvon is fantastic together."
Play It Again, Sam
127

      reply	other threads:[~2020-08-17  5:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-16 23:22 pretty-print case-when GPS confusion Micah Waddoups
2020-08-17  5:25 ` Jeffrey R. Carter [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox