Unlock VS Code Efficiency with these Hacks

  Рет қаралды 35,871

Kevin Powell

Kevin Powell

Күн бұрын

Пікірлер: 110
@KevinPowell
@KevinPowell 5 жыл бұрын
Are there any shortcuts that you use all the time that I didn't mention? Let me know what they are!
@kiprasmel
@kiprasmel 5 жыл бұрын
Hey Kevin - you seem like someone who'd enjoy vim - it allows you to minimize the amount of things you need to do with your mouse. Ever since I started using it and learnt a little, I now use it for lots of shortcuts, in a lot of programs, also as a browser extension and obviously in vscode:D Definitelly recommend; just know that the learning curve is quite steep, but I'm sure you can do it:D
@cyrep
@cyrep 5 жыл бұрын
ctrl + pageUp/Down ctrl + D
@Luxcium
@Luxcium 5 жыл бұрын
Kevin Powell cmd+shift+L select all of the same token as under the cursor
@aquaductape
@aquaductape 5 жыл бұрын
1. You can replicate tabbing in browser with setting this code in keybindings.json. Ctrl+Shift+p and type keyboard and then select Open Keyboard Shortcuts(JSON). { "key": "ctrl+tab", "command": "workbench.action.nextEditor" }, { "key": "ctrl+shift+tab", "command": "workbench.action.previousEditor" }, 2. Install CSS Navigation extension, you can jump to class definitions from html to css. If your project includes sass and css and want definition to jump to sass, go to settings and under CSSNavigation, go to Active CSSFile Extension, then remove css from the list. 3. Rename Symbol. Inside css file, put cursor over class name and press F2 which you can rename all occurrences of that class.
@digigoliath
@digigoliath 5 жыл бұрын
Duplicate & Delete Line
@abhinav.sharma
@abhinav.sharma 5 жыл бұрын
1. Alt + Z or ⌥ + Z → Word Wrap 2. Ctrl + Shift + E or ⌘ + Z → Open Explorer 3. Ctrl + P or ⌘ + P → Quickly get to a file 4. Ctrl + Shift + T or ⌘ + Shift + T → Reopen closed tab 5. Ctrl + W or ⌘ + W → Close current tab 6. Alt + _Number of tab_ or ⌥ + _Number of tab_ → Quickly switch to a tab 7. Alt + Click or ⌥ + Click → Multiple Cursors 8. Ctrl + Alt + ↑/↓ or ⌘ + ⌥ + ↑/↓ → Lining up multiple cursors 9. Alt + ↑/↓ or ⌥ + ↑/↓ → Switches the selected lines 10. Ctrl + ~ or ⌘ + ~ → Opens the Terminal ♥ Keep Creating Kevin!!! ♥
@keaton718
@keaton718 Жыл бұрын
Thanks, now I can print it!
@keaton718
@keaton718 Жыл бұрын
I knew about word wrap option and used to leave it on all the time, but I never thought about toggling it on and off only when needing to access long lines. That's a good tip.
@burnblue
@burnblue 5 жыл бұрын
Alt Shift Down to duplicate the line instead of moving it.
@DaveDesSmith
@DaveDesSmith 2 жыл бұрын
For anyone seeing this in 2022. Bracket Pair Colourizer is now built into VSCode
@abhishekverma614
@abhishekverma614 5 жыл бұрын
I was here just for that multiple-cursor trick in VS which I have watched a lot in your tutorials...thanks a lot, sir...it is just a life savior for me
@notrajanmali
@notrajanmali 5 жыл бұрын
One shortcut I really like is Ctrl/ Cmd + Page up and Ctrl/ Cmd + Page Down for toggling through tabs sequentially when you have multiple tabs open. Another setting, not a shortcut per se I make sure to turn on is formatOnSave, really saves me time from having to manually format my code. Another great video as always Kevin, really appreciated this one. Cheers!
@sherifsalah5563
@sherifsalah5563 5 жыл бұрын
Some of these shortcuts are awesome, thank you so much. Btw, you forgot to mention ctrl+d to select matching text through the whole file and do quick edit and replace (i cannot live without it).
@notrajanmali
@notrajanmali 5 жыл бұрын
immensely useful
@rashikkarmacharya8023
@rashikkarmacharya8023 5 жыл бұрын
pretty useful that! alt+shift+DOWN should be included to rapidly copy lines of repeating codes, just as important in my opinion. emmet makes it easier but still it has its uses.
@admiralrohan
@admiralrohan 4 жыл бұрын
Searching for alt + 1 shortcut long time. Thank you.
@cintron3d
@cintron3d 5 жыл бұрын
Ctrl + shift + t Thank you, thank you, thank you! I hadn't heard of that one before but whish I knew about it years ago lol. I'm always closing the wrong tab too.
@jeffborges101
@jeffborges101 5 жыл бұрын
Kevin your videos are amazing. I was learning bootstrap. But after watching a few of your videos on css I think it's better learn CSS with you. It will give me more flexibility in the front end. I will start your course tomorrow. Thank you
@Noxxiee.3862
@Noxxiee.3862 5 жыл бұрын
When you are in the cmd + p menu (Mac), you can leave the marker on the file you want, press ctrl + return (on mac) at it will open it in a new pane. use cmd + a number(again on Mac) to navigate to a window.
@Luxcium
@Luxcium 5 жыл бұрын
Finally!!! (I am not a css person but I love your videos) and anything VSCode is amazing 😉
@siriusgd4753
@siriusgd4753 5 жыл бұрын
Very helpful as usual Kevin. Thanks!
@fer86bd
@fer86bd 5 жыл бұрын
Its excelent!! it would save me so much time if watch it before, lol. But i still learn one new one. Thanks!!!
@fer86bd
@fer86bd 5 жыл бұрын
ctrl+shift+a comments the selected. And ctrl+tab swith between tabs (similar to alt+tab for windows)
@ericervin2513
@ericervin2513 4 жыл бұрын
excellent vid also great channel. Subscribed Thank you!
@ronidey380
@ronidey380 5 жыл бұрын
Ctrl + shift + p (on windows) Now you would see a list containing almost every command available on VS code.
@soulfly1102
@soulfly1102 5 жыл бұрын
Hey Kevin, nice video. Would love to see how you organize your .sass files, especially the grid ones. It would be awesome if you can share. Keep up the good stuff.
@KevinPowell
@KevinPowell 5 жыл бұрын
Thanks for the suggestion :) - I keep changing how I approach my grids still. Once I find something that I'm most settled on I'll do a video on it :)
@JaredMSewell
@JaredMSewell 3 жыл бұрын
Great video with very useful information. Thank you. Not sure if my MAC is different than others. It seems to be sometimes. On MY MAC, in order to add more cursors, I have to do alt+click.
@fury.turtle6790
@fury.turtle6790 5 жыл бұрын
1. toggle word wrap W : alt + z M : opt + z 2. toggle the side bar W : ctrl + b M : cmd + b 3. toggle file explorer W : ctrl + shift + e M : cmd + shift + e 4. quick open a file W : ctrl + p M : cmd + p 5. reopen a tab you just closed W : ctrl + shift + t M : cmd + shift + t 6. close the active tab W : ctrl + w M : cmd + w 7. go to a specific tab that is open W : alt + number M : ctrl + number(I think???) 8. add cursor to lines above/below W : ctrl + alt + up/down M : cmd + option + up/down 9. toggle the terminal W : ctrl + ~ M : cmd + ~
@digigoliath
@digigoliath 5 жыл бұрын
Awesome! I'm loving it. Thanks for the tips. Are we heading towards a great big cheatsheet? VS for coding fun!!
@KevinPowell
@KevinPowell 5 жыл бұрын
A big cheatsheet is a good idea, thanks!
@ItsSunnyMonster
@ItsSunnyMonster 3 жыл бұрын
0:00 Hmm... I wonder what is that white window... OBS Obviously
@rishabsharma5307
@rishabsharma5307 5 жыл бұрын
Make a video on flexbox layout not teaching flexbox but making complex layout using flexbox and grids. And it would be awesome if you make a series on it
@carladilisio4819
@carladilisio4819 3 жыл бұрын
Make sure you have active the multiple cursor. I just figured that out because It wasn't working and I inspected the program to see If I had to activate some shortcut extension XD
@chlouis-girardot
@chlouis-girardot 5 жыл бұрын
Ok ohh well... hmm.... THANKS KEVIN! You're the best!
@ABMA79
@ABMA79 3 жыл бұрын
amazing and beneficial
@tomwolf6353
@tomwolf6353 5 жыл бұрын
Hi, could you make a video about using the proper html outline algorithm?
@KevinPowell
@KevinPowell 5 жыл бұрын
While I wish I could, the outline algorithm isn't actually implemented anywhere. It's an awesome idea that has no use sadly.... developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_HTML_sections_and_outlines
@Steve-Richter
@Steve-Richter 5 жыл бұрын
CTRL + D - create additional cursor at next find location.
@ekimmike2002ify
@ekimmike2002ify 3 жыл бұрын
This is the one ive been looking for, thanks
@gopalloharnew5948
@gopalloharnew5948 2 жыл бұрын
I don't think VS code need that much mouse movements ... because the keyborad shortcuts and easy keyborad navigation makes it almost mouse free ! Tell me what do you feel about it \/
@reviewex9226
@reviewex9226 4 жыл бұрын
god level
@joeldcanfield_spinhead
@joeldcanfield_spinhead 5 жыл бұрын
5:05 go to a specific open tab by #-if a Mac has Spaces, CTRL+n goes to Space n, but does nothing in VSC. dunno if the behavior is difference not using Spaces, but why would anyone not use Spaces on their Mac, eh?
@KevinPowell
@KevinPowell 5 жыл бұрын
I had trouble hunting this one down to be honest, since I'm on Windows. I had assumed it would be opt + n, since normally opt == alt on windows, but everything I saw had it as ctrl, which is a terrible key binding. I did see *a lot* of posts about how to change it to cmd + n though!
@techtips4019
@techtips4019 5 жыл бұрын
you are awesome
@AH-cf9cv
@AH-cf9cv 5 жыл бұрын
O' u back thanks #kevin.
@siriusgd4753
@siriusgd4753 5 жыл бұрын
I see "Bracket Pair Colorizer 2". I'm assuming it's the same thing with fixes so that's the one I'm installing.
@mortkebab2849
@mortkebab2849 5 жыл бұрын
On my VS Code (Insiders edition) alt-z was bound to "toggle zen mode" so I remove that binding and attached it to "toggle word wrap."
@KevinPowell
@KevinPowell 5 жыл бұрын
Huh, that's interesting.
@anandk_jha
@anandk_jha 3 жыл бұрын
"ctrl + right click" for multiple cursor is not working in my vs code, works perfectly fine in sublime
@BenjaminAster
@BenjaminAster 3 жыл бұрын
It's Alt+left click in VSCode.
@anandk_jha
@anandk_jha 3 жыл бұрын
@@BenjaminAster thanks a lot
@obsidianmd
@obsidianmd 4 жыл бұрын
6:26 control + alt + down/up when I do that my screen rotate is 180 degree working O.o
@castlemoyle
@castlemoyle 5 жыл бұрын
Just don't get too rambunctious using that CTRL-W close combination. If you do it once too often, you'll also close Code!
@KevinPowell
@KevinPowell 5 жыл бұрын
ctrl+q should quit code, not ctrl+w.... I'll have to test this, terrible oversight if it does close it!
@sadhlife
@sadhlife 3 жыл бұрын
@@KevinPowell it does close it
@manishsahani4867
@manishsahani4867 5 жыл бұрын
Make a video on Skelton Screen with custom CSS
@KevinPowell
@KevinPowell 5 жыл бұрын
A few people have been asking for this lately, I'll look into it a bit more :)
@manishsahani4867
@manishsahani4867 5 жыл бұрын
@@KevinPowell please make a video. KZbin has some of the video regarding this topic but not clearly explained.
@thedacian123
@thedacian123 3 жыл бұрын
On Windows is alt+click not ctrl+click for placing the cursor in multipoe places
@Knards
@Knards 5 жыл бұрын
On my VS Code multiple cursers is Alt-click not ctrl-click
@ortania
@ortania 5 жыл бұрын
In my too
@onesandzeroes
@onesandzeroes 5 жыл бұрын
@@ortania Mine as well. But I'm on Linux - maybe it's a Linux thing?
@lonelylosersclub8453
@lonelylosersclub8453 2 жыл бұрын
Does anybody know what he means by control click? Because I’m pressing control and clicking my pad and it’s not working
@carolmckay5152
@carolmckay5152 5 жыл бұрын
I use the extension Rainbow Brackets, not sure how this compares to Bracket Pair Colorizer.
@KevinPowell
@KevinPowell 5 жыл бұрын
Looks similar, but it hasn't been updated in 3 years now. Not sure that matters for something so simple though :)
@carolmckay5152
@carolmckay5152 5 жыл бұрын
@@KevinPowell Thanks for your response Kevin.
@Luxcium
@Luxcium 5 жыл бұрын
Bracket pair colorizer have a different version ‘2’ if you want
@Steve-Richter
@Steve-Richter 5 жыл бұрын
Can I collapse a region of html - example a nav or table section - then use down arrow somehow to move the entire section?
@KevinPowell
@KevinPowell 5 жыл бұрын
I think so? Be worth testing out
@mayureshs80
@mayureshs80 5 жыл бұрын
What vs code color theme and font is it in the video ?
@KevinPowell
@KevinPowell 5 жыл бұрын
I forget the font (I'm not on my computer right now and want to make sure I don't forget to reply), but the colour scheme is Atom One Dark
@mayureshs80
@mayureshs80 5 жыл бұрын
Kevin Powell thank you for prompt response. Please update on font if you can
@mayureshs80
@mayureshs80 5 жыл бұрын
Kevin Powell did you get a chance to look up the font ?
@KevinPowell
@KevinPowell 5 жыл бұрын
@@mayureshs80 haven't as I'm out of town for the weekend. I seem to think that I had changed it, and then went back to the default later on, which is Consolas
@marcelchaloupka
@marcelchaloupka 4 жыл бұрын
Maybe b is for browser
@christopherwilson9358
@christopherwilson9358 5 жыл бұрын
Ctrl + [ and Ctrl + ] indent and outdent a line for you
@fer86bd
@fer86bd 5 жыл бұрын
nice one!!! thanks
@FranciL02
@FranciL02 5 жыл бұрын
To toggle to the terminal for Mac is ctrl + ~ and not cmd
@KevinPowell
@KevinPowell 5 жыл бұрын
Oh no! I went too fast there :( I always find it strange when things are bound to ctrl on a mac, it's so rare! I'll put a note in the description, thanks for letting me know.
@FranciL02
@FranciL02 5 жыл бұрын
@@KevinPowell np, always happy to help out
@songwright
@songwright 5 жыл бұрын
This is all great but how to you turn off the helpful hints that VS Code keeps shoving in my face when I'm trying to type something?
@YaroLord
@YaroLord 3 жыл бұрын
look for 'hover' in the settings and disable it
@jaynj908
@jaynj908 5 жыл бұрын
I am supriised they do let you detach the sidebar to another display
@myobjectivescoding
@myobjectivescoding 5 жыл бұрын
How do you get better at css and responsive design
@avneet12284
@avneet12284 5 жыл бұрын
By practice. Watch Kevin's old videos and watch his course on Scrimba. Watch Brad Traversy' videos and take Jonas Schmedtmann' Udemy course on advanced css
@KevinPowell
@KevinPowell 5 жыл бұрын
As avneet said, practice is key. The more you build, the more you learn. Start small, go over the fundamentals, understand them and keep on pushing all the time.
@3-dog-solution
@3-dog-solution 5 жыл бұрын
Love the on going tutorials, bit jealous that you've actually got 'VS Code' working though. Many haven't: including me, and despite watching many many vids on the subject; this error constantly gets in the way. "phpcs: Request workspace/configuration failed with message: Unable to locate phpcs. Please add phpcs to your global path or use composer dependency manager to install it in your project locally." Set the path, reinstalled and set 'composer', then individually set the path to 'composer'. Nothing works, and as I say that error message pops up every time you open a CSS file, really frustrating. Currently still using Notepad++, it works. Perhaps, (with your superb teaching skills), you could do a TUT on the pitfalls of getting this horrid program to work as prescribed - just a thought. Oft' to watch one of your other CSS lessons now, can't get enough of your laid teaching style: really learning shed-loads since finding you on u-Tube. Many thanks, ..Many thanks, ..
@KevinPowell
@KevinPowell 5 жыл бұрын
Interesting, I've never did anything. I just installed it and it worked. I'd suggest Atom or Sublime if you're having trouble with VS Code. Are you using PHP anywhere? Really strange that that pops up when you open a CSS file.
@3-dog-solution
@3-dog-solution 5 жыл бұрын
@@KevinPowell Hello my beloved mentor, (serious here: cos your teaching techniques are somewhat bloomin' brilliant.) Just wish that I could afford to pay you something for your time, but being retired and on the state pension does that: (it makes you broke.) PHP wise: I'm running the Laragon Server with personal home page version 7.(something) installed: been through the rest of the WIMP WAMP Servers with varying degrees of success. I'll mention here that VS Code didn't work with any of them either. Ended up with Laragon cos it flipping well works right out of the box, and no faffing about with missing DLLs either. (EasyPHP I'm looking at you here, what a pain that was to set-up.) Note to self: (don't get distracted.) As I say: I'm running Notepad++ at this end with no problems whatsoever, .. I just wish it had some of the real cool features that VS Code has to offer, but unfortunately (++) hasn't got them; even with various plugins installed. Can't win them all: many thanks for replying ..
@syediqbalahmed3176
@syediqbalahmed3176 5 жыл бұрын
good
@ankitgupta9155
@ankitgupta9155 5 жыл бұрын
Hello sir , i have one query pls tell us how to install Python on vs code . I have already seen many videos but I am unable to understand. Your help will be greatful for me and others also.🙏🙏🙏🙏
@KevinPowell
@KevinPowell 5 жыл бұрын
I've never used Python so I don't think I'm the right person to help here.
@ankitgupta9155
@ankitgupta9155 5 жыл бұрын
@@KevinPowell oK sir , Thanks for Your reply and Your videos help me much in designing basically CSS and thanks for being here.
@malangope
@malangope 5 жыл бұрын
You didnt mention one of the best features of ctrl + p, which is you can search for something by just typing parts of the name. Like if you're looking for "index.html" you can just type inht and it will match INdex.HTml.
@ortania
@ortania 5 жыл бұрын
Great lectures!!! Ctrl+/ to add a comment. Works in all CSS/SCSS/JS/Html
@KevinPowell
@KevinPowell 5 жыл бұрын
Oh, how did I not include that, might be the one I use the most!
@gaafgeel6855
@gaafgeel6855 5 жыл бұрын
Isn't there some cheatsheet with all these things?
@KevinPowell
@KevinPowell 5 жыл бұрын
Yup, there are a few out there.
@lorezyra
@lorezyra 3 жыл бұрын
Why not use git? That way you can revert to the previously committed version should you accidently saved a file that should not have been saved.
@FirdavsiGameDev
@FirdavsiGameDev 5 жыл бұрын
Why not atom or sublime?
@KevinPowell
@KevinPowell 5 жыл бұрын
I used to use Atom, but tried out VS Code based on someones recommendation and loved it. I prefer it's git integration over atom and a few other small things. I still think atom is great though. I never got into Sublime.
How to get started with VS Code
17:48
Kevin Powell
Рет қаралды 96 М.
My top 5 most popular front-end tips
22:07
Kevin Powell
Рет қаралды 66 М.
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 42 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 143 МЛН
25 VS Code Productivity Tips and Speed Hacks
11:35
Fireship
Рет қаралды 2,4 МЛН
5 CSS mistakes that I see way too often
19:03
Kevin Powell
Рет қаралды 360 М.
Master VS Code's keyboard shortcuts in 13 minutes
12:50
Visual Studio Code
Рет қаралды 82 М.
Step up your CSS game using these selectors and combinators
19:41
Kevin Powell
Рет қаралды 182 М.
Powerful VSCode Tips And Tricks For Python Development And Design
15:50
Using CSS custom properties like this is a waste
16:12
Kevin Powell
Рет қаралды 182 М.
CSS Grid Alignment & Justification Without the Guesswork
13:17
Kevin Powell
Рет қаралды 8 М.
7 ways to deal with CSS
6:23
Fireship
Рет қаралды 1,1 МЛН
Can I clone this rotating, gradient, inner glow effect?
23:05
Kevin Powell
Рет қаралды 33 М.
30 Vim commands you NEED TO KNOW (in just 10 minutes)
10:27
typecraft
Рет қаралды 128 М.
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 42 МЛН