You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the behavior of the auto closing braces and parentheses does not match that of the brackets.
Consider the following options:
letoptions={indentOn: /[{\\([]$/,// indent on {, (, and [addClosing: true}
If I have this code in my editor
{
"a": 1,
"b": {}
}
then place my cursor inside the {} and press return, it results in this:
{
"a": 1,
"b": {
}
}
which is expected. However, following a similar procedure with braces or parentheses results in this:
{
"a": 1,
"b": [
]
}
I would expect that, because braces and parentheses are included in the behaivor of addClosing, that they would indent in the same way as braces:
{
"a": 1,
"b": [
]
}
The text was updated successfully, but these errors were encountered:
tuckergordon
changed the title
autoClosing Braces and Parentheses have incorrect indent
Bug: autoClosing Braces and Parentheses have incorrect indent
Feb 1, 2022
It looks like the behavior of the auto closing braces and parentheses does not match that of the brackets.
Consider the following options:
If I have this code in my editor
then place my cursor inside the
{}
and press return, it results in this:which is expected. However, following a similar procedure with braces or parentheses results in this:
I would expect that, because braces and parentheses are included in the behaivor of
addClosing
, that they would indent in the same way as braces:The text was updated successfully, but these errors were encountered: