Skip to content
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

how to format MMA code? #21

Open
asukaminato0721 opened this issue Feb 6, 2020 · 1 comment
Open

how to format MMA code? #21

asukaminato0721 opened this issue Feb 6, 2020 · 1 comment

Comments

@asukaminato0721
Copy link

As far as I know. MMA doesn't have a commonly used code formater.

I searched on mse, find this https://github.com/lshifr/CodeFormatter . But it seems a bit hard to use.

So where can I find the code formater?(Since there are only 3 mma-about plugins in VS Code plugin market)

Meanwhile, format it by hand is not pleased.

@kenkangxgwe
Copy link
Owner

People have different appetites for formating, e.g., indentation, dangling parenthesis, whitespaces and even semicolon;.
I will try to work on workspace/configuration so users can specify their own style. Otherwise, they may get angry when they find their code being auto-formatted to an unfavorite style. I have thought a bunch of possible formatting styles but it should not be enough. Just opened another issue #23 for collecting possible formatting styles. Please feel free to share your ideas on that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants