New indents in Visual D not tab aligned
Joseph
JE342 at gmail.com
Wed Sep 20 16:03:36 UTC 2017
On Wednesday, 20 September 2017 at 03:51:45 UTC, Joseph wrote:
> On Sunday, 17 September 2017 at 06:00:17 UTC, Rainer Schuetze
> wrote:
>>
>>
>> On 16.09.2017 21:09, Joseph wrote:
>>> On Saturday, 16 September 2017 at 16:21:29 UTC, Rainer
>>> Schuetze wrote:
>>>>
>>>>
>>>> On 16.09.2017 13:30, Rainer Schuetze wrote:
>>>>> [...]
>>>>
>>>> I implemented this in
>>>> https://github.com/dlang/visuald/releases/tag/v0.46.0-beta1
>>>
>>> Thanks, I still get an issue
>>>
>>> void foo(()
>>> {
>>>
>>> })
>>>
>>> (can't paste it properly here because formatting is not
>>> retained).
>>>
>>> Basically aligns with the second ( still ;/
>>>
>>>
>>
>> That's as expected and shown above. The code inside the braces
>> will be aligned on tab stops. I think this is a good
>> compromise avoiding an extra indentation.
>
>
> Ok, thanks. That was a good choice there! That is actually
> better! Didn't think of having them indented differently.
Thanks again! It's working. I have two more request when you get
some time:
1. The above works fine but sometimes one ends up with the {
right before tab stop resulting in only a single space looking
tab. Could you add another tab if the distance between the { and
the tab is less than half a tab width? Basically this is to give
it more visual space so it is a little more "indented" looking.
2. When hitting tab, I have to hit it many times to move to the
indentation. I have smart tabs on and all that, but some of my
code I have to indent about 10 times just to get it to the the
tab indentation of the current block
Thisisaverylongfunctionname(()
{
*sometimes I have to hit tab a bunch just to get started at this
block.
})
It might be nice if the tabbing could look forward and backward
to see what the natural indentation is and skip having to insert
so many tabs manually. Instead it counts the number of tabs need
and adds them all at once. If we need to go back for any reason,
we can then use backspace.
More information about the Digitalmars-d-ide
mailing list