How to disable Auto-Formatting in .sol files
See original GitHub issueHi @juanfranblanco,
I have a problem that has been bugging me for some time now with vscode-solidity
: somehow auto-formatting is configured for my solidity files, even though I never enabled an auto-formatter and even though I never installed or configured prettier-solidity
.
As far as I understand, auto-format should only be an option if you intentionally configured it using prettier-solidity.
So my question: Does some auto-formatting ship with vscode-solidity standalone and how can I disable it?
Sometimes I accidentally CMD + Alt + F
which I am used to doing in my JS files to use Prettier. But I dont want any formatter to format my Solidity files. But somehow some Formatter is doing something. Even after I disabled Solidity language in the normal Prettier extension to be explicit, my Solidity files still had an auto-formatter configured somewhere. So I think it must be somewhere in the vscode-solidity extension.
The reason I do not want to use that formatter is because it does not adhere to the Solidity Style Guide.
I would appreciate your help and input on how to disable all formatting for the solidity extension.
Thank you!
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top GitHub Comments
Thanks for the great work. I really like the vscode-solidity extension and I ve been using it pretty much every day of the last year.
@gitpusha no I don’t work on that project, so yes please raise that issue there. I mentioned it in a comment, but it deserves an issue, and surely your feedback. It is early stages for the prettier Solidity, but I believe is going to be “pretty” good.