DEV Community

Discussion on: 10 most useful IDE hotkeys with GIF examples

Collapse
 
noedlm profile image
Noe De La Mora

A generic not so much hot key(s) but still go unnoticed are the Home and End keys. They come in handy when you want to move horizontally through long lines of code, move all your text cursors to the end/start of the lines, etc.. Combining that with Shift will highlight the whole line, and not just in IDEs but any text field.

Also a vscode version would be nice, some of my most common ones:

  • ctrl + P: look for a file in the project
  • Alt + up/down arrow: move a line or set of lines up/down
  • ctrl + shift + F: search in the project
  • ctrl + shift + O: search functions (given you have the proper addon as well)
  • ctrl + F2: multiline edit of w/e text you have highlighted
  • alt + click: will add an additional cursor to where you click to allow multi line edits
  • ctrl + W: close the current file tab in the editor
Collapse
 
mfarajewicz profile image
Mirosław Farajewicz

Home and End keys <3
Since I've started using Mac as my 2nd workstation I felt how important those keys are.

Collapse
 
noedlm profile image
Noe De La Mora

Definitely under appreciated. The other thing I miss the most after moving to mac for my new job is the key bind to move windows from one screen to another. I think it was Alt + Windows + arrow. I've read about using third party tools on mac to do that but I've been too lazy to try them out.

Thread Thread
 
mfarajewicz profile image
Mirosław Farajewicz

Yep I'm missing it too. At first click it resizes app window to half of the screen and then it moves to first position/screen on the right/left.