Giter Site home page Giter Site logo

modulexcite / tabs-to-spaces Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lee-dohm/tabs-to-spaces

0.0 1.0 0.0 605 KB

Atom package for converting between tabs and spaces

Home Page: https://atom.io/packages/tabs-to-spaces

License: MIT License

CoffeeScript 100.00%

tabs-to-spaces's Introduction

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.

Copyright

Copyright © 2014-2015 by Lee Dohm and Lifted Studios. See LICENSE for details.

tabs-to-spaces's People

Contributors

hurtak avatar lee-dohm avatar zren avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.