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:
Aiday Marlen Kyzy
2024-11-05 16:46:42 +01:00
committed by GitHub
parent 8baec4ffcd
commit da42cd4ffb

View File

@@ -246,5 +246,18 @@
"appendText": "\t",
}
},
// Add // when pressing enter from inside line comment
{
"beforeText": {
"pattern": "\/\/.*"
},
"afterText": {
"pattern": ".*"
},
"action": {
"indent": "none",
"appendText": "// "
}
},
]
}