How do I convert spaces to tabs in Spacemacs?

First, show whitespace in a file.

Then use v to enter visual mode, and select text (using h j k l):

select text in visual mode

Press ALT x and type tabify:

tabify the selection

Make sure tabify is highlighted, and press enter:

see tabs now in the selection

Now you've got tabs instead of spaces.


Leave a comment

What color are green eyes? (spam prevention)
Code under MIT License unless otherwise indicated.
© 2020, Downranked, LLC.