It’s no secret that being a faster developer will increase your productivity, but it will also improve your daily workflow when you gain better control and mastery over your tools. everyone now if you’re like me you sit in front of your computer most of your day with your favorite text editor and it’s important that you make sure you know the most import keyboard shortcuts in order to save the most amount of time while programming.

This is why I am going to go over the most important keyboard shortcut every programmer should know because I’ve seen far too many people not know this simple commands which would save them hours of time over their lifetime.

Tested on:

Mac M1

iTerm2

oh-my-zsh

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Ctrl + e : move the cursor to the end of the line.
Ctrl + T : flip the two characters around the cursor. NOTE: conflict with fzf
Ctrl + y : yank the text from the kill ring (paste previously deleted text).
Ctrl + u : clear whole line.
Ctrl + o : submit the current line and load the next line from history (if any).
Ctrl + p : fetch the previous line from history (like ↑).
Ctrl + k : delete the the rest of the line after the cursor.
Ctrl + a : move the cursor to the beginning of the line.
Ctrl + d : if the line is empty, equivalent to EOF; typically, exit the shell. Otherwise, delete the character after the cursor.
Ctrl + f : move the cursor forward by one character.
Ctrl + h : same as Backspace.
Ctrl + j : same as Enter.
Ctrl + m : same as Enter.
Ctrl + b : same as <-
Ctrl + w : delete the word to the left of the cursor.

ESC a    : same as Enter.
ESC d    : delete forward
ESC u    : change word to upcase
ESC s    : ?
ESC m    : copy and paste from last seprate to end
ESC l    : same as Ctrl+o
ESC p    : same as Ctrl+p
ESC n    : same as Ctrl+n
ESC t    : exchange words
ESC h    : man current words
ESC a    : man current words
ESC w    : delete backwards from currnent character to start
ESC q    : same as Ctrl+u