mattiascibien / dlang-vscode

Support for the D Programming Language for Visual Studio Code
MIT License
38 stars 10 forks source link
dcd dfmt dmd dscanner dub dustmite gdc ldc vscode

D Support for Visual Studio Code

NOTICE: As this extension is not longer under active development it is suggested to migrate to a much more

active project like vscode-dls

and code-d

Build Status (Linux) Build Status (Windows) Dependency Status codecov

D Language Page: https://dlang.org/

Features

In order to use DCD, dfmt, Dscanner, dfix and D Profile Viewer you must have Dub installed on your system. Dub will then fetch, build and use the packages automatically.

Though this extension lacks a debugger integration, debugging can easily be done using the general purpose Debug extension. After creating a debug configuration and the default dub tasks, simply change the name of the executable and add "preLaunchTask": "build" to build the project when debugging.

Extension Settings

Note: these dfmt formatting options have yet to be implemented in dfmt itself and won't affect formatting for now:

Extension Commands

Commands in the Dlang Actions group are meant for automatic problem fixing.

Manual installation

You have to install the SDLang extension in order to get dlang-vscode to work (it is an extension depency).

git clone https://github.com/dlang-vscode/dlang-vscode
git checkout development # if you want to install the latest development version
cd dlang-vscode
npm install
vsce package
code dlang-<version>.vsix

Troubleshooting

TODO

Original code

This extension derives from the original TextMate bundle for D located here