utils normalize-indents

Aliases: 
  • indents
  •  
    Parameters:
    Name Type Required Default Hint
    files globber true A file globbing pattern that matches one or more files
    spacesOrTabs string false spaces Convert to spaces or tabs
    spaceTabCount number false 4 The number of spaces per tab
    exclude string false A list of globbing patterns to ignore
    force boolean false false Skip user confirmation of modiying files
    verbose boolean false false Output additional information about each file affected

    Command Usage

    Normalizes the indentation for a file or set of files

    indents **.cf* tabs
    Change the number of spaces per tab
    indents **.cf* tabs 2
    To skip the confirmation, use the --force flag.
    indents models/**.cfc --force
    Print the file path of each file affected with the --verbose flag.
    indents includes/*.cfm --verbose
    Exclude a list a globber patterns
    indents ** *.png,node_modules/
    You can set global default parameters for this command to use like so:
    config set command.defaults.indents.force=true
    
    config set command.defaults.indents.verbose=true
    config set command.defaults.indents.exclude=.git/,*.png