GitXplorerGitXplorer
l

tabs-to-spaces

public
69 stars
9 forks
7 issues

Commits

List of commits on branch master.
Verified
86feb91ba2c3e986ea0786de41af27e64cf7e252

Prepare 1.0.5 release

llee-dohm committed 6 years ago
Verified
b068c4f9b5afbf9bead12f39bf52c6f2c3e1156f

Update CHANGELOG for release

llee-dohm committed 6 years ago
Verified
f8b23c69a59c68085ca9edf575c2718200d4e31f

Merge pull request #61 from lee-dohm/update-engines

llee-dohm committed 6 years ago
Verified
2328ebff9243ee95fee80b20be1b30518e97b01a

Require Atom v1.26 and above

llee-dohm committed 6 years ago
Verified
4253640151ec0269cb6b1374f303f6d3f22b502f

Standardize copyright section by pointing to license file

llee-dohm committed 6 years ago
Verified
f4ea72c1e35aa1db031b40e268ed64e00f409f7c

Update copyright year

llee-dohm committed 6 years ago

README

The README file for this repository.

Tabs to Spaces

Build Status Package Version Package Downloads Dependency Status

An Atom package for converting leading whitespace to either all spaces or all tabs.

Usage

It can convert any form of leading whitespace to either all spaces (Untabify) or the maximum number of tabs and minimum number of spaces with tabs up front (Tabify) to fill the same space. It can also convert all tabs in a document to spaces (Untabify All).

It will also, with configuration, convert to your preferred method of leading whitespace on save.

Commands

  • tabs-to-spaces:tabify — Converts leading whitespace to tabs
  • tabs-to-spaces:untabify — Converts leading whitespace to spaces
  • tabs-to-spaces:untabify-all — Converts all whitespace on a line to spaces

Configuration

Tabs to Spaces uses the following configuration values:

  • editor.tabLength — sets the number of space characters a tab character is equivalent to
  • tabs-to-spaces.onSave — if set to either tabify or untabify it performs that operation on save. 🚨 Warning: 🚨 Setting this to anything other than none can significantly impact performance when saving large files.

The package also supports language-specific configuration for the onSave setting. For example, the following configuration will tabify all file types on save except for JavaScript files:

'*':
  'tabs-to-spaces':
    'onSave': 'tabify'
'.source.js':
  'tabs-to-spaces':
    'onSave': 'none'

No matter what tabs-to-spaces.onSave settings you configure, your config.cson will not be automatically tabified or untabified.

Keybindings

Keybindings have not been set for this package. They can easily be added by referencing the commands listed above.

License

MIT