Skip to content

Commit

Permalink
Document textDocument/selectionRange support (#487)
Browse files Browse the repository at this point in the history
Closes #484

Signed-off-by: David Thompson <[email protected]>
  • Loading branch information
datho7561 authored May 31, 2021
1 parent f63fb7c commit 2eb21e2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/Features.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,14 @@ The same applies to jumping from an opening tag to the respective closing tag.

To rename a single tag and it's corresponding opening/closing, highlight the tag and press `F2` or use the dropdown to select `Rename Symbol`.

![Rename Tag](images/Features/RenameTag.gif)
![Rename Tag](images/Features/RenameTag.gif)

## Selection Range

You can use `Alt + Shift + Right Arrow` to expand your selection range according to the structure of the XML document.

For instance, if you expand the selection range in an element with text content, it will first select all the text content, then the element.

This also works for other portions of an XML document, such as attributes and the DTD subset.

![Selection Range](images/Features/SelectionRange.gif)
Binary file added docs/images/Features/SelectionRange.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2eb21e2

Please sign in to comment.