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

  • 1.1.0
  • github.​com
  • github.​com
  • 11 years ago
  • 42 minutes ago
  • 12 years ago

Installs

  • Total 6K
  • Win 3K
  • Mac 2K
  • Linux 1K
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 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
Windows 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 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 0 0 0
Mac 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 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 1 0 0 1 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 } ] }