-
Notifications
You must be signed in to change notification settings - Fork 452
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
beautifying should follow Atom's indentation preferences #400
Comments
Good question! From #341 (comment):
Given that Atom's editor preferences are global, not language specific, and therefore lowest priority for Atom Beautify, this makes sense why you are experiencing this. You should create either |
I am experiencing this same issue after setting per language basis personal / user specific settings in Beautify's package settings. No matter what I set, it beautifies with two spaces ... which is really difficult reading for heavily nested scss ... am I missing something? |
Solved by turning off soft tab options in Atom main prefs~ |
This is the recent related issue: #894 |
@Glavin001 thanks. Maybe because of the mixing of one configuration with another. I think the configuration panel should be designed more friendly if possible. One tab for one language only. |
@calidion please feel free to create an issue outlining what you recommend the configuration should look like. With v0.29.x there were a lot of configuration UI improvements, however there is always room for improvement. I am open to Pull Requests as well. If you don't like something, please work with us to change it and make it better 😄 . |
@Glavin001 Thanks. I will when I am ready:) |
What is the easiest way to globally set my indent character to tab and 1 indent size? |
happening with me as well. |
The easiest way to set universal settings is to modify the |
I don't want to modify it universally, I want it only for |
@prettydiff I've also opened an issue with more details here: #1574 |
Ok my issue is exactly the opposite of what the question is, I have set everywhere as 2 but atom-beautify does 4 spaces. I have also checked .jsbeautifyrc , that also has 2 only. Does anybody have solution? This is frustrating. |
@emailprashanthvg I ended up using |
This has been an issue for a long time. Between two projects on the same machine I get different outcomes, and all settings are the same. There's definitely something wrong here. I'd provide my configs, etc., but they are the same on both projects so I can't imagine how it would help. |
@DLiblik if you could provide both For this main issue, I will be investigating ways to improve configuration of Atom-Beautify over the next couple weeks. Thank you for your interest and patience! |
I do want to universally use tabs unless the language absolutely requires it, and would like to be able to do this programmatically via script. (See https://github.com/zamicol/dotfiles/blob/master/install.sh) This is where I am with accomplishing it. (See https://gist.github.com/zamicol/c5c926500ddde49006122f9e4e52e48f)
|
@zamicol why do you need to edit See https://github.com/Glavin001/atom-beautify#configuration for configuration details. Configure options for all languages An example {
"_default": {
"indent_char": "\t",
"indent_size": 1,
"indent_with_tabs": true
}
} Then languages can be specifically configured on top of this on a per-project basis. Configure options for all projects Place the 💥 Profit! 🎆 Does that not work for you? If not, then please provide a link to a Gist with your debugging information. See https://github.com/Glavin001/atom-beautify/blob/master/docs/troubleshooting.md for details. Once we have your complete debugging information we can resolve the other issues in your way. |
I've merged #1598 which should resolve these issues. Published to v0.29.21. |
Thanks @Glavin001 ! solved my problem |
@Glavin001 You are a fuckin master!! I am doing a Angular App and I tried everything to indent my html files to 4 instead of 2 spaces. The solution was to change .editorconfig file where it says "indentation" and then restart my atom editor. Thanks!! By the way you have to work on your explaining. |
Despite having set the indent tab length to 4 in the preferences, atom-beautify will "beautify" the indentation only to 2 spaces.
The text was updated successfully, but these errors were encountered: