-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Beautify Cadence #72
Comments
There is an issue tracking the development of a pretty printer for Cadence in the Cadence repo: onflow/cadence#209. I have been working on an implementation in my spare and documented the status in the issue. It would be nice to finish it, it's ca 2/3 done. Once Cadence exposes a pretty printing function, it could be exported from the Cadence language server, then used here in the Visual Studio Code, and other editors (e.g. the Playground). |
Bump - is there anything I can do to help this? |
@jamietdavidson Cadence now includes a pretty-printer that is complete in the sense that it can format all code, though it does not retain comment at the moment. Once this last functionality is implemented (see onflow/cadence#308), the pretty-printing functionality could be added to the language server, then finally used from VS Code. |
Issue To Be Solved
Developers could oftentimes copy and paste or write code that is not well formatted. It becomes hard to read.
(Optional): Suggest A Solution
We might be able to agree on formatting conventions for Cadence and support beautification.
The text was updated successfully, but these errors were encountered: