Replies: 1 comment 2 replies
-
It looks like Juan Blanco's vscode-solidity extension has support for
This is not documented anywhere, however. I will a PR in the Foundry Book repo to document the set-up. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Foundry Book documents the
forge fmt
command here, but it doesn't give any indication for how to configure it to automatically format on Save in VSCode.What would one typically do to enable format on save in VSCode is add the following settings:
The trouble is that the
defaultFormatter
setting expects the name of an extension, but there isn't any bespoke Foundry VSCode extension at the moment. So it seems to be that it is not currently possible to format on save withforge fmt
in VSCode - but I opened this discussion to make sure that my understanding is correct?I am not sure if it possible to go around this limitation with tasks. It's definitely possible to add a task for running
forge fmt
, but that wouldn't help much because the user would have to remember to run the task by themselves.Beta Was this translation helpful? Give feedback.
All reactions