One of the greatest way to improve your productivity is using the keyboard shortcuts when programming. Learn to use keyboard shortcuts will bring your productivity into another. It helps you to do things quicker and more efficiently without leaving your keyboard.
To become a programming ninja, here is the list of keyboard shortcuts that are highly recommended for programmers.
Generic Windows Shortcuts
Ctrl + C – Copy
Ctrl + X – Cut
Ctrl + V – Paste
Ctrl + S – Save
Ctrl + Z – Undo
Ctrl + Y – Redo
Ctrl + F – Find in window/app
Windows + D – Minimize all windows, go to desktop.
Windows + Up/Down Arrow – Minimize/Maximize current window/app
Windows + Left/Right Arrow – Move current window/app to left/right side of/next screen.
Alt + Tab – Switched to the next Window Tab
Shift + Alt + Tab – Reverse Window Tab Move
WINDOWS KEY + R – Run and type command to open notepad, command prompted, etc.
ALT + F4 – Close the current application or shut down computer
Cursor Keyboard Shortcut
Arrow Key (UP, DOWN, LEFT, RIGHT) – Move character by character.
SHIFT + Arrow Key (UP, DOWN, LEFT, RIGHT) – Arrow select specific text by moving character by character OR line by line.
HOME Key – Reach to Beginning of the line
END Key – Reach to End of the line
SHIFT + HOME – Select entire line before the cursor
SHIFT + END – Select entire line after the cursor
CTRL + BACKSPACE – Remove Whole Word
Chrome Browser Shortcuts
CTRL + W – To close the current tab in browser
CTRL + N – Open new browser window whether its Chrome or IE.
CTRL + SHIFT + N – Open new Incognito browser window Chrome.
ALT + TAB – Switch to different tabs
CTRL + TAB – Switch between different tabs forward in browser
CTRL + SHIFT + TAB – Switch between different tabs backward in browser
CTRL + T – Open new tab in Browser
Ctrl + Shift + T – Restore the last closed tab
Ctrl + 1/2/3 (Number) – Switch To the first/second/third Tab (Number)
CTRL+D – Bookmark Current Page
VS Code Keyboard Shortcuts
Alt + Left Arrow – Go back – Last Cursor Position. This could be in a a different file.
Alt + Right Arrow – Go forward – Last Cursor Position the
other way! Did you go too far? Don’t worry, undo your undo!
Ctrl + Shift + F – Find in all Files
Ctrl + K + C – Comment
Ctrl + K + U – Uncomment
Ctrl + / – Comment Toggle
Ctrl + Shift + R – Refactor
F12 – Goto Definition (Save time searching the code base)
Alt + Shift + Up Arrow – Duplicate line above
Alt + Shift + Down Arrow – Duplicate line below
F2 – Rename the variable name. (This won’t replace strings or comments)
Ctrl + D – Multi Cursor, Select next occurrence
Ctrl + Shift + L – Multi Cursor, Select All in File
Ctrl + P – Quick Find – Files, Etc