-
-
Notifications
You must be signed in to change notification settings - Fork 47
Dub Project Settings
code-d provides a powerful GUI to edit dub.json files, which can be very useful for people who don't have any experience for dub. It also adds powerful auto-completion for dub.json as well as dub.sdl files for more experienced users.
To access the project settings either run Open project settings
in your command palette (Ctrl-Shift-P) or select the dub.json you want to edit and hit the button at the top right to open the editor.
You will now be presented with the current settings for your project.
Just change some values and it will automatically change the values in your dub.json. In case you mess up or code-d breaks something, it will always create a backup file called dub.json.bak
which contains the project settings before the last few value changes (before all changes in 3 seconds).
The auto-completion in the dub.json file will also help you understand how all the settings affect the file. Additionally the text editor mode also has error checking catching most bugs and auto completion on dependencies.