If you want to write code faster, don’t use the Sidebar in VS Code. It will slow you down! As a developer, your goal should be to keep your hands off of the mouse as much as possible. To do that, you should learn to use the built-in shortcuts in VS Code as well as a few amazing extensions. Learn how you can work with your files in VS Code without using the File Explorer or the Sidebar.
Advanced New File Extension –
File Utils Extension –
FREE VS Code Cheat Sheet –
Learn Everything About VS Code –
_____________________________________________
Newsletter 🗞
Interested in exclusive content and discounts? 🤯 Sign up for the…
source
This post was automatic generated with this wp-automatic-plugin
Who uses a mouse… I use very few shortcuts, I wish I could turn most of them off.
What do you think about vim extension for vscode ?
I tried it (I am not a vim user so not used to it), very interesting, big potential but for some reason I can't stick with it and always disable the extension at some point. And then sometime I'm like arf I could have done that without my mouse if I used vim extension. it's kind of a dilemma for me
Ctrl+k ctrl+w to close all tabs rather then ctrl+w for one at a time
5:51 Matter of fact, file utils has the "Advanced new file" extension built into it
Maybe that wasn't the case at the time of the recording of the video, but now you only need file utils
2:08 There's also a command "Close all active editors" or something of the like, that closes all tabs *except the pinned ones*, really useful if you keep opening files and need to close them all
How is your cursor wiggly like this? And which theme are you using?
i have question how can i get that logos on sidebar?
ctr + w to close files
i thought may be ctr + shift + w will reopen it.
Nice. Thank you.
awesome workflow. thanks
In addition to ctrl+W, ctrl+shift+T undoes close tabs like ctrl+Z undoes actions.
In addition to ctrl+tab, adding shift to that reverses the selection direction if you keep pressing tab.
Similarly, ctrl+pgup switches you to the tab to the left (pgdn goes right) cycling to the end (beginning) if it's reached and adding shift to this moves the tab you're in currently in that direction but doesn't cycle. This also cycles through split views as well but the shift modifier will not move across views, see below.
Lastly, ctrl+alt+right arrow moves the tab to the right split view (left arrow left) or creates a new view if you're at the end. The UI gets really janky if too many are open, probably dependent on your monitor size. I can get up to 6 horizontal views before things start breaking: there's a scrollbar that's hard to access, file contents remain where they are instead of following their view when that scrollbar is used, things overlap the sidebar, etc.
WARNING: DO NOT TEST FILE UTILS DELETE IN YOUR big.test.js file. It will be very bad. Very, very bad.
And then you wind up just a Youtuber.
Additional tip – if you want to switch instantly between open tabs (without having to see the list of files):
Ctrl + Page Up
Ctrl + Page Down
Will jump back and forth between your currently open source files. Same shortcut works for most tabbed web browsers too.
At 2:05 I think Ctrl+k+w would have closed all the tabs at once instead of pressing Ctrl+w 5 or so times
Stop telling me what to do…
ctrl + j to open/close the terminal
Very useful video, thank you!
this video is sponsored by linux.
Speaking of efficiency this is one hell of a long video for something so simple
The better you can be "hands down" – haha
frequently I watch your short footages which are very useful and help me a lot, thank you.
One thing I don't get is why are you OK with pressing Ctrl+Shift+P for just opening Command Palette? It's PITA.
F1 should have been the most mentioned go-to shortcut, IMO!
Sucha amazing thing rock you!
How does he make CMD + N calls for new file in advanced-new-file ?
you can also switch between tabs on mac by pressing option+command+right arrow or left arrow
I have been a shortcut user since WordStar.. minimalistic usage of mouse. Thanks for this video
CTRL + K + C => comment line or block of lines
CTRL + K + U => Remove comment
CTRL + 1 or CTRL + 2 or CTRL + 3 (….) => switch between views
CTRL + ALT + ARROW_KEYS => Move open file for other view
I like this guy's channel but sometimes I feel like it's GDQ, CDQ – code done quick, which is not a good philosophy to go by
Great tip. I stopped using the sidebar as well and definitely improved my experience in vscode and production in general.
Can someone tell me why people use different IDES for different programming languages instead of using VS Code to write variety of languages?
In my opinion, i think it is due to the white output which make it hard to look in terminal
downvoted … its visual for a purpose .. might as well call it search studio code ?
Thanks for the video, this was very beneficial to learn some shortcuts. I concur that keeping hands on the keyboard will increase productivity overall.
Don't learn too much shortcuts, one day you will work with different program that don't have these shortcuts.
now I'm trying to write some code without vim keybindings (because reasons!), and I find it much harder to unlearn shortcuts than pick them up.
(“Cmd + K”, “M”) Is a really good one for changing the file type. When I create new files, I generally do:
1. (“Cmd + N”) New File
2. (“Cmd + K”, “M”) Select File Type
2.5 (I often write the code here before moving it)
3. (“Cmd + Shift + P”, “Move”) move the file to right directory
how to you bring back the activity bar on windows?
The video starts at 1:44