Is it possible to make quotes and brackets do auto-pairing when the cursor is before a comma or colon?
The current behaviour is that quotes and brackets won’t auto-pair when the cursor is before them. For example, if I have a piece of code:
def function(arg1=, arg2):
^
where the cursor is at the position pointed by “^”. If I type "
now, the result will be:
def function(arg1=", arg2):
^
However, I would like the quote to be auto-paired, like this:
def function(arg1="", arg2):
^
Same thing for colon. For example, in python, if I have a piece of code like this:
v
if :
pass
which is the code completion if I typed if
, and the cursor will be placed before the colon. Now if I would like to compare a variable with a string literal, I will need to type "
for the string literal, but the quote will not be auto-paired, resulting something like this:
which is quite annoying because sublime text will indicate that this line is invalid by displaying the rest of line in red.