Short recap for those who might not want to watch the full video: Ctrl + P: File search Ctrl + Tab: Switch between opening file tabs Advanced New File from Extension Marketplace => Ctrl + Shift + P (or do a custom shortcut like James demonstrated) File Utils Extension from Extension Marketplace => Ctrl + Shift + P again P/S: I love the VSCode customization video you did previously James!
I've been a developer for over 40 years now, and I can safely say that "writing code faster" is one of the lesser useful skills to have. I actually spend most of my time 'thinking' about code, not editing code. Saving the odd few seconds when editing would make very little difference to my overall productivity.
Finally some truth of out experienced person, rather than focusing on learning this short keys use what you are comfortable with and focus on what is important not this bs. no offense he is just making a content and everything maybe for some people it is useful
I subscribed a minute into this video in do part to your emphasis on improving short cuts. This is the sort of content I have been looking for. I am excited to see what the rest of your content has to offer!
I use neovim but it take some time to configure it to have good setup, but vscode has nice vim plugin so I would sugegest to start with it for those who are thinking about using vim for keyboard driven workflow
Nice trick for someone new. But as mentioned in this video, you need to minimize use of side bar to be a good power user.Using key board is much faster then mouse. Also, when you use side bar, it should have main focus, not the editor window. This is just my view. Everyone must figure out, what works best for them and your idea is also great for many. May be it just won't work for me.
@@kapsnotes9814 When you move the File Explorer, you’re also moving the same place where the built in git client, the extension browser, the search results and more appear.
You can hide the activity bar completely by finding it in command palette, so you can practice using your keyboard. You will learn it fast as you are forced to use keyboard everytime you need to do something. Useful shortcuts: ctrl+shift+e for explorer, ctrl+shift+f for search, ctrl+shift+g for git, d and x for debugging and eXtensions respectively.
I recently bought a Macbook Pro and am getting used to working a lot more with the keyboard than with the mouse. I start putting your video into practice from now on. Greetings from Santiago de Chile
Great stuff. Personally, learning, tweaking and adding shortcuts to apps is the first thing I do when I start actually using it, and sharing through my several machines.
Some of the shortcuts i use are: @2:30 if you use Ctrl + p -> go to the file you want -> and press ctrl + enter it wiil open in the split-right window, you can then use ctrl + 1,2 to navigate between windows. If you press Ctrl + p, then write @, it will let you toggle symbols (classes, variables and such) so you can quickly go through the code. and yes, you can combine them :) so you can Ctrl + p, start typing the name of the file, hover the file and write @ to go to that place in the file, really nice.
Awesome, I got couple of new things. However for new file/dir, rename, delete, I use/suggest CMD/CTRL + ` (open in-build terminal) followed by unix commands like touch, mkdir, mv, rm respectively. With that, I can make multiple sub-folders as well with single command. Thus, I suggest mastering unix terminal commands as well. I'm also huge fan of shortcuts but I try to install as little as possible extensions as too many extensions may make VS code (Or any IDE/editor) slow.
Agreeing that these extensions tend to make it more weird and less appealing - especially when you basically have to rebind shortcuts 😒 Only if it was a matter of 1-3 seconds to move something with command line, I'd consider students to hone this skill instead of reaching to the mouse. But at least if they can rename by click+F2, it's the step in correct direction 👌I still can't figure what's faster than that.
Advanced new tabs allows you tu create as many subfolders as you want, just write the folder name followed by \ and it'll be created as a folder, not as a file.
(cmd + shift + e) or (ctrl + shift + e ) opens the side bar in the file you have currently open, that helps if you want to open a file in the same root and also I find that easier for renaming files, since i don't need to install another extension. It would just make it a little bit harder for moving files
For filesystem operations I recommend to use vscode terminal and learn the basics like touch, mv, rm... You won't need any extension plus you have all the power of a terminal.
Ctrl + - (on Mac) to cycle through your cursor position history. It’ll even open closed files, which is nice. You can add the shift key to go forward as well.
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.
Dooooope! I use to be super hands off mouse when I still worked in Visual Studio for C++ & C# development. I fell of the wagon, but this is great start to be mouse only again. Awesome vid!
(“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
Thanks for the video, this was very beneficial to learn some shortcuts. I concur that keeping hands on the keyboard will increase productivity overall.
Thanks for the tips! Clear video and instructions. Personally I am not a fan of a ton of plugins and custom keys shortcuts. The reason is that when you need to switch computers, or instruct someone else, it is hard. I use two alternatives: 1. command+` to toggle console and touch or code (create), mv (rename), rm (del) for file CRUD 2. command+b to toggle tree view, move with the arrows and enter to rename, space to open and command+b again I'm still trying to figure out to have more control navigating the tree with the keyboard, like opening to the side Also I'm trying the vim plugin occasionally, but I need more practise to make it work for me
That's always been my issue with a highly customised editor. When you use a colleague's editor or they use yours, then you are going to waste a lot of time figuring out someone else's set of 'shortcuts.'
I honestly don't look for ways to write code faster. More important is to write better and functional code that is easy to read. Writing speed is unimportant long-term productivity. I don't see coding as a writing job it is designed what you do. Most coders should slow down, write less, and think more. But this is only my own experience as developer last ten years. Also, we are all different, I don't use search because most of the time I don't remember file names. :)
On Mac: CMD + Left/Right to move the cursor to beginning/end of line. Option + Left/Right to move the cursor to beginning/end of word boundary Option + Up/Down to move line(s) of code up/down WIth selected text: CMD + d to multi-cursor copies of the selected text (Case Insensitive) With a block of selected text: CMD+Shift+L to multi-cursor every line within that block
i started doing this recently. i realized that looking for files in the sidebar was causing me constant frustration in big projects. i'm trying to make coding more "ergonomic".
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.
I didn't knew about the CTRL+TAB, I use CTRL+1, 2 etc... like in Chrome haha. I love that they are all aligning with standards so that each software becomes more easy to use, and you don't need to remember as many shorcuts for a specifics apps.
I remember when Jeffery Way started pushing Sublime Text. He was all about the same thing, using shortcuts instead of the mouse. I decided there were far too many shortcuts to remember. I bought a new mouse
Great video with some very useful hints and tips. Although, from my own personal perspective, I'm like, 'What's the rush?'. I don't mind taking my time on developing. I don't think of it as something that has to be done as quickly and super-efficiently as possible. But, for those who do, this is a helpful video.
Thumbnail is kinda clickbaity which I don't like in my feed but good for you as content is on point and so good too. Had to click. Couldn't resist after watching the thumbnail in my feed again and again. Love your content btw.
Lol it’s a fine line between being too click baity and not. I agree. I try to entice people while still providing content that is genuine to me and the audience. Hopefully I’m doing ok there lol
CMD / CTR + PP + immediate release of the keys also toggles between the last two used files. CMD / CTR + PP... + holding CMD / CTR key browses through recently opened files.
My most used command is probably alt + any numerical key (mostly 1 - 5) to switch between open tabs. tab + 1 for, well, tab 1, and tab + 2 for... you get the idea. I always use two work groups as well, so my IDE is always split. I use alt + w to swap between the two work groups as well, this paired with alt 1 - 5 makes it a breeze to navigate when you have a lot of files with dependencies that you need to keep track of.
I see a lot of people missing the point of shortcuts saying that typing is not the bottleneck. Yes it isn't but every second you save yourself, is more time to come up with better code than endlessly switching between mouse and keyboard.
Hey James, there are some shortcuts for the sidebar icons too. When I need to access the Explorer for the files I hit CTRL+SHIFT+E, same thing with Git(CTRL+SHIFT+G) and so on.
Same. And you can just start typing to search for the file too, no scrolling necessary. VSCode's searching is great. I can hit Ctrl Shift E, type "usprocon" to locate "UserProfileController.php" then hit F2 to rename, Del to delete, Enter to open, etc.
MacBook has the ability to use trackpad as scroll too. So, I think is more practical and faster than type new codes on search bar. Most of the time, I don’t use mouse.
In my opinion, this approach consumes a lot of brain memory to remember the file name, while we can use that amount of memory to think about the math lol
@@kapsnotes9814 actually, it consumes some memory only at the beginning. After couple weeks it moves into mussels memory and you do stuff completely automatically.
Use those shortcuts frequently enough - then you would remember them eventually. It's just like using your computer a lot of time in a certain period - you would remember the easy/repetitive things you do. ^^
The question is whether you value your time or not. Consider a task as simple as selecting a string. It might take you ~2 seconds longer to mouse select it, but if you multiple that lost time by how many times you do that on average, per document, per day, per year, you eventually have an "ah ha" moment.
Using the sidebar infrequently is also handy for you digital nomad SWEs who are working from a coffeeshop on the beach in [insert exotic location here] and only have one monitor with limited space to work with.
Moving from beginners hotkeys to very advanced ones is, what I would avoid in your next video. Also, if you really want to write code quicker, use neovim extension with some vim plugins, like surround.
@@JamesQQuick sorry, if it was unclear. Let's try again: You talk in the first half of your video about very simple shortcuts, like Ctrl+P. This may be interesting only for absolute hotkey beginners. After that you switch to absolutely advanced stuff, like create and rename files using hotkeys. You loose all the beginners at this point and maybe pick up some advanced users, if they made so far through the beginners part. This is, what I felt and wanted to share with you, so you can make even better videos. Btw, you can quickly locate opened file in the tree with one mouse click, then rename, create, ... (Just to be fair) Also, my last sentence was about saving time with NeoVIM extension. Using VIM like editing in VSCode makes you even more productive, but sure, off topic for this video. May be just worse mentioning. Thank you for reading such a lot feedback 🤠
Maybe this will work for someone who has so much experience that they can just write non-stop, but such person probably doesn't need to watch this video. For me coding is 95% thinking without writing, so I'm pretty sure these shortcuts will barely make a difference.
Not sure if mentioned already, I have two short-cuts I use which I find quite handy. 1. Selecting single or multi-lines of code you can then press (option( + (up or down) keys to move code blocks, I've also seen the code change colour to red when it flags a spot that isn't correct, so quite handy as well. 2. This one isn't a keyboard shortcut, but if you select a file from the sidebar and press (enter) you can then rename the file or the file extension.. I find myself renaming files every now and then, so quite handy to just highlight the file to edit quickly.
My all-time favorite VS Code shortcut (for Mac): _⌘K Z_ that toggles Zen Mode. Zen Mode lets you focus on your code by hiding all UI except the editor (no Activity Bar, Status Bar, Sidebar and Panel) and going to full screen.
Nice video. I think these kinds of tips are cool and nice to learn but their importance is a bit overstated. Sure it's nice and quick to do xyz but in reality it's a micro improvement.
Hi James, I wanted to let you know that in the .pdf there are some errors. One is right at the beginning: VS Code Layout ctrlCmd + Shift + B - Toggle side bar ctrlCmd + Shift + B - Toggle debug ctrlCmd + Shift + B - Toggle file editor ctrlCmd + Shift + B - Toggle Extensions I'm still reading the document, but just wanted you to know. Bye, and by the way, great content as always!
To create a new file, I normally hit ctrl-~ to open a zsh terminal, type code dir/to/new/file. It will create the folders for you then open the new file in the editor. Once you save it, it shows up in the project.
The only reason I would wanna stay on keyboard is to be comfortable. The speed at which I can code has never been the bottleneck of my productivity when developing software.
Here's an alternative to opening files, if you're lazy like me and don't want to type name of file: ・CMD + SHIFT + E : move focus to File Explorer (sidebar) ・Move up or down files with arrow keys ・CMD + ⬇️ : open selected file
CTR + W: Close files
CTR + P: Find files
CTR + Tab: Switch windows
CTR + SHIFT + P: Command Palette (for commands)
For commands instead press F1
File Utils extension.
CTRL+K CTRL+W: Close All Files
CTR + SHIFT + T open recently closed file
@@sarcasticdna Always done this
Short recap for those who might not want to watch the full video:
Ctrl + P: File search
Ctrl + Tab: Switch between opening file tabs
Advanced New File from Extension Marketplace => Ctrl + Shift + P (or do a custom shortcut like James demonstrated)
File Utils Extension from Extension Marketplace => Ctrl + Shift + P again
P/S: I love the VSCode customization video you did previously James!
@Chirag np ^^
nice, bro!
Why does everyone use CTRL+SHIFT+P when F1 does the same thing?
@@Ares9323 FR
I've been a developer for over 40 years now, and I can safely say that "writing code faster" is one of the lesser useful skills to have. I actually spend most of my time 'thinking' about code, not editing code. Saving the odd few seconds when editing would make very little difference to my overall productivity.
My man!!!!!!! Kudos
That's what I was going to comment.
Exactly. And you are more successful as a developer when you get senior and write less code
Finally some truth of out experienced person, rather than focusing on learning this short keys use what you are comfortable with and focus on what is important not this bs. no offense he is just making a content and everything maybe for some people it is useful
Just wrote the same thing. You’re 100% on point.
I subscribed a minute into this video in do part to your emphasis on improving short cuts. This is the sort of content I have been looking for. I am excited to see what the rest of your content has to offer!
watched the entire video and I am thoroughly impressed.
Next thing you know, you'll be using Vim!
Exactly, using Vim makes editing much faster. Though I don't use vim natively, I prefer vim plugins in my Editor/IDE.
I use neovim but it take some time to configure it to have good setup, but vscode has nice vim plugin so I would sugegest to start with it for those who are thinking about using vim for keyboard driven workflow
@@grzegorzklimek6023 just use the vim extension in VS code then, it's a great intro to using vim.
@@grzegorzklimek6023 it took me 2 days to find all the plugins i use and configure vim, the .vimrc file is 200 lines long, oof.
Hey i saw you in Udemy as well... thanks for helping us heheh
Control + G let’s you move to a specific line in a line. I find that rlly helpful when I have test cases on specific lines in a file
I've moved my file explorer pane to the right. It's usually hidden, but this way when I do pop it open, my main code window doesn't shift over.
Nice trick for someone new. But as mentioned in this video, you need to minimize use of side bar to be a good power user.Using key board is much faster then mouse. Also, when you use side bar, it should have main focus, not the editor window.
This is just my view. Everyone must figure out, what works best for them and your idea is also great for many. May be it just won't work for me.
thx for the tip I done the same!
@@kapsnotes9814 When you move the File Explorer, you’re also moving the same place where the built in git client, the extension browser, the search results and more appear.
I don't hide it all the time to keep my code closer to the center
Yep, I do the same 🙂
Bro, you have already speed up myself, and now I returning to this video again to speed up even more
I have been a shortcut user since WordStar.. minimalistic usage of mouse. Thanks for this video
You can hide the activity bar completely by finding it in command palette, so you can practice using your keyboard. You will learn it fast as you are forced to use keyboard everytime you need to do something. Useful shortcuts: ctrl+shift+e for explorer, ctrl+shift+f for search, ctrl+shift+g for git, d and x for debugging and eXtensions respectively.
@Chirag can't imagine editing without these features :)
frequently I watch your short footages which are very useful and help me a lot, thank you.
I recently bought a Macbook Pro and am getting used to working a lot more with the keyboard than with the mouse. I start putting your video into practice from now on. Greetings from Santiago de Chile
Great stuff. Personally, learning, tweaking and adding shortcuts to apps is the first thing I do when I start actually using it, and sharing through my several machines.
Some of the shortcuts i use are: @2:30 if you use Ctrl + p -> go to the file you want -> and press ctrl + enter it wiil open in the split-right window, you can then use ctrl + 1,2 to navigate between windows.
If you press Ctrl + p, then write @, it will let you toggle symbols (classes, variables and such) so you can quickly go through the code. and yes, you can combine them :)
so you can Ctrl + p, start typing the name of the file, hover the file and write @ to go to that place in the file, really nice.
Great additions!
Been with vscode since the beginning. Somehow file utils is the extensions I didn't know I needed! Bingo bango thanks!!
Awesome, I got couple of new things.
However for new file/dir, rename, delete, I use/suggest CMD/CTRL + ` (open in-build terminal) followed by unix commands like touch, mkdir, mv, rm respectively. With that, I can make multiple sub-folders as well with single command. Thus, I suggest mastering unix terminal commands as well.
I'm also huge fan of shortcuts but I try to install as little as possible extensions as too many extensions may make VS code (Or any IDE/editor) slow.
Agreeing that these extensions tend to make it more weird and less appealing - especially when you basically have to rebind shortcuts 😒
Only if it was a matter of 1-3 seconds to move something with command line, I'd consider students to hone this skill instead of reaching to the mouse.
But at least if they can rename by click+F2, it's the step in correct direction 👌I still can't figure what's faster than that.
Advanced new tabs allows you tu create as many subfolders as you want, just write the folder name followed by \ and it'll be created as a folder, not as a file.
@@vintprox Why rebinding a shortcut *once* in a lifetime is a hassle? That's so stupidly simple to do that I don't understand such complaint.
Man I never realised that I need a complete VS code shortscuts guide
My favorite, without a doubt, is command + / (toggle comment). Also use a lot command + B to toggle the side bar... mostly to see file paths
4:34 shorter way for windows: "F1" instead of "CTRL + SHIFT + P" :)
Worked on Linux too :) seems to be a VS-Code SC. Good tip thanks!
CTRL + G is the solution about your title, great video :)
Ctrl+B to toggle the side bar is also essencial for this workflow
(cmd + shift + e) or (ctrl + shift + e ) opens the side bar in the file you have currently open, that helps if you want to open a file in the same root and also I find that easier for renaming files, since i don't need to install another extension. It would just make it a little bit harder for moving files
For filesystem operations I recommend to use vscode terminal and learn the basics like touch, mv, rm... You won't need any extension plus you have all the power of a terminal.
Btw, shortcut for terminal is cmd T
Great tip. I stopped using the sidebar as well and definitely improved my experience in vscode and production in general.
Ctrl + - (on Mac) to cycle through your cursor position history. It’ll even open closed files, which is nice. You can add the shift key to go forward as well.
I just tried this and it had a zooming effect for me.
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.
Your thumbnail looks like it should be a new meme template.
Maybe it is :)
true
Professor: "Keep your hands on the keyboard"
Me: "Where's the 'A'?"
Dooooope! I use to be super hands off mouse when I still worked in Visual Studio for C++ & C# development. I fell of the wagon, but this is great start to be mouse only again. Awesome vid!
(“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
Thanks for the video, this was very beneficial to learn some shortcuts. I concur that keeping hands on the keyboard will increase productivity overall.
Thanks for the tips! Clear video and instructions. Personally I am not a fan of a ton of plugins and custom keys shortcuts. The reason is that when you need to switch computers, or instruct someone else, it is hard.
I use two alternatives:
1. command+` to toggle console and touch or code (create), mv (rename), rm (del) for file CRUD
2. command+b to toggle tree view, move with the arrows and enter to rename, space to open and command+b again
I'm still trying to figure out to have more control navigating the tree with the keyboard, like opening to the side
Also I'm trying the vim plugin occasionally, but I need more practise to make it work for me
That's always been my issue with a highly customised editor. When you use a colleague's editor or they use yours, then you are going to waste a lot of time figuring out someone else's set of 'shortcuts.'
I honestly don't look for ways to write code faster. More important is to write better and functional code that is easy to read. Writing speed is unimportant long-term productivity. I don't see coding as a writing job it is designed what you do. Most coders should slow down, write less, and think more. But this is only my own experience as developer last ten years. Also, we are all different, I don't use search because most of the time I don't remember file names. :)
Definitely all different. Thanks for chiming in!
Most of the shortcuts resemble browser shortcuts.
Ctrl P and Ctrl Shift P are my favourite shortcuts 😍
Well it is a browser :P
@@vickylance 😂 True
Hahaha nicely done!!
@@JamesQQuick done what?
On Mac:
CMD + Left/Right to move the cursor to beginning/end of line.
Option + Left/Right to move the cursor to beginning/end of word boundary
Option + Up/Down to move line(s) of code up/down
WIth selected text: CMD + d to multi-cursor copies of the selected text (Case Insensitive)
With a block of selected text: CMD+Shift+L to multi-cursor every line within that block
I feel amazing navigating the IDE with the keyboard.
With the mouse, not so much
do not forget that you usually have a terminal below with 'touch', 'rm', 'mv' and other useful commands that basically
i started doing this recently. i realized that looking for files in the sidebar was causing me constant frustration in big projects. i'm trying to make coding more "ergonomic".
You can also close all opened files by holding on command and pressing k followed by w. (cmd (hold) + k + w)
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.
I didn't knew about the CTRL+TAB, I use CTRL+1, 2 etc... like in Chrome haha. I love that they are all aligning with standards so that each software becomes more easy to use, and you don't need to remember as many shorcuts for a specifics apps.
Also try CTRL + SHIFT + TAB, it goes in reverse direction.
CTRL+1, 2 switches between groups for me. Have you remapped them?
@@TheDownhillSpecialist nope, but I'm not using groups, I don't remember if firefox has groups lol
JQ2, born to teach, another excellent set of tips..
I remember when Jeffery Way started pushing Sublime Text. He was all about the same thing, using shortcuts instead of the mouse. I decided there were far too many shortcuts to remember. I bought a new mouse
Great video with some very useful hints and tips. Although, from my own personal perspective, I'm like, 'What's the rush?'. I don't mind taking my time on developing. I don't think of it as something that has to be done as quickly and super-efficiently as possible. But, for those who do, this is a helpful video.
I think with any activity I do on a regular basis i want to continuously improve. If you’re comfortable with your existing workflow, that’s perfect!
Thumbnail is kinda clickbaity which I don't like in my feed but good for you as content is on point and so good too. Had to click. Couldn't resist after watching the thumbnail in my feed again and again. Love your content btw.
Lol it’s a fine line between being too click baity and not. I agree. I try to entice people while still providing content that is genuine to me and the audience. Hopefully I’m doing ok there lol
you can also switch between tabs on mac by pressing option+command+right arrow or left arrow
I found really useful CTRL + 2x P or CTRL + 2x E. Works like CTRL tab.
Finally, useful recommendation from youtube
I like piping long outputs of terminal commands to vscode: "a_command | code -"
Then I can format, search and edit more comfortably in vscode.
Great content as always!
You're an absolute lifesaver
File Utils MVP of this video for me :)
CMD / CTR + PP + immediate release of the keys also toggles between the last two used files.
CMD / CTR + PP... + holding CMD / CTR key browses through recently opened files.
Ctrl + k + w closes all your files.
Thanks for your content
You could do most of this simply from the command file with zsh or PowerShell
My most used command is probably alt + any numerical key (mostly 1 - 5) to switch between open tabs. tab + 1 for, well, tab 1, and tab + 2 for... you get the idea. I always use two work groups as well, so my IDE is always split. I use alt + w to swap between the two work groups as well, this paired with alt 1 - 5 makes it a breeze to navigate when you have a lot of files with dependencies that you need to keep track of.
I also bind alt+left/right arrow to move between tabs horizontally
I see a lot of people missing the point of shortcuts saying that typing is not the bottleneck. Yes it isn't but every second you save yourself, is more time to come up with better code than endlessly switching between mouse and keyboard.
Hey James, there are some shortcuts for the sidebar icons too.
When I need to access the Explorer for the files I hit CTRL+SHIFT+E, same thing with Git(CTRL+SHIFT+G) and so on.
Same. And you can just start typing to search for the file too, no scrolling necessary. VSCode's searching is great. I can hit Ctrl Shift E, type "usprocon" to locate "UserProfileController.php" then hit F2 to rename, Del to delete, Enter to open, etc.
This is quick James. 😊
Bro, please take some rest. You're working hard....
Great! Mastering keyboard shortcuts will save we a lot of time.
Pat Benatar is writing VSCode extensions now! Who'd have thought?!
MacBook has the ability to use trackpad as scroll too. So, I think is more practical and faster than type new codes on search bar. Most of the time, I don’t use mouse.
What is the extension your use to fade in/out your typing cursor?
File Utils is amazing -- thanks for this!
In my opinion, this approach consumes a lot of brain memory to remember the file name, while we can use that amount of memory to think about the math lol
Yes it do but it is worth learning. It is first step in becoming Power user and in the longer run, it saves lot of time.
@@kapsnotes9814 actually, it consumes some memory only at the beginning. After couple weeks it moves into mussels memory and you do stuff completely automatically.
Use those shortcuts frequently enough - then you would remember them eventually.
It's just like using your computer a lot of time in a certain period - you would remember the easy/repetitive things you do. ^^
The question is whether you value your time or not. Consider a task as simple as selecting a string. It might take you ~2 seconds longer to mouse select it, but if you multiple that lost time by how many times you do that on average, per document, per day, per year, you eventually have an "ah ha" moment.
you dont need to use that file search all the time, can just use it on the files you remember
It has been of great use. Thank you
Great tips. Thanks for sharing.
Using the sidebar infrequently is also handy for you digital nomad SWEs who are working from a coffeeshop on the beach in [insert exotic location here] and only have one monitor with limited space to work with.
Sometimes the projects are too big that Cmd+P and to search the file itself takes a huge amount of time it just keeps on loading
Really? That’s interesting. I don’t think I’ve ever experienced it but great catch!
You need to have a really old machine to see that happen
@@kneelesh48 Its 2019 16gb macbook pro
@@vickylance Your projects must be HUGEEE!
@@darshandev1754 yeah its company project and 200 Dev's are working on it. Clone itself takes 1 hour to download
Moving from beginners hotkeys to very advanced ones is, what I would avoid in your next video.
Also, if you really want to write code quicker, use neovim extension with some vim plugins, like surround.
Not quite sure I followed. What were you saying I should avoid in my next video?
@@JamesQQuick sorry, if it was unclear. Let's try again:
You talk in the first half of your video about very simple shortcuts, like Ctrl+P. This may be interesting only for absolute hotkey beginners. After that you switch to absolutely advanced stuff, like create and rename files using hotkeys. You loose all the beginners at this point and maybe pick up some advanced users, if they made so far through the beginners part.
This is, what I felt and wanted to share with you, so you can make even better videos.
Btw, you can quickly locate opened file in the tree with one mouse click, then rename, create, ... (Just to be fair)
Also, my last sentence was about saving time with NeoVIM extension. Using VIM like editing in VSCode makes you even more productive, but sure, off topic for this video. May be just worse mentioning.
Thank you for reading such a lot feedback 🤠
Great video brother!
Maybe this will work for someone who has so much experience that they can just write non-stop, but such person probably doesn't need to watch this video. For me coding is 95% thinking without writing, so I'm pretty sure these shortcuts will barely make a difference.
great content! caught wind of you via Traversy, happy I did
Very well explained. 👏
Very useful video, thank you!
Thanks, James! Great stuff as usual 👍
Just popped in to say I love the thumbnail 😎
Do you know a vs code short for console logs?
I think “clg” is built in. Try that inside of a JavaScript file
Thank you
Do you have a video about your extensions?
Yep. Several. You can look at my playlist on Vs code :)
Thanks very helpful extensions
I am liking your videos more and more. Thanks for the useful tips. 😁
Ty very much James! Really good stuff
Thanks for video
One question, I figured out how to delete a file, but I don't understand how to delete a folder just as quickly
awesome workflow. thanks
Not sure if mentioned already, I have two short-cuts I use which I find quite handy.
1. Selecting single or multi-lines of code you can then press (option( + (up or down) keys to move code blocks, I've also seen the code change colour to red when it flags a spot that isn't correct, so quite handy as well.
2. This one isn't a keyboard shortcut, but if you select a file from the sidebar and press (enter) you can then rename the file or the file extension.. I find myself renaming files every now and then, so quite handy to just highlight the file to edit quickly.
My all-time favorite VS Code shortcut (for Mac): _⌘K Z_ that toggles Zen Mode.
Zen Mode lets you focus on your code by hiding all UI except the editor (no Activity Bar, Status Bar, Sidebar and Panel) and going to full screen.
This is gold. Thank you for sharing. 🙏👍
Nice video. I think these kinds of tips are cool and nice to learn but their importance is a bit overstated. Sure it's nice and quick to do xyz but in reality it's a micro improvement.
I would definitely use a terminal for all those operations… switch to terminal, manipulate your files, then back to editor.
OHH Man thank you so much, I needed all this
Hi James, I wanted to let you know that in the .pdf there are some errors.
One is right at the beginning:
VS Code Layout
ctrlCmd + Shift + B - Toggle side bar
ctrlCmd + Shift + B - Toggle debug
ctrlCmd + Shift + B - Toggle file editor
ctrlCmd + Shift + B - Toggle Extensions
I'm still reading the document, but just wanted you to know.
Bye, and by the way, great content as always!
Oh wow when did they happen? Lol thanks for letting me know!
you can even use ctrl+q, while holding it use the up and down arrow key to switch to different panels like extensions/explorer/debugger etc
To create a new file, I normally hit ctrl-~ to open a zsh terminal, type code dir/to/new/file. It will create the folders for you then open the new file in the editor. Once you save it, it shows up in the project.
Amazing and useful video. Thank's for the tips!
Cool. Thank you. Very helpful!
The only reason I would wanna stay on keyboard is to be comfortable. The speed at which I can code has never been the bottleneck of my productivity when developing software.
On average I have to write 100 to 200 lines of code a day as a software engineer.
May I ask what color theme is that? Looks really good
Here's an alternative to opening files, if you're lazy like me and don't want to type name of file:
・CMD + SHIFT + E : move focus to File Explorer (sidebar)
・Move up or down files with arrow keys
・CMD + ⬇️ : open selected file
Nice. Which theme do u use? And which Plugin for cursor blink?
what's the extensions that shows who committed the line on the right of the selected line?