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

Normalize Indentation

by Ennosuke ST2/ST3

A Sublime Text plugin to normalize identation for a file.

Labels indentation

Details

Installs

  • Total 9K
  • Win 5K
  • OS X 2K
  • Linux 2K
Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29
Windows 6 8 5 2 2 3 6 3 7 5 2 0 3 7 6 10 3 8 7 4 2 3 4 7 2 5 5 6 7 6 4 2 5 2 9 4 3 1 1 2 9 3 3 5 3 4
OS X 0 4 3 2 0 2 2 1 0 0 1 0 1 2 0 4 2 1 2 1 2 1 2 2 0 1 6 5 2 1 1 1 0 1 2 6 1 2 2 1 3 0 3 1 1 2
Linux 0 0 3 4 1 1 1 3 4 4 1 1 1 3 2 1 2 1 1 1 3 2 1 3 2 1 3 1 1 3 1 2 0 3 1 1 2 1 3 2 2 2 0 2 0 0

Readme

Source
raw.​githubusercontent.​com

Normalize-Identation

A Sublime Text plugin to normalize identation for a file.

Install

Sublime Text 3 Package Control

Install via the package control under https://packagecontrol.io/ . Search for “Normalize Indentation”

Manual

You can also install it by cloning the repo into your Packages folder, but the installation via Package Control is recommended

Usage

It's pretty straight forward to use either choose “Tools” -> “Normalize Indentation” or use the shortcut (default Ctrl+Alt+i). There are also options to let it run automatically on load.

The plugin uses the setttings from the language definition file to determine if to use tabs or spaces and which width is wanted. If you don't want the settings from the default settings you can define them in the language user settings or your global user settings.