![]() 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. 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. You don't need to know all 400 plus keyboard keyboard shortcuts in Visual Studio Code, that is too many. 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 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |