10 Essential Keyboard Shortcuts For Programmers

  Рет қаралды 86,236

Web Dev Simplified

Web Dev Simplified

Күн бұрын

As a programmer we spend most of our day in front of a computer, and the majority of that time is spent in our favorite editor/IDE. Because of this, it is crucial that we are as efficient as possible in our editor of choice. This is where keyboard shortcuts come in. Knowing the proper keyboard shortcuts for each situation will save you time and make programming more enjoyable. In this video I will be going over the 10 most commonly used keyboard shortcuts that every programmer should know.
If you feel I missed any shortcuts please let me know down in the comments below.
Keyboard Shortcuts Article: blog.webdevsimplified.com/202...
[0:00] - Introduction
01. [01:45] - (Ctrl + C) Copy/(Ctrl + X) Cut/(Ctrl + V) Paste Whole Lines
02. [02:44] - (Ctrl + /) Toggle Comment on Highlighted Lines
03. [03:29] - (Ctrl + P) Open File Within Project By Name
04. [04:00] - (Ctrl + F) Find In File, (Ctrl + Shift + F) Find In Project
05. [04:51] - (Tab) Indent Highlighted Lines, (Shift + Tab) Unindent Highlighted Lines
06. [05:20] - (Ctrl + N) Create New File
07. [05:36] - (Ctrl + Enter) Create New Line Below Current Line Independent of Cursor Position
08. [06:10] - (Ctrl + Left/Right Arrow) Move Cursor Whole Words At A Time
09. [06:45] - (Shift + Left/Right Arrow) Highlight Characters With Arrow Keys
10. [07:04] - (Ctrl + S) Save File, (Ctrl + A) Select All, (Ctrl + Z) Undo, (Ctrl + Shift + Z)/(Ctrl + Y) Redo
08:47 - Recap of all Shortcuts
Twitter:
/ devsimplified
GitHub:
github.com/WebDevSimplified
CodePen:
codepen.io/WebDevSimplified
#KeyboardShortcuts #Programming #VSCode

Пікірлер: 139
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thanks for watching. Let me know if you have any shortcuts that you use everyday that I left out.
@sravanivemparala8378
@sravanivemparala8378 3 жыл бұрын
Thanks for providing such a useful shortcuts
@aasifnawaz7719
@aasifnawaz7719 2 жыл бұрын
Ctrl + D to copy the same line again
@TheKbax33
@TheKbax33 2 жыл бұрын
Holding Alt combined with arrow key up / down to move a line (or selection) of code up and down in a file without cutting it is good for re-arranging IF statements / SQL queries quickly. Holding Alt + Shift with arrow keys (or mouse) is also pretty great for vertically selecting lists and typing repetitive information once instead of 8 times. Both of these are extremely useful in SQL Management Studio / Visual Studio and i don't think the second one works in VS Code, but that second one is probably the single biggest time saver in SQL for me. It's an absolute beast. I wish everyone knew about these... if i need to clarify how to use the second one don't hesitate to ask!
@tengoputkaradze9639
@tengoputkaradze9639 2 жыл бұрын
Ctrl + Shrift + Arrow (Left/Right) - Highlight Words With Arrow Keys.
@vibonacci
@vibonacci 4 жыл бұрын
Shift + Delete = delete full line. Very nice one
@tahsinurrahman8761
@tahsinurrahman8761 3 жыл бұрын
it also copies the whole line
@yugi_comrade2938
@yugi_comrade2938 3 жыл бұрын
It doesn't work for me
@rahulranjan7004
@rahulranjan7004 2 жыл бұрын
@@yugi_comrade2938 ctrl + x is more efficient
@abutaymiyyahlectures
@abutaymiyyahlectures 2 жыл бұрын
@@rahulranjan7004 wow, thanks
@rahulranjan7004
@rahulranjan7004 2 жыл бұрын
@@abutaymiyyahlectures not a big deal..wlcm
@ask4144
@ask4144 4 жыл бұрын
ctrl+shift+ L = change all same names at the same time instead doing copy-paste *vscode*
@armantahery8432
@armantahery8432 2 жыл бұрын
it's super useful thank you mate
@asrithperuri629
@asrithperuri629 2 жыл бұрын
Super bro
@sircraigli1003
@sircraigli1003 2 жыл бұрын
Was looking for this one specifically Cheers mate
@stevecarr1247
@stevecarr1247 2 жыл бұрын
I have been looking for this specific information for years. Almost every tutorial coding video assumes you know this information/shortcuts. That has been my biggest frustration with learning how to code. Thank you so much!
@JaveGeddes
@JaveGeddes Жыл бұрын
I've seen a bunch of people use these shortcuts in their tutorials, and they never explain it.. I was specifically looking for these ones, and this is the first one I found actually explaining it. So thank you
@rauldeandrade
@rauldeandrade 3 жыл бұрын
cmd+enter is a life saver. I bought a whole keyboard just for the End key when I want to do this function. This is so useful. Thanks
@jinbo369
@jinbo369 2 жыл бұрын
i m jumping to the comment section here to find this shortcut lol
@BilliK1000
@BilliK1000 3 жыл бұрын
ctrl + L = highlight whole current line shift + Alt + up/down arrow = make copy of highlighted line
@bunyaminturun3152
@bunyaminturun3152 3 жыл бұрын
What is the shortcut of highlighting multiple line in Visual Studio 2019? thanks
@sayedrenaq7747
@sayedrenaq7747 3 жыл бұрын
ctrl + w to close the selected file ctrl + tab to switch between files That's what I discovered myself, hope that's helpful.
@mannymorales977
@mannymorales977 2 жыл бұрын
Great video, Kyle (as always) - thank you for sharing!
@JakeCodes
@JakeCodes 5 жыл бұрын
Yassssssss literally love the comment shortcut. I was definitely one of those guys that painstakingly added slashes to each and every line. At my first internship in college, my mentor showed me the comment shortcut and and I was like “what sorcery is this!! D:
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
I'm glad you enjoyed the video! The toggle comments shortcut has saved me countless hours of time especially when debugging, since I have to comment and uncomment lines over and over to check different fixes.
3 жыл бұрын
Thanks for the shortcuts, and for your videos in general! I didn't know about CTRL + Enter. Here I leave just a few that I also use every day, the problem is that I use a mac... So I'm also pasting the Command name, this way, it can be searched for windows or other keyboards languages: ctrl + J = Join Lines cmd + ] = Indent Line (like tab without selection) cmd + [ = Outdent Line (like shift + tab without selection) cmd + shift + K = editor.action.deleteLines
@inescadete780
@inescadete780 2 жыл бұрын
*The best shortcut:* To delete/replace the same word (for example "print") Ctrl+F (type the word to find all equal words) Alt + enter (click delete or type something to replace it)
@billbill997
@billbill997 2 жыл бұрын
OMG I WAS LOOKING FOR THIS EXACT SHORTCUT THANK YOU :))
@ibrahimshaikh6728
@ibrahimshaikh6728 3 жыл бұрын
Traversing selected word forward -> Ctrl + F3 Traversing the selected word backwards -> Ctrl + Shift + F3 These shortcuts save a ton of time for quickly going through the code to find next and previous occurences of variables.
@Milka-br1xw
@Milka-br1xw 3 жыл бұрын
thanks for the Video dude ctrl enter ist actually a life saver man
@ethanblackthorn3533
@ethanblackthorn3533 4 жыл бұрын
Awesome video. Thanks for sharing these shortcuts!
@dyepber
@dyepber 5 жыл бұрын
Excellent Video that deserves more views/likes. Keep up the great work!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thanks!
@nileshtiwari244
@nileshtiwari244 2 жыл бұрын
short and crisp, excellent video brother thanks
@marcusotter
@marcusotter 5 жыл бұрын
Great video, I didn't know about the copying without highlighting nor CTRL + Enter to get on a new line. Very useful! You missed one of my favorite shortcuts, ALT + Arrow up / down. Moves the whole line you're on up/down one row. Great for reorganizing code but most of all, it looks really cool ;)
@marcusotter
@marcusotter 5 жыл бұрын
Oh, I also wanted to add that CTRL + Slash to comment doesn't work on all keyboard layouts (for example, a Swedish one), so we can do CTRL + K + C (in that order) to comment the selected lines, and then CTRL + K + U (in that order) to uncomment.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Alt + Up/Down is not in all editors so I opted to leave that one out, but is fairly common. I also didn't know about the different layout of keyboard effecting commenting/uncommenting. That is really interesting.
@denn501
@denn501 Жыл бұрын
You can also use CTRL + Shift + Enter to create a new line above 👍
@jairaja6924
@jairaja6924 2 жыл бұрын
very useful video ,i watched many coders using slash in a minute, but i don't know how to do very very thank you bro
@abderrahmaneadam6144
@abderrahmaneadam6144 Жыл бұрын
thank you so much man ! you gonna save my life
@aris.konstantinidis
@aris.konstantinidis 4 жыл бұрын
Really useful! Thank you!
@Macatho
@Macatho 5 жыл бұрын
A good tip for productivity is to replace the function of caps lock with "Enter". Also if you have some macro on the left of your keyboard consider binding these to ()[] or curly brackets.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Interesting. I think my brain would hurt from trying to get used to using caps lock as a second enter key. Seems useful if you can get used to it though.
@moncefarajdal4582
@moncefarajdal4582 3 жыл бұрын
Damn man that would save me so much time. Thank you!
@mrmonkiy95
@mrmonkiy95 4 жыл бұрын
Thanks, Sooooo helpful!
@gopinathkrm58
@gopinathkrm58 5 жыл бұрын
Ctrl+F2 is also a nice shortcut to replace something every where in current file.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
That is a useful shortcut. Does it work in most editors, because I thought it was mostly only in VSCode.
@gopinathkrm58
@gopinathkrm58 5 жыл бұрын
@@WebDevSimplified I dont know about other editors but it works fine in VSCode
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
@@gopinathkrm58 I will have to checkout it out. Thanks for the suggestion.
@guchierrez
@guchierrez 2 жыл бұрын
you're a life savior, thanks
@ss_GOAT
@ss_GOAT 3 жыл бұрын
Great video Kyle! I would suggest a new video with summarizing updates from all the good stuff in this comment line..
@abdulrahmanahmad5854
@abdulrahmanahmad5854 3 жыл бұрын
thanks a lot man that was very helpful
@DukeJon1969
@DukeJon1969 3 жыл бұрын
Very concise video, thanks
@natechurch
@natechurch 4 жыл бұрын
ctrl+Enter runs a line of code in some languages like python.
@szsz1314
@szsz1314 3 жыл бұрын
so awesome!! you made my coding so easy!:)
@B3ASTM0DE1
@B3ASTM0DE1 5 жыл бұрын
Great video! I didn't know most of these!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thanks! I am glad you learned a few new shortcuts. Make sure you try to integrate them into your workflow now so they become habits.
@Wuozlinga
@Wuozlinga 3 жыл бұрын
Very helpful video. You earned the like
@abutaymiyyahlectures
@abutaymiyyahlectures 2 жыл бұрын
keyboard shortcuts are amazing :D
@LiveEveryMoment_WithLOVE.
@LiveEveryMoment_WithLOVE. 2 жыл бұрын
❤ owww,,, you make my life easier bruh,, thnx a lot man👍
@sportsandgaming3385
@sportsandgaming3385 2 жыл бұрын
thanks it is very helpful
@zyghom
@zyghom Жыл бұрын
I am in front of the computer for last ... 30 years and you killed me with the 1st one: copy/paste the whole line without selecting it ;-) wow!
@vinith2320
@vinith2320 3 жыл бұрын
Thank You So Much
@imadjett
@imadjett 2 жыл бұрын
Thank you bro
@erfanasbari4584
@erfanasbari4584 3 жыл бұрын
Nice Video! Good Job ;D
@seanhardman1964
@seanhardman1964 2 жыл бұрын
for apple its command not control. This was a super helpful video thanks.
@csfox3733
@csfox3733 3 жыл бұрын
thanks man :)
@toan6375
@toan6375 3 жыл бұрын
thanks so much
@huszartony4362
@huszartony4362 4 жыл бұрын
Thank you.
@David-mw5sd
@David-mw5sd 2 жыл бұрын
ctrl+enter is sick and didn't know of it lol
@drstrangelove9851
@drstrangelove9851 2 ай бұрын
Ctrl+Z has saved my butt many times.
@abutaymiyyahlectures
@abutaymiyyahlectures 2 жыл бұрын
07. is shift and enter instead of control enter for some conpilers
@noastraeus
@noastraeus 3 жыл бұрын
This video made me genuinely happy. There's no joke no sarcasm in what I just said, I just feel happier now that I know these :) *HOW DID I LIVE WITHOUT CTRL+/ ??* also thanks to the comments that posted very useful shortcuts too! Here's mine: the 'f2' key generally works as a shortcut to rename files, works in a lot of software, even on your desktop and windows file explorer, on Linux too I believe ;) Here's mine 2: alt+clicking on a different line gives you another cursor to write in multiple lines put your cursor at a location and alt+shift+click at anothe location will select in a rectangle allowing you to write on multiple lines too.
@armantahery8432
@armantahery8432 2 жыл бұрын
me too
@drstrangelove9851
@drstrangelove9851 2 ай бұрын
In Visual Studio you can just highlight the rows and press the comment button.
@abhigeek1308
@abhigeek1308 3 жыл бұрын
Hello Kyle! I have started using Visual Studio Code recently and have run into this issue. When I type any bracket symbol , it auto-generates the closing bracket, and I write inside the brackets. But how do I come out of the brackets without pressing the right arrow (I press Tab in Android Studio and it just takes me out of the brackets, which doesn't break my flow as I don't have to look down again and again to find the right arrow and press it.)
@ToriKo_
@ToriKo_ 4 жыл бұрын
Great video
@Tpendleton13
@Tpendleton13 3 жыл бұрын
ctrl + Enter!!! Thanks
@kameshsahu8124
@kameshsahu8124 5 жыл бұрын
Very useful video for programmers 👍👍
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
I'm glad you enjoyed it.
@jessicasanchez4556
@jessicasanchez4556 4 жыл бұрын
thank you
@rei.orozco
@rei.orozco 2 жыл бұрын
Amazing
@Makkele75
@Makkele75 3 жыл бұрын
I compare the habit of hitting CTRL+S (sometimes repeatedly) to wiggling the stick shift of my car when in neutral....
@gorilla-san
@gorilla-san Жыл бұрын
I just started learning Javascript and was like, dude do I really have to use my mouse and arrows nonstop to switch between lines as I always end up in the middle of the line with all the autocompletes. I was about to disable autocomplete as it's faster to type it all out than move my hand to the mouse. Never seen a cool kid in a movie use the mouse! This video answered all my questions :D Thanks dude edit: After typing the above comment, I was like, now I gotta move my hand to the mouse to hit the comment button, but I figured there must be another way, and instead hit enter (new line, didn't work), shift enter (new line, didn't work), *CTRL+ENTER* and it worked! Small wins
@ALEKSEY_77737
@ALEKSEY_77737 Жыл бұрын
thanks
@nowieszco868
@nowieszco868 4 жыл бұрын
Ctrl + Shift + arrow up/down in PhpStorm
@khandoor7228
@khandoor7228 5 жыл бұрын
Nice Vid I enjoyed it. What about CTRL + D to duplicate a line to next line. I use it a lot when i'm duping a bunch of imports and i just need to change one word or something. I just use it a lot in general. This is 'every time i code' usage.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
That is a good one. For me I just use CTRL + C followed by CTRL + V to duplicate. In some text editors CTRL + D is delete instead of duplicate, so I got used to using copy/paste instead.
@pipertripp
@pipertripp 4 жыл бұрын
@@WebDevSimplified , in VS Code SHIFT-ALT-Down Arrow will copy the current line and paste below. Up arrow does the opposite.
@vibonacci
@vibonacci 4 жыл бұрын
I use CTRL + D in Webstorm all the time. It's a huge time saver. Also changed the keyboard shortcut in VSCode to CTRL + D
@alpherer
@alpherer Жыл бұрын
How do I add block space or like after : Like this in multiple lines
@rareyman
@rareyman Жыл бұрын
In macOS, you use *option*-(←) or (→) to move cursor between words, not control or command. Just FYI. The idea that you just swap control for command on macOS is not always true for these shortcuts. 🙂
@unfriendly3255
@unfriendly3255 4 жыл бұрын
Btw nice font though..which font is this??
@stefmyt5062
@stefmyt5062 3 жыл бұрын
Hey, nice video and all. I just wanted to say that you have a really nice hairstyle. Cheers.
@nicopicco
@nicopicco 3 жыл бұрын
Started coding a few months ago...one thing that drives me up the f'n wall is having to hit END to add the ; at the end of the line. I can appreciate the brackets and quote marks of any kind is self contained...BUT having to go to the end of the line to do this ; is so redundant. Any suggestions? Am I doing this wrong by hitting the END button?? Thanks
@syedyousufhussain2725
@syedyousufhussain2725 3 жыл бұрын
how to get my cursor out from the curly brackets without pressing down arrow key because its annoying to take my hand from home row
@ilkeuyankerstudent5347
@ilkeuyankerstudent5347 3 жыл бұрын
Sad Story started to learning C++ but don't know how to do curly brackets on mac..
@neoTriny
@neoTriny 3 жыл бұрын
can anyone tell me about how to write arrays first, because each time the quotation has to be moves example: const animals = [ 'cat', 'dog', 'horse', 'sheep', 'bird'] how can I type these fast, is there any shortcuts to hop over the quotation, because both sides of the quotations is added automatically, that slow me down so much
@James-yz4cc
@James-yz4cc 2 жыл бұрын
I suggest setting the play speed to 1.25 or 1.5. Otherwise good video
@rwex1
@rwex1 3 жыл бұрын
When I hit sheft + ctrl + f it search in all the computer, I want it to search only in desktop
@joaop3268
@joaop3268 2 жыл бұрын
Anyone know a shortcut to go to the end of a line? to put the ";"
@omranshahrour7291
@omranshahrour7291 2 жыл бұрын
Which is incredibly useful 🤣
@KotekDev
@KotekDev 3 жыл бұрын
6:45 Is there possibility to select whole lines like that?
@LiveEveryMoment_WithLOVE.
@LiveEveryMoment_WithLOVE. 2 жыл бұрын
and is there any shortcut for commenting in VSC using /* */ ?
@dorryspears
@dorryspears 3 жыл бұрын
Make a video on alt commands
@naveenmutakoduru9506
@naveenmutakoduru9506 3 жыл бұрын
recap is good
@fqr1966
@fqr1966 5 жыл бұрын
Nice
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thanks!
@daxscholtz984
@daxscholtz984 4 жыл бұрын
How do you change all the highlighted text at the same time as you type? I've seen someone do it, so i know its possible.
@Eddcakes
@Eddcakes 4 жыл бұрын
in vs code you can use alt and click to add multiple cursor, you can drag to highlight text. Can also just hold middle mouse button and drag
@domac5979
@domac5979 5 ай бұрын
What about keybinds for adding {} or ""
@aryageneralstore230
@aryageneralstore230 2 жыл бұрын
whats the shortcut key to see web page of the website
@nadinerich55
@nadinerich55 3 жыл бұрын
i swear kyle is a robot XD
@ashwin2365
@ashwin2365 3 жыл бұрын
auto save option in vscode inside the file menu
@ejayballesteros9115
@ejayballesteros9115 3 жыл бұрын
Can you upload a tutorial plz
@Lyonnais1985
@Lyonnais1985 2 жыл бұрын
on my laptop its CTRL + * to comment code...
@tomwolf6353
@tomwolf6353 5 жыл бұрын
Hello, what keyboard do you use?
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
An old cheap Razer Deathstalker
@jesusmarcano1640
@jesusmarcano1640 4 жыл бұрын
no funcionan en el block de notas what a shame
@ilitted7586
@ilitted7586 2 жыл бұрын
What about shortcut key to run
@sicfxmusic
@sicfxmusic 2 жыл бұрын
Ctrl +, Ctrl - Ctrl Shift N Alt F4 You're welcome!
@naveenbasyal001
@naveenbasyal001 Жыл бұрын
known all of them
@hugojj101
@hugojj101 Жыл бұрын
this guy gives me sociopath vibes hah. ebie geebies
@dudeimadolphin4318
@dudeimadolphin4318 5 жыл бұрын
SUPER HANDY
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thanks! I'm glad my favorite dolphin found the video useful.
@dudeimadolphin4318
@dudeimadolphin4318 5 жыл бұрын
@@WebDevSimplified LMAO
@DoesMahBlockLookBig
@DoesMahBlockLookBig 3 жыл бұрын
tbh alt + f4 is more reliable that ctrl + s when saving your projects
@armantahery8432
@armantahery8432 2 жыл бұрын
dont be toxic
@jamesmears3419
@jamesmears3419 3 жыл бұрын
Mate, you don't code in a text editor. You code in an IDE. #IntelliJUltimate
@codeiha7487
@codeiha7487 3 жыл бұрын
Ctrl Shift K = Shift Delete: delete full line Ctrl Enter: add new line below Ctrl Shift Enter: add new line above Alt Up/Down: move line up/down Shift Alt Up/Down: duplicate line above/below Alt + multi click: edit multi select (you must try it, very very useful)
@ubermenschfallschirmjager7184
@ubermenschfallschirmjager7184 4 жыл бұрын
When I said you spend most of your time coding, I was surprised a little bit. A little bit odd for a good looking, handsome guy like you to be a 'nerd'. The stereotype for nerds is much different than you. You could be easily become a showman or even a politician! You could spend your time with beautiful girls, swimming in pools! Appreciate your youth and beauty son! Don't waste your time in front of a computer! 😂 Just kidding, programming and software development is the job of prophets! Keep on the good work!
@umairsaeed5055
@umairsaeed5055 4 жыл бұрын
😂
@naveenKumar-rk8wo
@naveenKumar-rk8wo 2 жыл бұрын
Audio sucks, on full volume it seems the guy is talking to himself
20 Keyboard Shortcuts You’re A Moron for Not Using
11:08
ThioJoe
Рет қаралды 1,9 МЛН
25 VS Code Productivity Tips and Speed Hacks
11:35
Fireship
Рет қаралды 2,2 МЛН
Barriga de grávida aconchegante? 🤔💡
00:10
Polar em português
Рет қаралды 29 МЛН
АВДА КЕДАВРАААААА😂
00:11
Romanov BY
Рет қаралды 12 МЛН
ASMR Programming - Spinning Cube - No Talking
20:45
Servet Gulnaroglu
Рет қаралды 3,5 МЛН
10 Tailwind Classes I Wish I Knew Earlier
13:31
Web Dev Simplified
Рет қаралды 150 М.
30 Windows Commands you CAN’T live without
14:35
NetworkChuck
Рет қаралды 2,1 МЛН
Keyboard Shortcuts Every Programmer Should Know
12:33
Hallden
Рет қаралды 120 М.
12 AMAZING Keyboard Shortcuts You Need to Know
10:18
Lea David
Рет қаралды 652 М.
Code faster with these VS Code shortcuts
8:44
Coder Coder
Рет қаралды 280 М.
How This Test Saved Kent’s Site
7:04
Web Dev Simplified
Рет қаралды 26 М.
15 Amazing Shortcuts You Aren't Using
12:34
BRIGHT SIDE
Рет қаралды 27 МЛН
15 Tips to Boost Your Productivity in Visual Studio
12:30
Microsoft Visual Studio
Рет қаралды 32 М.
Why keyboard shortcuts are an overpowered skill
5:56
Python Programmer
Рет қаралды 27 М.