Skip to content

Brackets Extension to detect the indentation used in the current file and set your editor settings accordingly.

License

Notifications You must be signed in to change notification settings

Hirse/brackets-detect-indentation

Repository files navigation

npm Version Brackets Extension Registry Version Brackets Extension Registry Downloads

Build Status Greenkeeper

Brackets

Brackets Detect Indentation

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.

Installation

Latest Release

To install the latest release of this extension use the built-in Brackets Extension Manager which downloads the extension from the Brackets Extension Registry.

Latest Commit

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

Brackets npm Registry

The latest release of this extension is also available on the Brackets npm Registry.

Usage

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
}

License

Brackets Detect Indentation is licensed under the MIT license.
detect-indent itself is also licensed under the MIT license.

About

Brackets Extension to detect the indentation used in the current file and set your editor settings accordingly.

Resources

License

Stars

Watchers

Forks

Packages

No packages published