Skip to content

Expand Selection To Tag (Ctrl + Shift + A) #11458

Closed

Description

@townivan

Working with HTML, I found this "expand selection to tag" feature very useful on other editors.

I'd LOVE to have this on vscode! Hopefully others agree.

expand select to tag

If your cursor is anywhere on the lorem line after the first < then Ctrl + Shift + A will select just lorem ipsum.

Then repeating that keystroke will expand the selection to the p tags, and then up the tree.

*Not sure how to add [feature-request] label :(

Activity

  1. added
    feature-request
    on Sep 7, 2016
  2. aeschli commented on Sep 7, 2016

    @aeschli
    Contributor

    We have 'expand selection' but it would expand only to the innermost tag. Anything we can do here, Johannes Rieken (@jrieken) ?

  3. jrieken commented on Sep 7, 2016

    @jrieken
    Contributor

    Today it works with the tokens and brackets which isn't very reliable. I close this as a dupe of #4795 which is about getting this right

  4. added
    *duplicate
    on Sep 7, 2016
  5. locked and limited conversation to collaborators on Nov 18, 2017
  6. ramya-rao-a commented on May 14, 2018

    @ramya-rao-a
    Contributor

    You can use the Emmet: Balance (outward) command for html files to achieve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicatefeature-requesthtml

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions