Placeholder Image

Subtitles section Play video

  • how everybody kinda hear from Web does simplify.

  • We make the Web easy to understand and accessible for everyone.

  • Now, if you're anything like me, you sit in front of a computer most of your day coming away in your favorite text editor.

  • In order to make this a more enjoyable and efficient experience.

  • It's important that you make sure you know the most important keyboard shortcuts in order to save the most amount of time while editing.

  • This is why I'm going to go over the 10 most important keyboard shortcuts that every programmer should know, because I've seen far too many people not know these simple commands, which would say them hours of time over their lifetime.

  • So let's get started now before we get started.

  • I want to preface this video by saying that if you are an experienced programmer, then you may already know all the shortcuts on this list.

  • I would still recommend washing because there may be one or two that you are not familiar with.

  • But just be aware that you probably know most of the items on this list, and I have them all LinkedIn description below, so you could jump directly to the ones that you don't know and skip over the ones you do know.

  • I also want to mention that while these are very common keyboard shortcuts, they may not work in every single editor.

  • I've tested them in most modern editors, so you shouldn't have to worry about using them and editors such as Visual Studio Code Adam Sublime, etcetera.

  • But there may be certain editors or ideas that they don't work in.

  • And in that case, I would just recommend looking at the settings for that editor.

  • And it'll tell you exactly what the key binding is.

  • Because all these shortcuts are in these editors, they just may have a slightly different keep biting.

  • Also, all the key bindings that I list are going to be for Windows.

  • So if you're using the Mac, just make sure to swap out control with command, and all of these will work for you.

  • The first shortcut that I want to talk about is definitely the easiest one and one that you probably the most familiar with, and that's copy cut and paste, but in a way that you may not be used to using it as you all probably know you can use control C to copy something that you've highlighted.

  • You can then use control V to paste that thing that you highlighted.

  • And then you can't use control X, which will cut what you've highlighted and allow you to paste it just like copy.

  • But what you may not know is that if you have nothing highlighted and you just have your cursor on the line and you clipped control C to copy something like this, and then when you go to paste it, it'll paste that entire line, including the line break.

  • So if I go down here and I hate control V, it'll pace that entire line, and it will paste it in the wine directly above wherever your cursor is.

  • It works the same with control.

  • Ex Soviet control X.

  • It cuts out that entire line, mind breaking all, and then I can paste it down later, Just like that with Control V.

  • The next door cut that I want to talk about is one that I used every single day, and that's a way to easily comment an uncommon lines of code.

  • For example, if your debugging something, we're just running an application and wanting to swap out certain parts of code quickly and easy way to do that is to comment out the lines.

  • But it kind of sucks having to go in and write comments on all the lines or surrounded by a bought comment.

  • So easy way to fix this is just highlight whatever code you want to comment and click control.

  • And in the fourth slash and no comment all the lives you've highlighted and then all you need to do is re highlight that hit the same command, control and forward slash.

  • And it'll uncommon all the lines that air commented.

  • This is an amazingly useful command that I use all the time by programming.

  • The next command is control P, which will allow you to search for a file inside of your project.

  • So, as you can see on the left, here I have a few files my project.

  • And if I take control P, I get a search bar that allows me to search my files by name.

  • So if I wanted to find my index dot html, just type in index HTM.

  • Oh, have I enter it opened up that file for me inside of my editor.

  • This is incredibly useful when you want to go through all the different files inside your project and easily spot between them without having to search through all the different folders that you have instead of your sidebar.

  • The next shortcut is another one that you guys probably have already used before, and that's control F and control Shift F.

  • So control F lets you do a find inside of whatever file you have open.

  • So if I hate control, F and I search for assets, for example, you could see it highlights all the different assets that I have inside this file.

  • If I click enter, it allowed me to cycle through the different assets and all the words that match that I could search for something else.

  • For example, research for this variable background music.

  • My actor, you sale cycle through all those different variable names, so that's incredibly useful.

  • And then, if you want to search throughout your entire project, you can use control Shift F, which will open up a search bar over here.

  • And if I search for assets, for example, over here, it'll show me all the different files where I've used that word assets and a lot of majors click on it and go exactly that line in that file, which is incredibly useful.

  • Another amazing extension that saves me tons of time is the ability to indent and un invent multiple lines at a time.

  • So, for example, if I wanted to invent these three lines, one indentation further, all I do is highlight them and then click tab and we'll end it all those lines by one tab.

  • I did this as many times as I want, but if I wanted a new indented, I just hold down shift and click tab again, and I will do the exact opposite and un invented by one tack every single time that I click it.

  • The next shortcut may not be the most useful in larger projects where you want to specifically say where you need your files to go, but when you need to just create a new file quickly, you can just hit control and and open up a brand new file for you that you can then save and designate where you want to save to.

  • This next shortcut is incredibly useful when you need to change things inside of a line while writing code.

  • For example, if I wanted to change this to be asset instead of assets, I go here, Do we pass it?

  • And then, if I wanted to add a new line after it, normally I would have to arrow over or click on the end of the line and then click enter to get to the next line.

  • But if I'm over in the middle of my line here and I want to create a new one, all I can do is hit control and enter automatically create a new line and put my cursor on it, no matter where my cursor is in the line above it.

  • Arguably the most important keyboard shortcut on this list is probably one of the simplest, and that's using control, plus one of the arrow keys.

  • This allows you to jump ahead an entire word at a time, as opposed to one character at a time.

  • As you can see, my cursor is slowly moving to the right here as I click.

  • I could move it to the left one word at a time if I had left her key.

  • This is incredibly useful.

  • For when you want to navigate across your project, or even if you want to eat a whole word at once.

  • If you hit control and I had back space, for example, you'll believe that entire word, as opposed to just a single character.

  • You can also confined this with our next shortcut, which is holding downshift and the arrow key to highlight things.

  • One character to time.

  • And if you hold down control, it'll do this one word at a time, as opposed to one character at a time.

  • As long as you just keep that shit keyhole down.

  • It'll highlight everything that you want so you can highlight specific things to leave them, as you need for whatever your purposes are.

  • And we finally got to the last shortcut our list, which is actually a collection of three different shortcuts that are all very simple to use, and you probably already know them.

  • But they're incredibly useful when your programming, the 1st 1 is my favorite shortcut, which I literally use all the time.

  • It's just a habit right now, and that is control s in order to save your file all the time, as I'm writing different code, just take control us every single time.

  • I stopped cutting just to make sure I have everything saved.

  • It's a habit of mine, and it's incredibly useful in case your computer dies or your text editor closes without something being saved.

  • We always have your code saved, which is incredibly useful.

  • The next shortcut is control A, which allows you to highlight everything inside of a file.

  • Once so they hate controlling, you'll see that it's select all the text inside of my file.

  • I could delete it, for example, to remove everything in that file, which is the most common use case I use for control A.

  • Or I use it in order to copy an entire final, which I also use all the time.

  • As you saw there.

  • The next set of shortcuts is the undo key, which is Control Z.

  • So control Z laws mean undo something.

  • So if I delete this, I could just hit control Z and it'll undo that and allow me to have everything as it was, and then the reverse of that is going to be controlled ship dizzy, which allows you to redo something that you've undone.

  • Some text editors will have control.

  • Why be the undo key?

  • So you just have to make sure and see which one it is.

  • In your text.

  • Editor, I'm using visuals to do a code where you can use either control Z control, shift C or control.

  • So if I put this here and I use control, why you'll see a ndez it or if I use control strip, see it un does it as well.

  • So it really depends on the editor that you're using.

  • And that's really all of the essential shortcuts that you need to know.

  • I'm gonna go over a quick recap of all the shortcuts.

  • Have it covered so that you make sure you have all of them in your memory.

  • The 1st 1 is to build a cut copy and paste lines at a time by not highlighting anything and that choosing control C for copy control, expert cut and control V for paste.

  • The next thing that we talked about was using control plus the Ford Slash in order comment out any Cody of highlighted or the line that your cursor is on and that allows you to comment and uncommon so it essentially works is a taco which is incredibly useful.

  • The next thing that we talked about is using control p to search for a file by name that's inside of your project.

  • And then we went on and we talked about using control left and control Shift at to search for either inside of your file with control F or inside of your entire project using control Shift F.

  • We then went on and talked about using tab and shift have in orderto in debt and unending entire lines for entire highlighted sections of code all at once, which makes for men in your code much easier.

  • Then we talked about using control end to create new files quickly, without having to go into your editor and clip where you want the file to be created.

  • Then control enter allows you to create a new line that's below whatever line your cursor is without actually mattering where your cursor is inside of the line, whether it's in the middle of line beginning on the line end of the line, it always creates a new line that's completely blank for you after the line you're cursors on.

  • Then we talked about using control, plus the arrow keys in order to move entire words at a time and shift plus the arrow keys in order to build a highway.

  • Single characters or words if we combine it with control while we use shift and the arrow keys.

  • And then lastly, we talked about three shortcuts.

  • Control a toe, highlight every single thing.

  • An entire file control s to save the current file that you have opened and in control Z toe, undo and control, sip, see or control.

  • Why?

  • To redo whatever you've undone.

  • So I really hope you guys enjoyed this quick video about the different shortcuts that are incredibly useful will save you tons of time over your career as a programmer.

  • If you did enjoy it, please make sure to leave a light down below so that I know you're enjoying the content and let me know in the comments below what shortcuts that you think that I've missed.

  • I want to make a follow up video to this in the future, going over visual studio code specific shortcuts.

how everybody kinda hear from Web does simplify.

Subtitles and vocabulary

Click the word to look it up Click the word to find further inforamtion about it