Ace Editor Adding Snippet With New Line Character
I am trying to add snippets for ACE Editor, I was able to achieve that by adding the snippets manually as follows. ace.define('ace/snippets/c_cpp',['require','exports','module'],
Solution 1:
you need to indent every line inside the snippet with a tab character, like this:
exports.snippetText = "\
snippet cl\n\
\tclass ${1:$FILE_NAME} {\n\
\t\t${2:contents}\n\
\t}\n\
"
Post a Comment for "Ace Editor Adding Snippet With New Line Character"