Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Sometimes tab inserts spaces, even with soft tabs off #11

Closed

Activity

  1. WooD1k commented on Mar 16, 2014

    @WooD1k

    Please fix it!

  2. tm1000 commented on Mar 26, 2014

    @tm1000

    "Is your use case that you want to open a buffer containing soft tabs and still insert hard tabs? Or vice versa?"

    Yes because in PHPDOC Block format the comments are sometimes pushed forward a little with a single space (for alignment) like so:

    /*
    *
    Atom interprets that as "oh you have a space so everything will be spaces" which is annoying if the actual file is hard tabs.

  3. sethburtonhall commented on Apr 15, 2014

    @sethburtonhall

    Please fix. This is very annoying when working with a team.

  4. iandotkelly commented on May 8, 2014

    @iandotkelly

    I hate to add a +1, but this doesn't seem to be going anywhere and I'm going to have to go back to Sublime Text 2 when working on a js project that uses tabs by default, and FYI it absolutely seems to relate to the use of PHP/Javadoc style block format being used, that have a leading space in them.

  5. maurociancio commented on May 11, 2014

    @maurociancio

    +1

  6. lord2800 commented on May 12, 2014

    @lord2800

    +1 from me as well. This annoys me to no end.

  7. sookcha commented on May 20, 2014

    @sookcha

    +1

  8. holzmann commented on May 21, 2014

    @holzmann

    +1
    Switched back to Sublime Text 3 because of this behavior.

  9. mer10z commented on May 22, 2014

    @mer10z

    I'm also having this problem with the javascript editor on Ubuntu. I can't copy and paste tabs, and when I press the tab key to further indent a line that is already indented with tabs, it adds the new indent in spaces plus enough spaces to eqaul the tab amount, as if the tabs weren't there, ie with tabs set to 2 spaces a press of the tab key changes \t\t to \t\t......

  10. maurociancio commented on May 22, 2014

    @maurociancio

    Yes @mer10z it's very annoying. The editor works well when there are no comments in the code, as someone pointed earlier.
    For example, if i have:
    /**

    • comment with spaces

    */

    And you try to use tabs, you get spaces.

  11. nathansobo commented on May 27, 2014

    @nathansobo
    Contributor

    Can someone post a file that reproduces this issue? I would have thought a previous fix that ignores comment blocks for purposes of determining the tab setting would fix this: https://github.com/atom/atom/blob/master/src/editor.coffee#L326

    Are you guys having issues editing files with mixed tab styles?

  12. probablycorey commented on May 27, 2014

    @probablycorey

    This is related to atom/atom#2045.

  13. tm1000 commented on May 27, 2014

    @tm1000

    @nathansobo
    For me this issue has been completely resolved with something you fixed within the .90 - .99 releases so I haven't run across any file that has the issue. I wasn't sure if it was a fluke or not until your comment right now.

  14. 15 remaining items

  15. chamons commented on Jun 24, 2014

    @chamons
    Author

    I'm having trouble making the issue reproduce outside my project. I can take a file where detection is incorrect, copy paste and save it somewhere else with the same name, open that file up and tab "works", while it is still broken locally.

    I'd love an option to just force tab to output actual tab characters and stop guessing.

  16. iandotkelly commented on Jun 24, 2014

    @iandotkelly

    @chamons - I hear you. I get atom into all sort of strange states switching between projects that use tabs, and projects that use spaces. I would like to be able to force it rather than it guessing.

  17. thomassross commented on Jun 25, 2014

    @thomassross

    @nathansobo Sorry, the problem was I was still using 0.95. I've updated, and it works now, however there was one case where Atom used soft tabs even though I told it not to but I can't reproduce it anymore.

  18. thomassross commented on Jun 25, 2014

    @thomassross

    I second third @chamons's idea to have a "force hard tabs" option

  19. thomassross commented on Jun 25, 2014

    @thomassross

    This issue should be moved to atom/atom now anyway because usesSoftTabs is in the Editor class.

  20. probablycorey commented on Jul 9, 2014

    @probablycorey

    You can toggle soft-tab on/off on an individual editor using the editor:toggle-soft. But this setting won't persist after the editor is closed. This issue is obviously annoying for some people, so someone could open this issue on the atom repo with a description of how they expect it to behave that would be great!

  21. KevinMcCoy commented on Sep 1, 2015

    @KevinMcCoy

    Problem still here why is this close?

    I'm trying to find and replace all space to tabs, and right after I replace all, atom change it right back to space....

  22. bananavoid commented on Oct 20, 2015

    @bananavoid

    Same problem as @KevinMcCoy wrote

  23. rinux55 commented on Dec 1, 2015

    @rinux55

    I also still have the problem. This makes Atom not usable for me.

  24. James-Firth commented on Jan 12, 2016

    @James-Firth

    This has also been causing a lot of issues with the team I'm on. I'm likely to switch back to Sublime now.

  25. MattWilcox commented on Jan 20, 2016

    @MattWilcox

    Why is this marked as closed? This error persists.

  26. thomassross commented on Jan 20, 2016

    @thomassross

    Hey guys,

    A quick & easy fix is to install auto-detect-indentation

  27. benogle commented on Jan 25, 2016

    @benogle
    Contributor

    You folks can set these settings:

    screen shot 2016-01-25 at 2 50 04 pm

    core.tabType in config.cson

    and

    screen shot 2016-01-25 at 2 50 11 pm

    core.softTabs in config.cson

    You can scope them to languages

    The auto-detection result will persist after manually replacing all tabs with another tab type. So if you replace them all, reload the file or set the tabType setting to the type you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions