Ask HN: D programmers, what does your development setup look like?
For D programming, I was wondering what sort of setup do people have in terms of code editor, plugins for editor and build system?
Do you have features like autocomplete and refactoring in your environment?
I recently started exploring D and I use VSCode and the code-d plugin with dub or simply dmd -run for small files, but was wondering what more seasoned developers use.
28 comments
[ 4.6 ms ] story [ 139 ms ] threadUsually works decently unless you tinker with std library / runtime where you are mostly on your own.
https://wiki.dlang.org/Editors
See the wiki page for reference of features supported by different editors. The other neat thing about VS Code for people who love vim: with Neovim you can use the full blown power of VIM as the backend for editing in VS Code whilst using the plugins from VS Code and Neovim.
https://github.com/VSCodeVim/Vim#neovim-integration
I personally have not gone full dive on it yet though. I think once I can use Neovim on every major IDE / Editor, I might go fully into Neovim just for consistency in editing.
I almost exclusively code with JetBrains IDEs for almost every other language, especially Go. The way GoLand feels handcrafted for Go is phenomenal for me.
I've also used Spacemacs for D but Emacs is always hit or miss for me to setup Spacemacs so I gave up on Emacs, too much overhead, if I have to go beyond the install steps given by Spacemacs to make it work, it's not worth my time period.
My biggest appeal for Emacs is TRAMPS, where I am able to edit files after setting up Emacs once.
I forgot to add this on my post which I linked to in a reply to someone else's comment but here's a list of editors and what they support for D:
https://wiki.dlang.org/Editors
The reason for choosing the Dlang plugin over code-d is pretty petty; it's just because I prefer Dlang's syntax highlighting, since it highlights class names in a teal color.
[0]: https://marketplace.visualstudio.com/items?itemName=LaurentT...
I still like code-d and would recommend anyone to try both before deciding for yourself. I used code-d for about 3 years.
For building I use dub. For debugging I use built-in C++ Native support in VSCode.
You also will want to change some shortcuts, so for example you can switch to terminal and back with CTRL+~, in order to run/test your app quickly.
I would also like to have a full fledged IDE like i have for Python with pycharm, but currently nothing is available.
* https://github.com/buggins/dlangide
Well I'm a bit biased because I made code-d but nonetheless I would say it works really good for day-to-day usage for any experience level and I'm recommending it to everyone I show D for the first time too because it is very friendly for beginners and people who don't want to configure a lot.
[0] https://marketplace.visualstudio.com/items?itemName=webfreak...
[1] https://forum.dlang.org/post/mailman.344.1577092366.31109.di... [2] https://plugins.jetbrains.com/plugin/8115-d-language/
I would love to see CLion support get better since we could use the debugger.
D should have a good CLion plugin with support for their debugger, hopefully we'll get something in 2020, but i seriously doubt it