mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
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:
committed by
GitHub
parent
af4c2d2666
commit
e8e5333cbb
@@ -228,5 +228,18 @@
|
|||||||
"appendText": "\t",
|
"appendText": "\t",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// Add // when pressing enter from inside line comment
|
||||||
|
{
|
||||||
|
"beforeText": {
|
||||||
|
"pattern": "\/\/.*"
|
||||||
|
},
|
||||||
|
"afterText": {
|
||||||
|
"pattern": "^(?!\\s*$).+"
|
||||||
|
},
|
||||||
|
"action": {
|
||||||
|
"indent": "none",
|
||||||
|
"appendText": "// "
|
||||||
|
}
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -252,7 +252,7 @@
|
|||||||
"pattern": "\/\/.*"
|
"pattern": "\/\/.*"
|
||||||
},
|
},
|
||||||
"afterText": {
|
"afterText": {
|
||||||
"pattern": ".*"
|
"pattern": "^(?!\\s*$).+"
|
||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
"indent": "none",
|
"indent": "none",
|
||||||
|
|||||||
Reference in New Issue
Block a user