This guide provides a comprehensive list of shortcuts and commands for Windows , VS Code , and CMD . You can use this as a cheat sheet to improve your productivity.
Windows Shortcuts
-
Clipboard History:
Windows + V
= Opens clipboard history (requires clipboard history enabled in settings).
-
Run Dialog:
Windows + R
= Opens the Run dialog box.
-
File Explorer:
Windows + E
= Opens File Explorer (This PC).
-
Select All:
Ctrl + A
= Selects all items in a folder, document, or webpage.
-
Search:
Ctrl + F
= Opens search functionality in most applications or browsers.
-
Shift Key Selection:
Ctrl + Shift
= Allows selecting multiple non-contiguous items.
-
Minimize/Maximize Windows:
Windows + D
= Minimizes all windows to show the desktop.
-
Split Screen:
- Drag a window to the left or right edge of the screen to snap it.
Windows + Left/Right Arrow
= Snap a window to the left or right side of the screen.Windows + Up/Down Arrow
= Maximize/minimize a window vertically.
-
Shake to Minimize:
- Click and shake a window to minimize all other open windows.
-
Switch Between Open Apps:
Alt + Tab
= Switch between recently used apps/windows.
-
Task View:
Windows + Tab
= Opens Task View (virtual desktops and open windows).
-
New Virtual Desktop:
Windows + Ctrl + D
= Creates a new virtual desktop.Windows + Ctrl + Left/Right Arrow
= Switch between virtual desktops.Windows + Ctrl + F4
= Close the current virtual desktop.
-
Screenshot Tools:
Windows + Shift + S
= Opens Snipping Tool for screenshots.Windows + Print Screen
= Takes a full-screen screenshot and saves it to the Pictures folder.
-
Open Command Prompt from File Path:
- In File Explorer, type
cmd
in the address bar and press Enter to open Command Prompt in the current directory.
- In File Explorer, type
-
Special Characters:
Alt + 96
= Inserts a backtick (`) character.
VS Code Shortcuts
-
Commenting Code:
Ctrl + K + C
= Comment out selected lines.Ctrl + K + U
= Uncomment selected lines.
-
Indentation:
Shift + Tab
= Decrease indentation for selected lines.Tab
= Increase indentation for selected lines.
-
Copy/Paste Lines:
Shift + Alt + Up/Down Arrow
= Copy the current line above or below.
-
Move Lines:
Alt + Up/Down Arrow
= Move the current line up or down.
-
Add New Line:
Ctrl + Shift + Enter
= Add a new line above the current line.
-
Find and Replace:
Ctrl + H
= Opens the Find and Replace panel.
-
Format Code:
Alt + Shift + F
= Auto-format the code (requires formatting extensions installed).
-
Wrap Text:
Alt + Z
= Toggle word wrap for the editor.
-
Navigate Back/Forward:
Ctrl + -
= Go back to the previous location.Ctrl + Shift + -
= Go forward to the next location.
-
Close Tabs:
Ctrl + W
= Close the current tab/file.
-
Open Command Palette:
Ctrl + Shift + P
= Opens the Command Palette for quick access to VS Code features.
-
Zen Mode:
Ctrl + K + Z
= Toggle Zen Mode (distraction-free coding).
-
Multi-Cursor Editing:
Ctrl + Alt + Up/Down Arrow
= Add multiple cursors above or below the current line.
-
Fold/Unfold Code Blocks:
Ctrl + K + Ctrl + [
= Fold code blocks.Ctrl + K + Ctrl + ]
= Unfold code blocks.
-
Search Across Files:
Ctrl + Shift + F
= Search across all files in the workspace.
Command Prompt (CMD) Commands
-
File Navigation:
cd
= Change directory.cd ..
= Move up one directory.cd \
= Go to the root directory.
-
Create Directories/Files:
mkdir <folder_name>
= Create a new directory.type nul > <file_name>
= Create a new empty file.
-
Open Applications:
notepad
= Opens Notepad.calc
= Opens Calculator.winword
= Opens Microsoft Word.excel
= Opens Microsoft Excel.
-
Clear Screen:
cls
= Clears the Command Prompt screen.
-
Check History:
F7
= Displays command history in CMD.
-
Open File Explorer:
explorer .
= Opens File Explorer in the current directory.explorer <path>
= Opens File Explorer at the specified path.
-
Terminate Processes:
Ctrl + C
= Stops a running process in CMD.
-
Ping a Website:
ping <website_url>
= Checks connectivity to a website.
-
Network Information:
ipconfig
= Displays network configuration details.
-
System Information:
systeminfo
= Displays detailed system information.
-
Disk Cleanup:
sfc /scannow
= Scans and repairs corrupted system files.
-
Task Manager Commands:
tasklist
= Lists all running processes.taskkill /PID <process_id> /F
= Forces a process to terminate.
Additional Tips
-
Keyboard Shortcuts for Productivity:
Ctrl + Shift + Esc
= Opens Task Manager directly.Windows + L
= Locks your computer.Windows + P
= Switch between display modes (e.g., Extend, Duplicate).Ctrl + Shift + N
= Opens a new Incognito/Private window in browsers.
-
Mouse Gestures:
- Hold
Ctrl
while scrolling with the mouse wheel to zoom in/out.
- Hold
-
Customize Keyboard Shortcuts:
- Use tools like AutoHotkey to create custom shortcuts for repetitive tasks.
-
Useful Windows Features:
- Sticky Notes: Press
Windows + S
and search for “Sticky Notes” to jot down quick notes. - Snipping Tool: Use
Windows + Shift + S
to capture screenshots easily.
- Sticky Notes: Press
-
VS Code Extensions for Productivity:
- Prettier: Auto-formats code.
- Bracket Pair Colorizer: Highlights matching brackets.
- Live Server: Launches a local development server for web development.
WindowsShortcuts VSCodeshortcuts CMDCommands ProductivityTips TechShortcuts CodingEfficiency Windows10 VSCodetips CommandPrompt CMDtips TechProductivity VSCodeExtensions KeyboardShortcuts TechHacks SystemOptimization WindowsProductivity CodingShortcuts VSCodeProductivity TechCheatSheet DeveloperTools TechTips CodingTools Windows11 SoftwareDevelopment ProductivityHacks CommandLineTips SystemTools TechSkills ProductivityBoost