Sublime Text has 3 ways to handle brackets indentation when I hit a new line button.
1.curly bracket
xxx = {
|cursor|
}
2.parenthesis
xxx = (
|cursor|)
3.square bracket
xxx = [
|cursor|]
How could I set all of them to behave like curly bracket
In the Default keybindings, there is this:
which provides the functionality for pressing Enter between the
{
and}
braces. The macro adds 2 newlines, moves the cursor to after the first one and reindents the line.You can therefore achieve the same functionality between
(
and)
and[
and]
by adding this to your user keybindings: