VS Code: How to Select Huge Divs Easily!



๐Ÿฆธ Become A VS Code SuperHero Today: https://vsCodeHero.com
๐Ÿง‘๐Ÿพโ€๐Ÿคโ€๐Ÿง‘๐Ÿฝ Join my Discord developer community: https://discord.gg/A9CnsVzzkZ

Have you ever tried to select a huge div using your mouse, and by the time you get to the bottom you canโ€™t figure out where the ending div is?

Thereโ€™s a couple of ways to make this easier:
1. You can use code folding. Just fold the div by clicking the down arrow in the gutter next to the line number. Or use the keyboard shortcut Ctrl+Shift+[. That will collapse the section and you can now easily select the entire thing with your mouse.
2. Or, if you want to only use your keyboard, use the balance out and balance in emmet commands.
a. Your cursor can be anywhere inside the tag you want to select.
b. From the command palette, search for balance outward to select the entire element.
c. Thereโ€™s also a balance inward command that will select the next child.
d. To make this even easier, go to your keyboard shortcut settings and bind Ctrl+Alt+B or balance outward and Ctrl+Alt+V to balance inward.
e. Now you can quickly select select entire levels of elements in your HTML, JSX, or other markup.
_____________________________________

๐Ÿ› ๏ธ Tools I use:
๐ŸŸ  codeSTACKr Theme: https://marketplace.visualstudio.com/items?itemName=codestackr.codestackr-theme
๐ŸŸ  STACKr Code Font (Exclusive to my VS Code Course – https://vsCodeHero.com)
๐ŸŸ  SuperHero Extension Pack: https://marketplace.visualstudio.com/items?itemName=codeSTACKr.superhero-extensions
_____________________________________

๐Ÿ’– Show support!
PayPal: https://paypal.me/codeSTACKr
_____________________________________

๐Ÿ‘€ Watch Next:
Playlist: Web Development For Beginners – https://www.youtube.com/watch?v=Ez4yHS2dsN8&list=PLkwxH9e_vrAJ0WbEsFA9W3I1W-g_BTsbt
_____________________________________

๐ŸŒ Connect With Me:
Website: https://www.codestackr.com
Twitter: https://twitter.com/codeSTACKr
Instagram: https://instagram.com/codeSTACKr
Facebook: https://facebook.com/codeSTACKr
_____________________________________

** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.

#codeSTACKr #vscode #learntocode

source

You May Also Like