Stupid Indent
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
| Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 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 | 1 | 1 |
| Mac | 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 |
| 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 | 1 | 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
}
]
}