Bug 17151 – Auto Completion should suggest missing imports
Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P1
Component
visuald
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2017-02-07T16:27:29Z
Last change time
2019-05-11T15:14:45Z
Assigned to
No Owner
Creator
Scellow33
Comments
Comment #0 by Scellow33 — 2017-02-07T16:27:29Z
Hello
Auto completion doesn't work, i installed latest verison: Visual D 0.44-beta2
I can create the project, but completion doesn't work
for example:
I want writeln("Hello Test");
if i type: writl i expect to see a popup with list (code completion) but nothing happens
Comment #1 by Scellow33 — 2017-02-07T16:57:23Z
Oh nevermind, i forgot to import std.stdio
What would be nice is import suggestion like in VS or IntelliJ for C#/Java
That will help beginers like me a lot!
Comment #2 by r.sagitario — 2017-02-08T07:50:33Z
If you execute "Build Phobos Browse Info" from the Visual D menu and enable "Expansion from JSON browse information", the completion list will also show the available symbols without considering the context. Depending on the other expansions options, you might have to press Ctrl+Space again.
I agree, having the info of the required module in the completion list would be helpful. Adding the appropriate import automatically is also requested in issue 13912.
I'll update the title a bit here.
Comment #3 by turkeyman — 2019-05-11T15:14:45Z
*** This issue has been marked as a duplicate of issue 13912 ***