Sublime Forum

How to get out of auto created bracket space (new sorry)

#1

when writing python like print(x) when I type the first bracket it auto creates the other one. Yet when I finish what I want in that bracket and move to the next line, I have to reach over to the arrow keys to get out of the brackets. Is there an easier way that I am missing?

thanks in advance, very new to the program. :smiley:

0 Likes

#2

If you don’t want it to auto create brackets, look in Settings - Default to find the setting:

// Controls auto pairing of quotes, brackets etc "auto_match_enabled": true,

Then, in Settings - User, add the following line:

    "auto_match_enabled": false,
0 Likes

#3

ctrl+enter to insert a new line without the need to go at the end of line.

To my knowledge there’s no specific command for that but alt+left or ctrl+left do the trick for me.

0 Likes

#4

Here is a key binding that may work for you (previously posted by another forum member):

// Jump out of ), ", and ]
{ "keys": "enter"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
    
        { "key": "following_text", "operator": "regex_contains", "operand": "^)\"\\]]", "match_all": true },
        { "key": "auto_complete_visible", "operator": "equal", "operand": false }
    ]
}
0 Likes