ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Invisible Tabs Spaces Switcher

by iynere ST3

Sublime Text plugin: converts spaces to tabs while you work, then back to spaces when you're done (or vice versa)

Details

Installs

  • Total 1K
  • Win 766
  • Mac 343
  • Linux 223
Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 1
Mac 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime Text: Invisible Tabs Spaces Switcher

This plugin will convert spaces to tabs in a file as soon as you open it, then convert them back to spaces before you close it (or vice versa!).

Why did I make this? I don't like working with spaces, but many development projects (Package Control, for example) require them—and coders working on teams often have different personal preferences. This lets you work the way you want to, without causing formatting issues online or making it harder to compare files when reviewing pull requests (GitHub will flag identical files for comparision if one has tabs and one has spaces).

Installation

Until it's in Package Control, you have to install it manually.

Download the project, expand the .zip, and put the folder in Sublime Text's Packages folder. On a Mac and with Sublime Text 3, this folder is in ~/Library/Application Support/Sublime Text 3.

Configuration

The plugin is enabled with the following default settings.

// if false, will disable the plugin
"invisible_tabs_spaces_switcher": true,

// if false, files will be saved with tabs
"save_files_with_spaces": true,

// if false, files will be loaded with spaces
"view_files_with_tabs": true

Add your own settings to Settings – User (in Preferences -> Package Settings -> InvisibleTabsSpacesSwitcher)

To uninstall, remove the plugin folder from your Packages folder, or else use Package Control: Remove Package.

Note: if you have SideBarEnhancements installed, you need to set "close_affected_buffers_when_deleting_even_if_dirty" to true in your *Side Bar.sublime-settings** file otherwise you won't be able to delete files from the sidebar*

Credits

Thanks to bubenkoff's Expand Tabs On Save plugin for inspiration.

License

This software is licensed under the MIT License.

© 2017 r0se kaplan-bomberg