force-tab

Force insert tab or spaces.

lexicalunit

1,145

4

0.2.4

MIT

GitHub

Force Tab

apm package travis-ci appveyor circle-ci david download mit

I don't know about y'all, but sometimes I just want to insert a tab character and I don't want Atom to argue with me about it! 😠

Sometimes I'll try to insert a tab and get snippets inserting a bunch of stuff I don't want, or autocomplete will try to autocomplete something I don't want, or soft tabs is enabled and I literally can't insert an actual tab character without temporarily disabling the setting — which is super annoying!

Enter 💥 force-tab! 💥

By default Atom outdents code when you press shift-tab, but I absolutely never use that! I always use cmd-[, with cmd-] for indenting. If you're like me, and sometimes you just want to insert a damn tab character, I've made shift-tab map to a new command that forcibly inserts a tab or an appropriate number of spaces if editor.softTabs is enabled.

Settings for the package include an option to totally disable honoring editor.softTabs. There's also another command, force-tab:insert-actual-tab, that never honors soft tab settings.


MIT © lexicalunit et al