Selecting block of code in vs code

2019-02-20 06:44发布

问题:

Is there a keyboard shortcut or an extension that would allow me to select a block of code? I'd like to select everything between curly braces, between html tags, etc.

回答1:

Try the expand-region extension. It currently works for javascript and html. To select ever-increasing or decreasing scope.



回答2:

Use alt + shift + to expand selection between braces or tags,
Use alt + shift + to shrink selection between braces or tags.

Here is vc shortcuts cheatsheet that might help you.