Skip to content

The way auto-indenting should be by default in sublimetext.

Notifications You must be signed in to change notification settings

badstreff/IndentToAllBrackets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Better Auto Indent Sublime Text plugin

An attempt to mirror the functionality of indent_to_bracket in sublime that only works for parenthesis to '[' and '{' brackets/braces. This plugin is still in development so there may be various issues you can run into.

The general idea is to indent arguments in a tuple, list, or dictionary to the opening bracket so that:

dict = {'a': 1, 'b': 2, <enter>

aligns caret following way:

dict = {'a': 1, 'b': 2,
        |

Installation & Setup Instructions

  1. Copy the better_auto_indent.py into your packages directory. On OS X this is ~/Library/Application Support/Sublime Text 3/Packages/User

-or-

Use the Sublime Text Package manager available here

  1. Copy-Paste the contents of the Defaults.sublime-keymap into your keymap settings file. Sublime Text > Preferences > Key Bindings

Contributing

Any pull requests welcome!

About

The way auto-indenting should be by default in sublimetext.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages