Are there any shortcuts that you use all the time that I didn't mention? Let me know what they are!
@kiprasmel5 жыл бұрын
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
@cyrep5 жыл бұрын
ctrl + pageUp/Down ctrl + D
@Luxcium5 жыл бұрын
Kevin Powell cmd+shift+L select all of the same token as under the cursor
@aquaductape5 жыл бұрын
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.
@digigoliath5 жыл бұрын
Duplicate & Delete Line
@abhinav.sharma5 жыл бұрын
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 Жыл бұрын
Thanks, now I can print it!
@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.
@burnblue5 жыл бұрын
Alt Shift Down to duplicate the line instead of moving it.
@DaveDesSmith2 жыл бұрын
For anyone seeing this in 2022. Bracket Pair Colourizer is now built into VSCode
@abhishekverma6145 жыл бұрын
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
@notrajanmali5 жыл бұрын
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!
@sherifsalah55635 жыл бұрын
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).
@notrajanmali5 жыл бұрын
immensely useful
@rashikkarmacharya80235 жыл бұрын
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.
@admiralrohan4 жыл бұрын
Searching for alt + 1 shortcut long time. Thank you.
@cintron3d5 жыл бұрын
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.
@jeffborges1015 жыл бұрын
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.38625 жыл бұрын
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.
@Luxcium5 жыл бұрын
Finally!!! (I am not a css person but I love your videos) and anything VSCode is amazing 😉
@siriusgd47535 жыл бұрын
Very helpful as usual Kevin. Thanks!
@fer86bd5 жыл бұрын
Its excelent!! it would save me so much time if watch it before, lol. But i still learn one new one. Thanks!!!
@fer86bd5 жыл бұрын
ctrl+shift+a comments the selected. And ctrl+tab swith between tabs (similar to alt+tab for windows)
@ericervin25134 жыл бұрын
excellent vid also great channel. Subscribed Thank you!
@ronidey3805 жыл бұрын
Ctrl + shift + p (on windows) Now you would see a list containing almost every command available on VS code.
@soulfly11025 жыл бұрын
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.
@KevinPowell5 жыл бұрын
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 :)
@JaredMSewell3 жыл бұрын
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.turtle67905 жыл бұрын
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 + ~
@digigoliath5 жыл бұрын
Awesome! I'm loving it. Thanks for the tips. Are we heading towards a great big cheatsheet? VS for coding fun!!
@KevinPowell5 жыл бұрын
A big cheatsheet is a good idea, thanks!
@ItsSunnyMonster3 жыл бұрын
0:00 Hmm... I wonder what is that white window... OBS Obviously
@rishabsharma53075 жыл бұрын
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
@carladilisio48193 жыл бұрын
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-girardot5 жыл бұрын
Ok ohh well... hmm.... THANKS KEVIN! You're the best!
@ABMA793 жыл бұрын
amazing and beneficial
@tomwolf63535 жыл бұрын
Hi, could you make a video about using the proper html outline algorithm?
@KevinPowell5 жыл бұрын
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-Richter5 жыл бұрын
CTRL + D - create additional cursor at next find location.
@ekimmike2002ify3 жыл бұрын
This is the one ive been looking for, thanks
@gopalloharnew59482 жыл бұрын
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 \/
@reviewex92264 жыл бұрын
god level
@joeldcanfield_spinhead5 жыл бұрын
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?
@KevinPowell5 жыл бұрын
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!
@techtips40195 жыл бұрын
you are awesome
@AH-cf9cv5 жыл бұрын
O' u back thanks #kevin.
@siriusgd47535 жыл бұрын
I see "Bracket Pair Colorizer 2". I'm assuming it's the same thing with fixes so that's the one I'm installing.
@mortkebab28495 жыл бұрын
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."
@KevinPowell5 жыл бұрын
Huh, that's interesting.
@anandk_jha3 жыл бұрын
"ctrl + right click" for multiple cursor is not working in my vs code, works perfectly fine in sublime
@BenjaminAster3 жыл бұрын
It's Alt+left click in VSCode.
@anandk_jha3 жыл бұрын
@@BenjaminAster thanks a lot
@obsidianmd4 жыл бұрын
6:26 control + alt + down/up when I do that my screen rotate is 180 degree working O.o
@castlemoyle5 жыл бұрын
Just don't get too rambunctious using that CTRL-W close combination. If you do it once too often, you'll also close Code!
@KevinPowell5 жыл бұрын
ctrl+q should quit code, not ctrl+w.... I'll have to test this, terrible oversight if it does close it!
@sadhlife3 жыл бұрын
@@KevinPowell it does close it
@manishsahani48675 жыл бұрын
Make a video on Skelton Screen with custom CSS
@KevinPowell5 жыл бұрын
A few people have been asking for this lately, I'll look into it a bit more :)
@manishsahani48675 жыл бұрын
@@KevinPowell please make a video. KZbin has some of the video regarding this topic but not clearly explained.
@thedacian1233 жыл бұрын
On Windows is alt+click not ctrl+click for placing the cursor in multipoe places
@Knards5 жыл бұрын
On my VS Code multiple cursers is Alt-click not ctrl-click
@ortania5 жыл бұрын
In my too
@onesandzeroes5 жыл бұрын
@@ortania Mine as well. But I'm on Linux - maybe it's a Linux thing?
@lonelylosersclub84532 жыл бұрын
Does anybody know what he means by control click? Because I’m pressing control and clicking my pad and it’s not working
@carolmckay51525 жыл бұрын
I use the extension Rainbow Brackets, not sure how this compares to Bracket Pair Colorizer.
@KevinPowell5 жыл бұрын
Looks similar, but it hasn't been updated in 3 years now. Not sure that matters for something so simple though :)
@carolmckay51525 жыл бұрын
@@KevinPowell Thanks for your response Kevin.
@Luxcium5 жыл бұрын
Bracket pair colorizer have a different version ‘2’ if you want
@Steve-Richter5 жыл бұрын
Can I collapse a region of html - example a nav or table section - then use down arrow somehow to move the entire section?
@KevinPowell5 жыл бұрын
I think so? Be worth testing out
@mayureshs805 жыл бұрын
What vs code color theme and font is it in the video ?
@KevinPowell5 жыл бұрын
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
@mayureshs805 жыл бұрын
Kevin Powell thank you for prompt response. Please update on font if you can
@mayureshs805 жыл бұрын
Kevin Powell did you get a chance to look up the font ?
@KevinPowell5 жыл бұрын
@@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
@marcelchaloupka4 жыл бұрын
Maybe b is for browser
@christopherwilson93585 жыл бұрын
Ctrl + [ and Ctrl + ] indent and outdent a line for you
@fer86bd5 жыл бұрын
nice one!!! thanks
@FranciL025 жыл бұрын
To toggle to the terminal for Mac is ctrl + ~ and not cmd
@KevinPowell5 жыл бұрын
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.
@FranciL025 жыл бұрын
@@KevinPowell np, always happy to help out
@songwright5 жыл бұрын
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?
@YaroLord3 жыл бұрын
look for 'hover' in the settings and disable it
@jaynj9085 жыл бұрын
I am supriised they do let you detach the sidebar to another display
@myobjectivescoding5 жыл бұрын
How do you get better at css and responsive design
@avneet122845 жыл бұрын
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
@KevinPowell5 жыл бұрын
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-solution5 жыл бұрын
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, ..
@KevinPowell5 жыл бұрын
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-solution5 жыл бұрын
@@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 ..
@syediqbalahmed31765 жыл бұрын
good
@ankitgupta91555 жыл бұрын
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.🙏🙏🙏🙏
@KevinPowell5 жыл бұрын
I've never used Python so I don't think I'm the right person to help here.
@ankitgupta91555 жыл бұрын
@@KevinPowell oK sir , Thanks for Your reply and Your videos help me much in designing basically CSS and thanks for being here.
@malangope5 жыл бұрын
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.
@ortania5 жыл бұрын
Great lectures!!! Ctrl+/ to add a comment. Works in all CSS/SCSS/JS/Html
@KevinPowell5 жыл бұрын
Oh, how did I not include that, might be the one I use the most!
@gaafgeel68555 жыл бұрын
Isn't there some cheatsheet with all these things?
@KevinPowell5 жыл бұрын
Yup, there are a few out there.
@lorezyra3 жыл бұрын
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.
@FirdavsiGameDev5 жыл бұрын
Why not atom or sublime?
@KevinPowell5 жыл бұрын
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.