Zeus + dfmt

Find Tips and tricks on how to better use the Zeus IDE. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Post Reply
jussij
Site Admin
Posts: 2483
Joined: Fri Aug 13, 2004 5:10 pm

Zeus + dfmt

Post by jussij » Fri Mar 20, 2015 1:11 am

The dfmt utility is code formatter for the D language and it's possible to configure Zeus to run gofmt each time the file is saved.

To make this work perform the following steps:

1: The first thing you need to do is build dfmt and add the resulting executable to the to the Zeus install folder.

The dfmt code found here: https://github.com/Hackerpilot/dfmt

2: Install the script found here.

That link contains details on how to install the script.

3: Use the Options, Document Types menu and edit the D Document Type and in the Triggers section add the d_dfmt.lua macro saved from the previous step to the File Save Postfix trigger field.

So How Does it Work?
The Zeus file save trigger allows a macro to be attached to any file save event and in this case the d_dfmt.lua macro is configured to fire whenever the file is saved.

NOTE: Other Zeus, D language specific features can be found here:
Using the Dscanner (D Language) inside Zeus
Using the D Programming Language with Zeus
Using the DCD with Zeus

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 1 guest