-
Notifications
You must be signed in to change notification settings - Fork 450
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 on save not working? #405
Comments
You must have just updated to a new version from a very old version. What you do now is use the |
sorry for re-opening this issue, I've been trying to enable this with no success, I'm adding the config to I've tried
and
|
@kayone : I think |
that makes total sense, thank you for the fast response. |
I have since improved the documentation for this. See #529 |
@Glavin001 hi, i can't find the js beautify on save option in the package setting panel. |
@bryantchan the option would be named |
@Glavin001 Is this option renamed to something else? I see the following option which I have enabled but still doesn't work. I am using Atom v1.5. I don't see any |
Nope, that should be the option, |
I can confirm this is not working, I have "Beautify Entire File On Save" option enabled but it doesn't beautify on save, maybe it's because of a conflict with another package? Here are my Atom packages:
Edit: nevermind, you have to enable Beautify on Save for each language that you want that functionality to work, so for example for Sass, I would open up DevTools (Cmd + Alt + I on Windows) and search for "Language Config - Sass" in the Elements tab and then go there and enable it. Hope this helps. |
Further to @csergiu 's edit: Ticking the 'Beautify On Save' in @rahul-desai3's comment doesn't do what you might think it does, the way atom-beautify's settings are currently laid out make this unintuitive imo - it should be called "Beautify entire file (when beautify on save is enabled)" To actually enable beautify on save you must scroll down (way down!) to the 'Beautify on Save' option for each language, there is no global option. |
This settings page is just painfully huge. I think they are at least sorted by title, so it should be easy to find.. Was it not sorted alphabetically? I am hoping there will be an available Atom API that will allow me to better organize these settings, and improve the user experience. If anyone knows of a new Atom API and would be interested in submitting a Pull Request, please do so and I will review and accept. Thank you! |
Yes. The only part I found helpful in the way this is organized is that it is alphabetical. |
There is no intentional organization. Unfortunately, when the settings menu was developed the Atom API did not allow for any more helpful organized. It appears to still be the case: https://atom.io/docs/api/v1.5.3/Config |
+1 The settings page is one of the things I really dislike about Atom. The other one is the incredible weak and error-prone seach & replace function. These two features let me think about switching to another editor once in a while. But still, I love most of the rest about Atom, so I am still sticking to it. |
Waiting on Atom/settings-view support: atom/settings-view#736
I recommend everyone interested in the settings UI for Atom Beautify to subscribe to #864 |
Hi I have similar problem, atom-beautify don't format my javascript code on save, but other language does. Include config file `"atom-beautify":
` |
@patrykwlazlowicz please provide a link to a Gist with your complete debugging information. See https://github.com/Glavin001/atom-beautify/blob/master/docs/troubleshooting.md for details. I suspect your file is not being recognized as |
@patrykwlazlowicz I had the same problem as you did, and @Glavin001's diagnosis was correct for my atom setup. Because I had the If it doesn't say My current workaround is to delete
to your config file to get beautify on save working. |
Adding this to
Atom version: 1.19.5 |
I feel like I'm missing something big here, so apologies for the issue but I haven't been able to get Beautify on Save to work since migrating to a new machine (OSX). The manual shortcut command for this still works, but automatically formatting doesn't.
I'm not sure if it's the version or my hardware, or maybe some configuration setting. I tried rolling back the package but apparently Atom doesn't support "deprecated" versions.
I assume just having the option selected through the UI would take precedence? Or is there a
.jsbeautifyrc
that I need to edit.Thanks
The text was updated successfully, but these errors were encountered: