mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-05 22:36:01 +01:00
fix: Restrict continue comment to whitespace separated slashes (#321230)
This commit is contained in:
@@ -242,8 +242,8 @@
|
||||
},
|
||||
// Add // when pressing enter from inside line comment
|
||||
{
|
||||
"beforeText": "(?<!\\\\|\\w:)\/\/\\s*\\S",
|
||||
"afterText": "^(?!\\s*$).+",
|
||||
"beforeText": "^\\s*//|\\s//\\s",
|
||||
"afterText": "^(?!\\s*$)",
|
||||
"action": {
|
||||
"indent": "none",
|
||||
"appendText": "// "
|
||||
|
||||
Reference in New Issue
Block a user