detect-indentation
A fast and minimal detect indentation package
gt-rios 400 0 0.2.2 MIT GitHub

Detect Indentation

A fast and minimal detect indentation package for Atom. The detection algorithm comes from the popular auto-detect-indentation package, which is no longer maintained.

Install

Run the following command:

apm install detect-indentation

Features

  • Fast and minimal by design: this package only attempts to detect the indentation for the active editor once, when it is opened.
  • Easily change the indentation for the active editor at any time with the indentation selector by:
    clicking the indentation button in the Status Bar, or selecting Packages > Detect Indentation > Show Selector in the Menu Bar, or running the Detect Indentation: Show Selector command in the Command Palette.
  • Displays the indentation for the active editor in the Status Bar.

Keymap

To add a keyboard shortcut to show the indentation selector, add the detect-indentation:show-selector command to your keymap.cson file. For example:

'atom-text-editor':
  'ctrl-i': 'detect-indentation:show-selector'