vscode-auto-close-tag icon indicating copy to clipboard operation
vscode-auto-close-tag copied to clipboard

Weird backticks behavior in JS code

Open mileskin opened this issue 5 years ago • 0 comments

Backticks behave strangely with the extension, at least in JS.

Without extension: when I type two backticks, two backticks appear and cursor is positioned after the backticks. When I press left arrow, cursor moves between the backticks, and I can start typing stuff.

With extension: when I type two backticks, two backticks appear and the cursor is positioned already between the backticks (this is nice, no need to move the cursor). However, when I start typing, the cursor moves to the right hand side of the backticks (obviously broken behavior). Alternatively, if I press left arrow (when to cursor is between the backticks), a new backtick appears on the left side of the initial backticks (again broken behavior).

mileskin avatar May 07 '19 06:05 mileskin