@phoenix-plugin-registry/hirse.brackets-detect-indentation

Detects the indentation used in the current document and sets the editor settings accordingly.

Usage no npm install needed!

<script type="module">
  import phoenixPluginRegistryHirseBracketsDetectIndentation from 'https://cdn.skypack.dev/@phoenix-plugin-registry/hirse.brackets-detect-indentation';
</script>

README

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.