Skip to content

Commit

Permalink
HTML mirror cursor for microsoft/vscode#47069
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Dec 6, 2019
1 parent ab404d7 commit 2d1f0de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions release-notes/images/1_41/html-mirror-cursor.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions release-notes/v1_41.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,16 @@ Theme: Sapphire, Font: Hack

## Languages

### HTML mirror cursor

VS Code now adds a "mirror cursor" when you are editing HTML tags. This behavior is controlled by the setting `html.mirrorCursorOnMatchingTag`.

This feature works by adding a [multi-cursor](https://code.visualstudio.com/docs/editor/codebasics#_multiple-selections-multicursor) to the matching tag when your cursor moves into a HTML tag name range. Just like in multi-cursor mode, you can use word-wise deletion or word-wise selection. The mirrored cursor is removed when you move your cursor outside the tag name range.

One special case is entering space when the cursor is at the end of the opening tag: `<div|></div|>`. In this case, VS Code removes the inserted space after the closing tag name and exits mirror cursor mode, so you can continue to edit HTML attributes.

![HTML mirror cursor](images/1_41/html-mirror-cursor.gif)

### Ranking of auto-completed CSS properties

CSS auto-completion now ranks properties by their popularity:
Expand Down

0 comments on commit 2d1f0de

Please sign in to comment.