Skip to content

Project Creation

Jan Jurzitza edited this page Oct 4, 2016 · 3 revisions

Creating a new D project using code-d is very easy. You have the option to select from multiple templates to get you started with your application.

First hit Ctrl-Shift-P to open the command palette and enter Create new Project

You will be prompted with a list of templates for you to base on. The most simplest is Empty Console Application, which is just an entry point.

Now if you currently have no folder open you will be prompted to select an empty folder to create the project in. Click the button at the top to proceed. If you already had an empty folder open it will just create the project in there. If the folder already contained some files, code-d will ask you if you want to merge the files into the folder. Existing files will be kept and not updated.

You have now your project ready. To test it out, simply run Run project in the command palette or click the small play button in the status bar. Alternatively you can just run dub in the console or in the integrated terminal in vscode.

If everything went right, your selected project will start now. The web server templates are always listening on http://127.0.0.1:3000 for requests.

Congratulations, you now have created a D project which you can extend from now. The functions code-d provides will help you on your way to become a great D developer.

If you want to change how dub builds your project or where it generates the files, check the Dub Project Settings page

Clone this wiki locally