Skip to content

Commit efe7a0f

Browse files
committed
In 'log' snippet, put cursor inside quotes
Previously, triggering the 'log' snippet would generate two double-quotes as a placeholder parameter to the function, as in console.log(""). But this meant that the quotes were selected. To type text inside the quotes, you'd have to deselect the text manually, then move your cursor into the quotes. This fixes that problem.
1 parent 952798d commit efe7a0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

console_log.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<content><![CDATA[console.log(${1:""});
2+
<content><![CDATA[console.log("${1}");
33
]]></content>
44
<tabTrigger>log</tabTrigger>
55
<scope>source.js</scope>

0 commit comments

Comments
 (0)