You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[html] "Expand selection" misses { } in <script> tag #85306
Because "expand selection" is language-aware, you can't use it to expand to block scope {....[cursor is here]....} in a mixed HTML/Javascript file. Coding within the <script> tags, "expand selection" still looks for HTML "scopes" to expand to.
Aren't there extensions that will do this?
I have tried many, many, and all fail in mixed HTML/CSS/JS files in one way or another.
So, my request is either
"expand" to recognize when it's in a <script> tag, or
alternatively allow the user to toggle a "universal" mode, so that expand always just expands to ANY* next bound (matched-character pair {[(<, delimiter _-, whitespace)
*these bounds could be user-configurable.
I'm wondering if the cause of this is related to #85411 (can't "rename symbol" within <script> tags) in which case perhaps both individual issues should be closed in favor of something like, "some editor features do not work within <script> tags."
Activity
vscodebot commentedon Nov 21, 2019
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
ultraGentle commentedon Nov 22, 2019
I'm wondering if the cause of this is related to #85411 (can't "rename symbol" within <script> tags) in which case perhaps both individual issues should be closed in favor of something like, "some editor features do not work within <script> tags."
[-]"Expand selection" misses { } in <script> tag[/-][+][html] "Expand selection" misses { } in <script> tag[/+][html] "Expand selection" misses { } in <script> tag. Fixes microsoft…
aeschli commentedon Dec 3, 2019
To verify:
Expand Selectionmultiple timesultraGentle commentedon Dec 3, 2019
Confirmed! Much appreciated.