You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jan Jurzitza edited this page Dec 13, 2019
·
5 revisions
Installing code-d and all its dependencies can be done by simply installing code-d (ext install webfreak.code-d) from the VSCode marketplace inside the editor.
Simply click this and hit the Install button.
Afterwards code-d will install its dependencies (serve-d and DCD) and D should be ready to use. You might need to reload the window on first installation if things don't work correctly. code-d will only initialize when a D project is opened. Simply open a .d file inside some folder or have a folder opened with a dub.json or dub.sdl file.
Note: code-d only works when a folder is opened inside VSCode and not just loose files.
First time installing D
If you don't have D installed, code-d will open the D compiler download page for you where you simply select your compiler of choice and install it for your OS.
If you are on Windows, you will probably need to restart your PC after D is installed so it is accessible in the PATH from within VSCode and its extensions.
After you are done, reload VSCode (F1 -> Developer: Reload Window) and open a D project, everything should work now.