{ "comments": { "lineComment": "//", "blockComment": [ "/*", "*/" ] }, "brackets": [ [ "{", "}" ], [ "[", "]" ] ], "autoClosingPairs": [ { "open": "{", "close": "}", "notIn": [ "string" ] }, { "open": "[", "close": "]", "notIn": [ "string" ] }, { "open": "(", "close": ")", "notIn": [ "string" ] }, { "open": "'", "close": "'", "notIn": [ "string" ] }, { "open": "\"", "close": "\"", "notIn": [ "string", "comment" ] }, { "open": "`", "close": "`", "notIn": [ "string", "comment" ] } ], "indentationRules": { "increaseIndentPattern": "({+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"}]*)$)|(\\[+(?=((\\\\.|[^\"\\\\])*\"(\\\\.|[^\"\\\\])*\")*[^\"\\]]*)$)", "decreaseIndentPattern": "^\\s*[}\\]],?\\s*$" }, "onEnterRules": [ // Add // when pressing enter from inside line comment { "beforeText": { "pattern": "\/\/.*" }, "afterText": { "pattern": "^(?!\\s*$).+" }, "action": { "indent": "none", "appendText": "// " } }, ] }