Post

Speed Up Using Shortcuts (Windows)

Please refer to this post if you are a Mac user.

In this post, I will be sharing why and how I ditched the mouse and started utilising keyboard shortcuts.

Why avoid the mouse?

As a software engineer, efficiency is of the essence, especially when one is dealing with many tasks in his bucket or meeting tight deadlines. For any typing setup, majority of the time is spent moving between the keyboard and mouse. Fortunately for us, we can save this precious time by mastering keyboard shortcuts that can perform the same functions/tasks. Not only do you become more productive, you also get to look really cool (somewhat) and experience what it is like to feel like an experienced hacker (sortof).

It will require some practice to master and apply them properly. But rest assured, once you overcome this steep learning curve, you will witness your productivity drastically increase overtime. Below is a compilation of shortcuts that I have learnt and frequently use on Web browsers, Terminals and VSCode.

Keyboard shortcuts

Basic Shortcuts 
Alt + F4Close active window
Alt + TabToggle applications/View all applications from desktop
Alt + ShiftChange Language/Keyboard
Alt + Shift + Up/DownMove current line above/below it
Ctrl + ASelect all
Ctrl + CCopy
Ctrl + FFind keyword
Ctrl + HReplace keyword
Ctrl + SSave
Ctrl + VPaste
Ctrl + XCut
Ctrl + ZUndo
Ctrl + Shift + ZRedo
F11Fullscreen
Ctrl + Left/RightMove cursor to the start/end of words
Ctrl + Home/EndMove cursor to start/end of document
Home/EndMove cursor to start/end of line
Shift + Up/DownSelect characters above/below the line
Shift + Left/RightSelect characters left/right of the cursor
Shift + Home/EndSelect all characters left/right of the cursor
Shift + Page Up/Page DownSelect all characters from cursor to the top/bottom of the document
WindowsShow Start Menu
Windows + Type your searchSystem search
Windows + DShow/hide desktop
Windows + EOpen File Explorer
Windows + Alt + RScreen recording
Windows + Print ScreenPrint full screen
Windows + Shift + S
Print Screen
Select area and print screen of selected area
Browser Shortcuts 
Alt + DMove cursor to address bar
Alt + Left/RightNavigate to previous/next page in history
Ctrl + DBookmark current tab
Ctrl + RReload page
Ctrl + TOpen new tab
Alt + F4
Ctrl + F4
Ctrl + W
Close active tab
Ctrl + Shift + TOpen recently closed tab
Ctrl + Shift + WClose all active windows
Ctrl + TabToggle between tabs
F12Open web console
VSCode Shortcuts 
Alt + Left/RightToggle tabs
Alt + Shift + Up/DownCopy and paste current line above/below it
Ctrl + LSelect line
Ctrl + PSearch for file
Ctrl + NWork on a new file
Ctrl + WClose active tab
Ctrl + \Split code editor/Command Prompt
Ctrl + /Comment line of code
Ctrl + `Open/close Command Prompt in code editor
Ctrl + Alt + Up/DownAdd cursors to multiple lines at the same horizontal positon
Ctrl + Shift + `Open new Command Prompt in code editor
Ctrl + Shift + FFind keyword in directory
Ctrl + Shift + KDelete line
Ctrl + Shift + POpen command palette
(Ctrl + K) + VPreview Markdown file on the side
Ctrl + Shift + Left/RightSelect words to the left/right of the cursor
Select keyword + (Ctrl + D)Add cursor to all found keywords one at a time
Select keyword + (Ctrl + Shift + L)Add cursor to all found keywords
Powershell/Command Prompt Shortcuts 
Alt + EnterFullscreen
HomeMove cursor to start of line
EndMove cursor to end of line
BackspaceClear character before cursor position
DeleteClear character after cursor position
Ctrl + HomeClear line before cursor position
Ctrl + EndClear line after cursor position
Esc
clear
cls
Clear screen
Ctrl + BackspaceDelete previous word
Ctrl + CCancel program
Ctrl + ZStop program
Ctrl + Left/RightMove cursor between words
historyShow history of commands
Up/DownCycle history of commands

Other ways to shortcut your workflow

  1. Learn to touch-type, which incorporates all your fingers to access the keys on your keyboard optimally. With sufficient practice, you will be able to master typing without glancing on the keys, saving time as a result.
  2. Use Tabs for autocompletion in the Terminal, especially when your folder/file names are long/foreign.
  3. When inputing text in multiple input boxes, use Tabs instead of moving the mouse to proceed to the next input.
  4. Use aliases to execute long/complex commands
    Eg. alias nrs=npm run start (Executes npm run start with nrs)
    Eg. alias gps=git push (Executes git push with gps)
  5. Broadcast input to multiple Terminal tabs in the same session if the same executions need to be done on multiple replica servers (You will need to install Windows Terminal for this)

Conclusion

Ever since I started learning and using these shortcuts, it was excruciating to realise the amount of time wasted performing repetitive work (Eg. Editing the same variable names repeatedly; Highlighting a block of text; Deleting characters one by one using Backspace). To anyone who is using a computer, ditch the mouse and give these shortcuts a shot. Afterwards, you can reward yourself with a nice coffee break :)

Sources

  1. Keyboard shortcuts for a Developer
  2. 10 Essential Keyboard Shortcuts For Programmers
  3. Powershell Key Combinations
  4. Windows vs. Mac: 70+ Common and Helpful Keyboard Shortcuts
  5. Visual Studio Code - Keyboard Shortcuts for Windows
  6. What is Windows Terminal?
  7. Typing Techniques – 5 Skills to Master
This post is licensed under CC BY 4.0 by the author.