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
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 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14
Windows 0 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 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
Mac 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 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 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 } ] }