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

Stupid Indent

by tzvetkoff ST2/ST3

A Sublime Text plugin to determine indentation settings based on filename rather than current indentation.

Details

Installs

  • Total 5K
  • Win 2K
  • OS X 2K
  • Linux 1K
Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2
Windows 0 0 0 0 0 0 0 0 0 0 1 2 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 0 1 0 0 0 0 1 0
OS X 0 1 0 1 0 1 0 1 0 2 0 0 1 0 2 0 0 0 0 0 0 1 0 0 0 0 2 0 1 2 3 0 0 0 0 0 1 1 0 0 1 2 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 0 0 0 0 0 0 0 0 0 0 0 1 0 0 2 0 1 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Stupid Indent for Sublime Text

A Sublime Text plugin to determine indentation settings based on filename rather than current indentation. Supports both Sublime Text 2 and 3.

Installation

If you're using the Sublime Package Control plugin, you can install the plugin just like any other - ⌘⇧P, Install Package, Stupid Indent.

The other way around is to manually clone the repository:

# WARNING: This instructions apply only to Mac OS X
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
# or ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone https://github.com/tzvetkoff/sublime_stupid_indent sublime_stupid_indent

Configuration

Stupid Indent adds settings to the Package Settings menu: Preferences -> Package Settings -> Stupid Indent. To customize them, just copy Settings -> Default to Settings -> User, or use mines below: “ json { "configuration”: [ { “patterns”: [ “Gemfile”, “Rakefile”, “.rb”, “.erb”, “.scss”, “.coffee”, “.thor”, “.rake”, “.rhtml”, “.less”, “.yaml”,“.yml” ], “tab_size”: 2, “translate_tabs_to_spaces”: true }, { “patterns”: [ “.html”, “.js”, “.css”, “.tpl” ], “tab_size”: 2, “translate_tabs_to_spaces”: true }, { “patterns”: [ “.php” ], “tab_size”: 4, “translate_tabs_to_spaces”: false }, { “patterns”: [ “.md”, “.markdown” ], “tab_size”: 4, “translate_tabs_to_spaces”: true }, { “patterns”: [ “.py” ], “tab_size”: 4, “translate_tabs_to_spaces”: false } ] }