mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
TypeScript: Adding slashes on new line when pressing enter from inside line comment with onEnter rules (#233101)
adding slashes on new line when pressing enter from inside line comment
This commit is contained in:
committed by
GitHub
parent
8baec4ffcd
commit
da42cd4ffb
@@ -246,5 +246,18 @@
|
||||
"appendText": "\t",
|
||||
}
|
||||
},
|
||||
// Add // when pressing enter from inside line comment
|
||||
{
|
||||
"beforeText": {
|
||||
"pattern": "\/\/.*"
|
||||
},
|
||||
"afterText": {
|
||||
"pattern": ".*"
|
||||
},
|
||||
"action": {
|
||||
"indent": "none",
|
||||
"appendText": "// "
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user