Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Keyboard shortcuts

Keyboard shortcuts


You can save time by using keyboard shortcuts.


Keyboard Shortcuts for Windows and Mac

Keyboard shortcuts are frequently used in modern operating systems and computer software.

Using keyboard shortcuts can save you a lot of time.


Basic Shortcuts

Description Windows Mac OS
Edit menu Alt + E Ctrl + F2 + F
File menu Alt + F Ctrl + F2 + E
View Menu Alt + V Ctrl + F2 + V
Select all text Ctrl + A Cmd + A
Copy text Ctrl + C Cmd + C
Find text Ctrl + F Cmd + F
Find and replace text Ctrl + H Cmd + F
Create a new document Ctrl + N Cmd + N
Opening a File Ctrl + O Cmd + O
Print options Ctrl + P Cmd + P
Save file Ctrl + S Cmd + S
Paste text Ctrl + V Cmd + V
Cut text Ctrl + X Cmd + X
Redo text Ctrl + Y Shift + Cmd + Z
Undo text Ctrl + Z Cmd + Z

Text Editing

Description Windows Mac OS
Cursor Movement
Move the text insertion cursor right or to the beginning of the next line Right Arrow Right Arrow
Move the text insertion cursor left or to the end of the previous line Left Arrow Left Arrow
Move the text insertion cursor up one line Up Arrow Up Arrow
Move the text insertion cursor down one line Down Arrow Down Arrow
Move the text insertion cursor to the beginning of the current line Home Cmd + Left Arrow
Move the text insertion cursor to the end of the current line End Cmd + Right Arrow
Move the text insertion cursor to the beginning of the document Ctrl + Home Cmd + Up Arrow
Move the text insertion cursor to the end of the document Ctrl + End Cmd + Down Arrow
Move the text insertion cursor to the previous text box Page Up Fn + Up Arrow
Move the text insertion cursor to the next text box Page Down Fn + Down Arrow
Move the text insertion cursor left to the beginning of the previous word Ctrl + Left Arrow Option + Left Arrow
Move the text insertion cursor right to the beginning of the next word Ctrl + Right Arrow Option + Right Arrow
Move the text insertion cursor to the beginning of the line Ctrl + Up Arrow Cmd + Left Arrow
Move the text insertion cursor to the end of the line Ctrl + Down Arrow Cmd + Right Arrow
     
Text Selection
Select the character to the left of the text insertion cursor Shift + Left Arrow Shift + Left Arrow
Select the character to the right of the text insertion cursor Shift + Right Arrow Shift + Right Arrow
Select one line of text upward Shift + Up Arrow Shift + Up Arrow
Select one line of text downward Shift + Down Arrow Shift + Down Arrow
Select the word to the left of the text insertion cursor Shift + Ctrl + Left Shift + Opt + Left
Select the word to the right of the text insertion cursor Shift + Ctrl + Right Shift + Opt + Right
Select a paragraph of text to the left Shift + Ctrl + Up Shift + Opt + Up
Select a paragraph of text to the right Shift + Ctrl + Down Shift + Opt + Down
Select the text between the cursor and the beginning of the current line Shift + Home Cmd + Shift + Left Arrow
Select the text between the cursor and the end of the current line Shift + End Cmd + Shift + Right Arrow
Select the text between the cursor and the beginning of the document Shift + Ctrl + Home Cmd + Shift + Up Arrow or Cmd + Shift + Fn + Left Arrow
Select the text between the cursor and the end of the document Shift + Ctrl + End Cmd + Shift + Down Arrow or Cmd + Shift + Fn + Right Arrow
Select one text box upward Shift + Page Up Shift + Fn + Up Arrow
Select one text box downward Shift + Page Down Shift + Fn + Down Arrow
Select all text Ctrl + A Cmd + A
Find text Ctrl + F Cmd + F
     
Text Formatting
Set the selected text to bold Ctrl + B Cmd + B
Set the selected text to italic Ctrl + I Cmd + I
Underline the selected text Ctrl + U Cmd + U
Set the selected text as superscript Ctrl + Shift + = Cmd + Shift + =
Set the selected text as subscript Ctrl + = Cmd + =
     
Text Editing
Delete the character to the left of the text insertion cursor Backspace Backspace
Delete the character to the right of the text insertion cursor Delete Fn + Backspace
Delete the word to the right of the text insertion cursor Ctrl + Del Cmd + Backspace
Delete the word to the left of the text insertion cursor Ctrl + Backspace Cmd + Fn + Backspace
Increase indent Tab Tab
Decrease indent Shift + Tab Shift + Tab
Copy text Ctrl + C Cmd + C
Find and replace text Ctrl + H Cmd + F
Paste text Ctrl + V Cmd + V
Cut text Ctrl + X Cmd + X
Redo text Ctrl + Y Shift + Cmd + Z
Undo text Ctrl + Z Cmd + Z

Web Browser

Description Windows Mac OS
Navigation
Scroll down Space or Page Down Space or Fn + Down Arrow
Scroll up Shift + Space or Page Up Shift + Space or Fn + Up Arrow
Go to the bottom of the page End Cmd + Down Arrow
Go to the top of the page Home Cmd + Up Arrow
Go back Alt + Left Arrow or Backspace Cmd + Left Arrow
Go forward Alt + Right Arrow or Shift + Backspace Cmd + Right Arrow
Reload the page F5 Cmd + R
Reload the page (without cache) Ctrl + F5 Cmd + Shift + R
Stop Esc Esc
Fullscreen toggle F11 Cmd + Shift + F
Zoom in Ctrl + + Cmd + +
Zoom out Ctrl + - Cmd + -
Reset to 100% (default) Ctrl + 0 Cmd + 0
Open the home page Alt + Home Option + Home or Option + Fn + Left Arrow
Find text Ctrl + F Cmd + F
     
Tab/Window Management
Open a new tab Ctrl + T Cmd + T
Close the current tab Ctrl + W Cmd + W
Close all tabs Ctrl + Shift + W Cmd + Q
Close all tabs except the current one Ctrl + Alt + F4 Cmd + Opt + W
Go to the next tab Ctrl + Tab Control + Tab or Cmd + Shift + Right Arrow
Go to the previous tab Ctrl + Shift + Tab Shift + Control + Tab or Cmd + Shift + Left Arrow
Go to the tab with the specified number Ctrl + 1-8 Cmd + 1-8
Go to the last tab Ctrl + 9 Cmd + 9
Reopen the last closed tab Ctrl + Shift + T Cmd + Shift + T
Open a new window Ctrl + N Cmd + N
Close the current window Alt + F4 Cmd + W
Go to the next window Alt + Tab Cmd + Tab
Go to the previous window Alt + Shift + Tab Cmd + Shift + Tab
Reopen the last closed window Ctrl + Shift + N  
Open a link in a background tab Ctrl + Click Cmd + Click
Open a link in a foreground tab Ctrl + Shift + Click Cmd + Shift + Click
Print the current page Ctrl + P Cmd + P
Save the current page Ctrl + S Cmd + S
     
Address Bar
Cycle through the toolbar, search bar, and page elements Tab Tab
Go to the browser's address bar Ctrl + L or Alt + D Cmd + L
Focus and select the browser's search bar Ctrl + E Cmd + E / Cmd + K
Open the address bar location in a new tab Alt + Enter Cmd + Enter
Show a list of previously visited addresses F4  
Add "www." at the beginning and ".com" at the end of the text entered in the address bar. (For example, enter "baidu" in the address bar and then press Ctrl + Enter to open "www.baidu.com".) Ctrl + Enter Cmd + Enter or Control + Enter
     
Bookmark
Open the bookmarks menu Ctrl + B Cmd + B
Bookmark the current page Ctrl + D Cmd + Opt + B or Cmd + Shift + B
Open browsing history Ctrl + H Cmd + Shift + H or Cmd + Y
Open download history Ctrl + J Cmd + J or Cmd + Shift + J

Screenshots

Description Windows Mac OS
Save a screenshot of the entire screen to a file   Cmd + Shift + 3
Copy a screenshot of the entire screen to the clipboard PrtScr (Print Screen) or Ctrl + PrtScr Cmd + Ctrl + Shift + 3
Save a screenshot of the window to a file   Cmd + Shift + 4, then Space
Copy a screenshot of the window to the clipboard Alt + PrtScr Cmd + Ctrl + Shift + 4, then Space
Copy a screenshot of the selected area to the clipboard Cmd + Ctrl + Shift + 4
Save a screenshot of the selected area to a file   Cmd + Shift + 4

**Note:** Due to different keyboard settings, some shortcuts may not work for all users.