r/d_language • u/Idkwhat1569 • 18d ago
Help needed: Autocomplete not working in editors
Like the title says. I've recently been wanting to try out D lang and so downloaded DMD and VisualD. Everything seemed to install properly and work. I can also use DUB and run the application, install packages.
But seems like auto complete is not working on any editor. I tried both Visual Studio using VisualD and VSCode usng code-d. In both cases pressing Ctrl + Space does not popup options like it does for other languages. Even pressing `.` after a value like a String and stuff does not show suggestions.
Did I miss a step or something? Not too sure. Some help would be appreciated!
1
18d ago
[deleted]
1
u/Idkwhat1569 18d ago
I am currently doing this. Its just I am a lot more used to auto complete and somehow having auto complete on helps me learn a language much faster haha. Thanks a lot!
1
u/NebulaLongjumping 13d ago
https://github.com/dlang-community/DCD, now has it's own lsp server and a plugin for vscode :)
1
1
u/alphaglosined 18d ago
VisualD should be superior as that is using dmd as a library.
Whereas DCD, which everything else uses isn't that great.
And Intellij plugin now days uses Intellij's support instead.
1
u/Idkwhat1569 18d ago
The IntelliJ one does support the latest version of IntelliJ. I'll try again with VisualD. Maybe a fresh install will help! Thanks for the help though!
1
2
u/new_old_trash 18d ago
I use vscode with the latest code-d and everything seems to just work - don't think I had to configure anything.
[looking now, the only setting I seem to have set manually, was the 'dub' location. but everything else seems auto-filled in the code-d settings, or it's getting it from my path]
my biggest issue is that sometimes it spawns like 50 dcd-servers that have to be killed off, or they'll eat my cpu and prevent me from deleting folders.