-
Notifications
You must be signed in to change notification settings - Fork 453
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
Coffeescript support #31
Comments
just open a coffeescript file and press ctrl alt b... nothing happens |
It "works" in some files. For instance: Beforehello derek how is it going?
for c, i in "Hello World!"
k = 1+1- 2>=3<= 4>5 <6
for c, i in "Hello World"
k = (a,b)-> if b? return a
f = b()[0]
for c, i in "Hello World"
f(b()) Afterhello derek how is it going?
for c, i in "Hello World!"
k = 1 + 1 - 2 >= 3 <= 4 > 5 < 6
for c, i in "Hello World"
k = (a, b) -> if b? return a
f = b()[0]
for c, i in "Hello World"
f(b()) The problem is not Atom Beautify's support of CoffeeScript Beautification -- it is always beautifying when requested. The problem is that Coffee-Formatter seems to be not to work in all cases and misses quite a lot of indentation and other problems unless it is very obvious (see above example). |
The source code is in Literate CoffeeScript and looks fairly well documented. If you have some known issues that you'd like to beautify / format however it is currently not working, potentially submitting a Pull Request to the Coffee-Formatter would be great. |
it uses default indentation for editor instead of default identation for coffeescript package? Right now beautify makes 4 spaces indent , making linters unhappy. |
I'm not quite sure what you mean by You can see the order of prioritized configurations at https://github.com/Glavin001/atom-beautify#configuration
Then you can simply change it: see https://github.com/Glavin001/atom-beautify#configuration |
@ironyinabox please create a new issue and follow the Issue template structure. More specifically, be sure to add a link to the required |
See https://github.com/derekchiang/Coffee-Formatter
The text was updated successfully, but these errors were encountered: