mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 09:18:59 +00:00
adding rules to indent from within [], (), {}
This commit is contained in:
parent
b40321263d
commit
d8a989efdd
|
@ -218,6 +218,33 @@
|
|||
"action": {
|
||||
"indent": "outdent"
|
||||
}
|
||||
}
|
||||
},
|
||||
// Indent when pressing enter from inside ()
|
||||
{
|
||||
"beforeText": "^.*\\([^\\)]*$",
|
||||
"afterText": "^[^\\(]*\\).*$",
|
||||
"action": {
|
||||
"indent": "indentOutdent",
|
||||
"appendText": "\t",
|
||||
}
|
||||
},
|
||||
// Indent when pressing enter from inside {}
|
||||
{
|
||||
"beforeText": "^.*\\{[^\\}]*$",
|
||||
"afterText": "^[^\\{]*\\}.*$",
|
||||
"action": {
|
||||
"indent": "indentOutdent",
|
||||
"appendText": "\t",
|
||||
}
|
||||
},
|
||||
// Indent when pressing enter from inside []
|
||||
{
|
||||
"beforeText": "^.*\\[[^\\]]*$",
|
||||
"afterText": "^[^\\[]*\\].*$",
|
||||
"action": {
|
||||
"indent": "indentOutdent",
|
||||
"appendText": "\t",
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
|
|
|
@ -838,7 +838,7 @@ suite('`Full` Auto Indent On Type - TypeScript/JavaScript', () => {
|
|||
});
|
||||
});
|
||||
|
||||
test.skip('issue #43244: indent when lambda arrow function is detected, outdent when end is reached', () => {
|
||||
test('issue #43244: indent when lambda arrow function is detected, outdent when end is reached', () => {
|
||||
|
||||
// https://github.com/microsoft/vscode/issues/43244
|
||||
|
||||
|
|
Loading…
Reference in a new issue