Brackets Extension to detect the indentation used in the current file and set your editor settings accordingly.
This extension is using detect-indent for the actual detection.
To install the latest release of this extension use the built-in Brackets Extension Manager which downloads the extension from the Brackets Extension Registry.
To install the latest commit of this extension use the built-in Brackets Extension Manager which has a function to Install from URL...
using this link:
https://github.com/Hirse/brackets-detect-indentation/archive/master.zip
The latest release of this extension is also available on the Brackets npm Registry.
This extension adds two buttons to the indentation indicator in the status bar.
Click the A
to toggle automatic indentation detection on file change or click the D
to detect the indentation of the current file manually.
Use the settings defaultSpaceUnits
and defaultUseTabChar
to define a fallback for the case that the detection fails.
{
"hirse.detect-indentation.defaultSpaceUnits": 4,
"hirse.detect-indentation.defaultUseTabChar": false
}
Brackets Detect Indentation is licensed under the MIT license.
detect-indent itself is also licensed under the MIT license.