a list of keyboard shortcuts i actually use
In an ideal world, I am free of the Mouse.
The keyboard is my favorite input device. I've learned keyboard shortcuts either accidentally, naturally or from actual cheatsheets on the Internet, so even though this isn't technically a cheatsheet in regards to its completeness, I want to come back to this post in the future and see if I've managed to acquire new ones. I thought it could be a good tell on how I'm doing in terms of my hardware or what kind of work I'm currently into at the moment.
Current Hardware and Hobbies
-
Hardware
- Lenovo Thinkpad T14 (Windows 11)
- Royal Kludge RK61 60% Wireless Mechanical Keyboard
-
Hobbies
- Coding (HTML, CSS, JS)
- Writing
- Having a blog
- Content Management (Work)
Without furder ado, here is a list of keyboard shortcuts that I actually use as far as my memory goes:
windows
- Alt + Tab
- Switch between windows
- Ctrl + Z
- Undo
- Ctrl + C / Ctrl + V / Ctrl + X
- Copy, Paste, Cut texts
- Ctrl + Shift + Left or Right Arrow Key
- Highlight lines of text
- Windows Key + Up Arrow Key
- For minimized windows: this will maximize the window
- For maximized windows: this will place the window on the half top and another on the bottom
- Windows Key + Down Arrow Key
- For minimized windows: this will hide the window
- For maximized windows: this will minimize the window
- Windows Key + Spacebar1
- Change the keyboard's language
- Windows Key + D
- Go to the desktop
- Windows Key + L
- Lock the computer
- Windows Key + .
- Pull up an emoji tray
- Ctrl + Shift + Esc
- Pull up the Task Manager
- F2
- Rename a file
- Tab
- So many uses. I love you, tab key.
browsers
- Ctrl + Shift + T
- My holy grail. Restore closed tabs.
- Ctrl + W
- Close the current tab
- Ctrl + T
- Open a new tab
- Ctrl + N
- Open a new window
- Ctrl + Shift + N
- Open an incognito window
- Ctrl + Tab
- Switch between tabs
- Ctrl + (number)
- Example: Ctrl + 1 switches you to the 1st tab of the currently opened browser window
- Ctrl + Shift + C
- Select an element on the page to inspect it in the devtools
edge
- Ctrl + Shift + K - Duplicate the currently opened tab
vscode
- Alt + Z
- Wrap text
- Alt + Shift + Up or Down Arrow Key
- Duplicate the current line
- Ctrl + F / Ctrl + H
- Find and replace operations. Ctrl + H will do the same thing on highlighted text.
- Ctrl + Shift + P
- Open the command palette
- Alt + (Click anywhere on the editor)
- Duplicate the cursor wherever you want on the editor
- Ctrl + Alt + Up or Down Arrow Key
- Duplicate the cursor parallel to the same line above or below
- Ctrl + \
- Duplicate a view of the currently opened file
- Ctrl + Alt + Left or Right Arrow Key
- Move currently opened file between opened windows
VSCode Custom Shortcuts2
- Alt + T
- Toggle the terminal
- Alt + /
- Comment a line of code
- Ctrl + K, Ctrl + Shift + S
- Save without formatting
other
Opening a folder on VSCode3
- Go to the folder you want to open in File Explorer
- Ctrl + L to put the focus on the File Path
- Type cmd to pull up the command prompt
- Type code . on the command prompt to open the folder VSCode
- Alt + F4 to close the command prompt
end notes
This is it for now. I wrote this on a whim and just defined the shortcuts on my own. Resources can be found below for the more official ones. If you have other cool and nice tricks please share them with me (!!) or perhaps get back to me in a few months time if you've discovered something new here and successfully integrated it in your workflow ^^
Last updated: 5 months, 1 week ago
This is a shortcut I remember not because I use it all the time but because I always invoke it accidentally. The laptop I currently have has ENG UK and US activated. I always thought something was wrong with my keyboard because the symbols get mixed up. As it turns out, it's just a switch of the keyboard language.↩
I made these because of my mech keyboard. If you notice, the tick and slash keys share the same key with the Escape and Up arrow keys respectively. On default, Ctrl + ` is used for toggling the terminal and Ctrl + / for commenting. Save without formatting I found useful ever since integrating Prettier on VSCode and then subsequently working with ejs.↩
This one is tattooed on me. I don't know how else I can open a folder on VSCode. This is also how I clone projects from GitHub. I guess it's just a fancy way to open the command prompt that I saw from a tutorial once.↩