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 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 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
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 | 1 | 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 | 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 |
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
}
]
}