Visual D issues and suggestions

Rainer Schuetze r.sagitario at gmx.de
Wed Oct 24 06:52:04 UTC 2018



On 22/10/2018 23:15, John Chapman wrote:
> On Monday, 22 October 2018 at 17:50:04 UTC, Rainer Schuetze wrote:
>>> * Indent function bodies correctly when generating overrides.
>>
>> I guess you mean indentation if "override" is on the line before the
>> function declaration?
> 
> No - inside a class, if you type "override" then ctrl-space, it shows a
> list of overridable functions. Choose one and it outputs a function
> stub, but the generated body is the same indent level as the
> declaration, e.g.:
> 
>   override protected void myFunction() {
>   super.myFunction(); <- should be indented one level further
>   }

Ah, ok. That's a completion containing newlines that need to be
indented. Should not be difficult to fix.

> 
>>> * Indenting for enum members is sometimes too much.
>>
>> Can you provide an example?
> 
> Funny, I can't reproduce this problem any more.
> 
>> I haven't found a way to format tooltips better than just plain text.
>> What you see is more or less how it is written in the source code.
> 
> It must be possible because the C# editor displays bold and coloured
> text in tooltips. Not essential obviously, but would be nice.
> 

I suspect Microsoft completely reimplemented the tooltips for C# and
don't use the usual VS services. C++ doesn't have these and is similar
to Visual D.

>> What's wrong with the "General->Compilation" option?
> 
> Sorry, I meant in mixed Visual D/C++ projects - unless I'm wrong, all
> the current options there seem to add -c to the command line.
> 

That's how the VC projects work. There is not a big difference any way,
a single step "compile and link" also calls the linker internally.

>>> * Ctrl-click for "Go to definition".
>>
>> I'll have to investigate how a language service is supposed to support
>> that.
> 
> Again, the C# and C++ editors have it, so it should be doable. If the
> ctrl key is pressed it underlines the text under the cursor, making it
> clickable like a hyperlink, allowing you to navigate to the definition.

There seems to be a VS extension that used to do that until Microsoft
integrated it with VS2017 15.6.

> 
>> Do you still have trouble with the beta with respect to crashes
>> (probably due to static foreach)?
> 
> No crashing here, and static foreach works fine for me - perhaps that
> was another user?
> 

Ah sorry, confused that with
https://forum.dlang.org/post/xayhoysgafpgiflomaes@forum.dlang.org



More information about the Digitalmars-d-ide mailing list