diff --git a/language-configuration.json b/language-configuration.json index 9ac8681..6579f86 100644 --- a/language-configuration.json +++ b/language-configuration.json @@ -11,7 +11,7 @@ "autoClosingPairs": [ ["{", "}"], ["[", "]"], - ["(", ")"], + ["(", ")"] ], "surroundingPairs": [ ["{", "}"], @@ -20,7 +20,23 @@ ["<{", "}>"] ], "folding": { - "offSide": false, + "offSide": false }, - "wordPattern": "([a-zA-Z][a-zA-Z0-9_]*)" + "wordPattern": "([a-zA-Z][a-zA-Z0-9_]*)", + "onEnterRules": [ + { + "beforeText": "^\\s*//[^/].*$", + "action": { + "appendText": "// ", + "indent": "none" + } + }, + { + "beforeText": "^\\s*///.*$", + "action": { + "appendText": "/// ", + "indent": "none" + } + } + ] }