Skip to content
/ code-d Public

Fully featured D language extension for Visual Studio Code using Serve-D

License

Notifications You must be signed in to change notification settings

Pure-D/code-d

Repository files navigation

Code-D

Join the chat: Join on Discord

Adds advanced IDE support for the D Programming Language to Visual Studio Code. Powered by serve-d.

Also available for Atom!

Features

  • Auto-Completion
  • Code formatting
  • Static linting + Build linting
  • Outlining and searching for symbols
  • Refactorings for code diagnostics
  • and much more

Special Thanks

Corporate Sponsors

Development on code-d/serve-d tools is sponsored by

Weka.IO Logo
Weka.IO

If you are looking for a Job with D, check out the companies listed above!

For professional D consulting, programming services or corporate support with D IDE tools, DUB and the ecosystem, contact me through [email protected]

Individual Sponsors

Thanks to the following big GitHub sponsors financially supporting the code-d/serve-d tools:

ZyeByte's GitHub avatar
@zyebytevt

become a sponsor

Development

Thanks to @Hackerpilot for his great IDE software that serve-d built upon.

Thanks to the D package registry, especially @s-ludwig for their great package manager and library "dub".

Thanks to all contributors to code-d and serve-d.

Installation

Prerequirements:

D compiler with environment variables set. Downloads here, details here

code-d installation

  • Automatic: Open Visual Studio Code and install the code-d extension the normal way:

    ext install webfreak.code-d
    

    Or search for code-d and select the "D Programming Language (code-d)" extension from the list.

  • Manual (if the automatic way doesn't work)

    # discouraged if you are trying out code-d, you should preferably install it from the marketplace
    
    cd ~/.vscode/extensions/
    git clone https://github.com/Pure-D/code-d.git
    cd code-d
    npm install
    npx tsc -p .
    

code-d will automatically install serve-d, dcd and dub if they are not already installed.

License

MIT - Look in LICENSE.md for more information

Issues

Please submit issues to github

Special developer config

use "d.forceUpdateServeD": true to force an outdated prompt on startup.

use "d.forceCompileServeD": true to force compilation of serve-d instead of downloading pre-compiled releases.