-
Notifications
You must be signed in to change notification settings - Fork 9
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
Tabs are replaced with spaces in Makefile #42
Comments
Yes, your configuration is invalid. In order to manually add language-specific configuration, also called scope-specific configuration, you need the "scope name" of the language you want to configure. In this case, the scope name for Makefiles is If you change your configuration to look like this: "*":
"tabs-to-spaces":
"onSave": "untabify"
".source.makefile":
"tabs-to-spaces":
"onSave": "tabify" it should work. Let me know if that doesn't help! |
@lee-dohm Awesome, that did indeed do the trick! I've never seen that "Scope" before. Thanks for pointing it out! It's almost as I feel like "tabs-to-spaces" should add the On to something else, I noticed that tabs within a line, to align something like Markdown references, aren't replaced. Such as: [edit]: https://help.github.com/articles/editing-files-in-your-repository/
[github]: https://github.com/signup/free Is that intentional, so "tabs-to-spaces" should only replace indentation at the start of the line? |
I specifically default
Yes, the tabs-to-spaces package was designed specifically for altering leading indentation. Atom itself has commands for converting all indentation on a line. |
@lee-dohm Thanks! |
actually you should probably just hardcode this for makefiles. space-indented makefiles are always wrong, and it’s easy to configure your package in a way that makes this bug appear. |
As I said above, the |
why do you assume this might be the case? |
Why do you assume and imply that the author of the package doesn't know the performance characteristics of their own creation? |
because having intuition about performance of complex software is hard 😄 but yeah, you don’t want that, and i don’t use this plugin so i don’t need to lobby for adding the feature 😉 |
Yes, but making decisions based on data is much, much easier 😀 |
As mentioned in atom/language-make#3, I'm having problems with tabs being replaced with spaces in a
Makefile
. As this causes the Makefile to stop working, it's a rather big problem. I've identified the tabs-to-spaces package as the perpetrator. I've tried to adjust my configuration to:But the
"Makefile"
section seems to be ignored. Tabs are still replaced with spaces in myMakefile
. Is my configuration invalid?The text was updated successfully, but these errors were encountered: