Thread overview | |||||
---|---|---|---|---|---|
|
October 30, 2018 Visual D show the opening bracket info for closing bracket | ||||
---|---|---|---|---|
| ||||
For some languages the IDE will show info about a closing bracket so one knows how it is grouped. The idea is that either a shadow comment is added or a popup when highlighted/selected is shown over the closing bracket which displays the first non-empty line above the opening bracket: statement { } // statement // statement is a shadow comment(not part of the source, grayed out a bit, or a popup) Helps a lot with lots of nesting and one doesn't have to manually add them which isn't robust. |
November 03, 2018 Re: Visual D show the opening bracket info for closing bracket | ||||
---|---|---|---|---|
| ||||
Posted in reply to Michelle Long | On 30/10/2018 17:19, Michelle Long wrote: > For some languages the IDE will show info about a closing bracket so one knows how it is grouped. > > The idea is that either a shadow comment is added or a popup when highlighted/selected is shown over the closing bracket which displays the first non-empty line above the opening bracket: > > statement > { > > } // statement > > // statement is a shadow comment(not part of the source, grayed out a > bit, or a popup) > > Helps a lot with lots of nesting and one doesn't have to manually add them which isn't robust. > Recent versions of VS also shows similar information when hovering the indentation guides. I've created an enhancement request: https://issues.dlang.org/show_bug.cgi?id=19350 |
November 03, 2018 Re: Visual D show the opening bracket info for closing bracket | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rainer Schuetze | On Saturday, 3 November 2018 at 08:17:50 UTC, Rainer Schuetze wrote:
>
>
> On 30/10/2018 17:19, Michelle Long wrote:
>> For some languages the IDE will show info about a closing bracket so one knows how it is grouped.
>>
>> The idea is that either a shadow comment is added or a popup when highlighted/selected is shown over the closing bracket which displays the first non-empty line above the opening bracket:
>>
>> statement
>> {
>>
>> } // statement
>>
>> // statement is a shadow comment(not part of the source, grayed out a
>> bit, or a popup)
>>
>> Helps a lot with lots of nesting and one doesn't have to manually add them which isn't robust.
>>
>
> Recent versions of VS also shows similar information when hovering the indentation guides. I've created an enhancement request: https://issues.dlang.org/show_bug.cgi?id=19350
Thanks. It helps reduce having to write unnecessary code just to be able to make programming easier. Reducing bloat like this goes a long way. Providing this meta info helps.
|
Copyright © 1999-2021 by the D Language Foundation