jewishjilo.blogg.se

Visual studio code collapse all shortcut
Visual studio code collapse all shortcut










So I've pasted that in here, and the reason I've done that is it allows us to change the bulb color with the application. When I said I made myself, what I did was I opened up Sketch, I made a light bulb, and I saved it as SVG. And the reason why you know that's the case is because it's really, really ugly, there's a lot of it. Let's scroll down here to the bottom and take a look at this SVG element. The next time you try to do that with copy and paste or highlight and delete, stop yourself, go back and use the proper shortcut. So that's moving, duplicating, and deleting, memorize those keyboard shortcuts. Again, you're saving yourselves keyboard strokes here by not having to highlight lines and then delete them or put them on your clipboard in some other fashion, Cmd+Shift+K is your friend. Instead of doing that, learn the keyboard shortcut, Cmd or Ctrl+Shift+K, that deletes lines. And again, a lot of times we need do that we grab a line, highlight it, delete it. Another thing that you'll do is you'll delete lines. You will duplicate lines a lot, it's another thing you do a lot, that's another keyboard shortcut that you really, really need to know, it makes your life a lot easier. So I can do down, or I can do up, you can't tell the difference, but it's duplicating them up and down.

visual studio code collapse all shortcut visual studio code collapse all shortcut

What you can do instead, is you can use Option+Shift and press down or up, and it would duplicate whichever line you're on exactly. You don't need to copy and paste in VSCode to duplicate. Another thing that you'll do is you'll duplicate lines, and a lot of times we copy and paste to do this. You'll use that one a lot, you will move lines a lot. If you grab a chunk of lines like this, then you can move them all around in one block with the Option up and down arrow. So if you're on the line, you can move lines around simply by holding down the Option key and pressing up or down, and you can move lines around. There's also an easier way to move things around in VSCode, and that's to use the oOption key on the line. Same thing for copy, if you Ctrl+C on a line, it gets the whole line on the clipboard and you move on, so you don't need to highlight and then copy or paste. You don't have to highlight it, that's just the default behavior. By the way, if you didn't notice, you don't have to highlight a line to cut it in VSCode, you can just cut it with the cursor. Now, when we're moving a line, like let's say we wanna move this title line up above the link line, normally, we highlight the line, cut it, and then paste it in.

visual studio code collapse all shortcut

One of the things that I use most often in VSCode is the ability to move lines. You don't have to worry about that just yet, but that's the only thing that I've added to our projects before, along with the requisite JavaScript to make this thing actually work. > Burke Holland: All right, so let's open up our index file here in our exercise three, and I have added a SVG element down here at the bottom. And if that's a keyboard shortcut, that's what you're gonna use. Human beings are remarkable creatures, your brain is always looking for the easiest way to get something done. And it's gonna figure out, it's a lot easier for me to just use this keyboard shortcut, and then you'll be astonished at how quickly your brain catches onto that. It's gonna make you slower initially, it will, but your brain is really good at optimizing. When you reach for your mouse, just ask yourself, could I do this with a keyboard shortcut? Do I remember Burke doing this with a keyboard shortcut? And then stop, go look up what that is, and then do it. You're going to wanna reach for your mouse to do a lot of things in Visual Studio Code. > Burke Holland: Don't worry, they'll tell you, right? So you don't have to be like that, but you do want to use your keyboard as much as you can. And how do you know if somebody uses Vim? I know that Vim people insist that that the editor is better because they only have to use the keyboard.

Visual studio code collapse all shortcut plus#

You don't need to know all 400 plus keyboard keyboard shortcuts in Visual Studio Code, that is too many.

visual studio code collapse all shortcut

And those are the 15 that I feel like are most important. I think there's like 15 total that I give you throughout the whole amount of exercises. So for the first three, you're gonna get five, three to five keyboard shortcuts. And I'm putting keyboard shortcuts in pretty much every single one of these exercises here. We also need to talk about some very essential keyboard shortcuts. > Burke Holland: Well, we already talked about prettier inside of JavaScript files. Transcript from the "Moving Code & Code Folding" Lesson










Visual studio code collapse all shortcut