Add comment on next line when not at the end of the line comment in onEnter rules (#233219)
adding line comment when not at the end of a line
This commit is contained in:
Родитель
af4c2d2666
Коммит
e8e5333cbb
|
@ -228,5 +228,18 @@
|
|||
"appendText": "\t",
|
||||
}
|
||||
},
|
||||
// Add // when pressing enter from inside line comment
|
||||
{
|
||||
"beforeText": {
|
||||
"pattern": "\/\/.*"
|
||||
},
|
||||
"afterText": {
|
||||
"pattern": "^(?!\\s*$).+"
|
||||
},
|
||||
"action": {
|
||||
"indent": "none",
|
||||
"appendText": "// "
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
|
|
|
@ -252,7 +252,7 @@
|
|||
"pattern": "\/\/.*"
|
||||
},
|
||||
"afterText": {
|
||||
"pattern": ".*"
|
||||
"pattern": "^(?!\\s*$).+"
|
||||
},
|
||||
"action": {
|
||||
"indent": "none",
|
||||
|
|
Загрузка…
Ссылка в новой задаче