Giter Club home page Giter Club logo

normalize-indentation's Introduction

Normalize-Identation

A Sublime Text plugin to normalize identation for a file.

Install

Sublime Text 3 Package Control

Install via the package control under https://packagecontrol.io/ . Search for "Normalize Indentation"

Manual

You can also install it by cloning the repo into your Packages folder, but the installation via Package Control is recommended

Usage

It's pretty straight forward to use either choose "Tools" -> "Normalize Indentation" or use the shortcut (default Ctrl+Alt+i). There are also options to let it run automatically on load.

The plugin uses the setttings from the language definition file to determine if to use tabs or spaces and which width is wanted. If you don't want the settings from the default settings you can define them in the language user settings or your global user settings.

normalize-indentation's People

Contributors

ennosuke avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

splitfront

normalize-indentation's Issues

Not transforming Ruby input file

I'm trying to apply the normalization to the following file:

# a class for O
class O < SomeClass
  def pp
    puts "hello"
  end
end

o = O.new
o.pp

Line 4 contains a tab (or in another test: 2 spaces). I would expect the script to replace the tab with the appropriate number of spaces (4) in both cases, but the console output reads:

Starting to normalize indentation
all is fine and dandy
Done normalizing indentation

What could be the reason for this? Could you please advise me on where to start debugging?

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.