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.

Add soft tab and tab width #36

Open
@kevinsawicki

Description

@kevinsawicki
  • Whether soft or hard tabs are configured
  • Tab width
  • Allows you to change the value for the current editor or auto-configure based on the content

Activity

mik01aj

mik01aj commented on Feb 11, 2015

@mik01aj

+1.

I mentioned the same enhancement in atom/atom#5497:

I would love to have some status bar icon showing the current status of this flag (tabs or spaces). Something like a warning icon that says "hey, you have chosen to use spaces in the preferences, but this file uses tabs, so Atom will indent your lines with tabs". The current behaviour is far from intuitive.

Imho just a small icon with tabs/spaces (» or ···) symbol would be enough. And it could be grayed out if Atom is just using the default set in preferences.

ricardograca

ricardograca commented on Feb 11, 2015

@ricardograca

There's this package which ticks all of those options except the last one, which I'd also like to have.

rbu

rbu commented on May 12, 2015

@rbu

indentation-indicator is doing the right thing. Instead of thinking of a smart icons you have to learn and understand, just put "Spaces: 4" or "Tabs: 2" in there. Could that package just be merged into the default status bar?

Abdillah

Abdillah commented on Aug 13, 2015

@Abdillah

Solving this issue is very important IMO, once this pull request is merged. It implements scoped setting of new tabType.

benogle

benogle commented on Aug 13, 2015

@benogle
Contributor

@Abdillah would you be interested in creating a PR to add this functionality?

Abdillah

Abdillah commented on Aug 16, 2015

@Abdillah

@benogle sure, let me try on this.

garygreen

garygreen commented on Aug 30, 2016

@garygreen

Check out the tab control package which allows you to do everything in this issue. It would be nice if this was in core though, it's in sublime and I'm pretty sure a lot of people would like it too.

memeplex

memeplex commented on May 16, 2019

@memeplex

The tab-control package works great, but this surely is a core feature, every other editor I used, and I used a lot of them along the last 20 years, includes this feature one way or another. Tab width assumptions change from file to file, from project to project, not only from language to language. The flexibility to change tab width on-the-fly is a must have.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Add soft tab and tab width · Issue #36 · atom/status-bar