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

Stupid Indent

by tzvetkoff ALL

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

Details

Installs

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