Code formatting and documentation on hover in VisualD?
Bastiaan Veelo
Bastiaan at Veelo.net
Wed Nov 18 20:41:46 UTC 2020
On Monday, 20 July 2020 at 14:03:32 UTC, blizzard wrote:
> I set up dfmt using
> https://docs.microsoft.com/en-us/visualstudio/ide/managing-external-tools?view=vs-2019
> Works good enough for me :D
Nice! For the impatient VS 2019 user:
Tools -> External Tools...
Add
Title: d&fmt
Command: C:\D\dmd2\windows\bin\dub.exe
Arguments: run dfmt -- --inplace $(ItemPath)
Initial Directory: $(ItemDir)
v Close on exit
Now Alt+T Alt+F will reformat the current file on disk. If you
forgot to save the file first, VS will warn that the file changed
on disk and ask if you want to discard unsaved changes; Reply No,
save and try again.
-- Bastiaan.
More information about the Digitalmars-d-ide
mailing list