Skip to content

Keyboard Shortcuts

A quick reference for common keyboard shortcuts in browsers, TRAE, and macOS.

Key Symbols

Symbol Key Pronunciation
⌘ Command command
⌥ Option option
⌃ Control control
⇧ Shift shift
⇥ Tab tab
⎋ Escape escape
⌫ Delete delete

Tip

Press the keys together. For example, ⌘ + T means "hold Command and press T."

Browser

These shortcuts work in most macOS browsers, including Chrome, Safari, Edge, and Firefox.

Tabs and Windows

Shortcut Action
⌘ + T Open a new tab
⌘ + W Close the current tab
⌘ + ⇧ + T Reopen the last closed tab
⌃ + Tab Move to the next tab
⌃ + ⇧ + Tab Move to the previous tab
⌘ + 1 ... ⌘ + 8 Switch to a specific tab
⌘ + 9 Switch to the last tab
⌘ + N Open a new window
⌘ + ⇧ + N Open a private or incognito window
Shortcut Action
⌘ + L Focus the address bar
⌘ + R Reload the current page
⌘ + [ Go back
⌘ + ] Go forward
⌘ + F Find text on the page
⌘ + G Find the next match
⌘ + ⇧ + G Find the previous match
⌘ + D Bookmark the current page
⌘ + + Zoom in
⌘ + - Zoom out
⌘ + 0 Reset the zoom level

Bookmarks

Shortcut Action
⌘ + ⇧ + B Show or hide the bookmarks bar(Chrome)
⌘ + ⌥ + B Open the bookmark manager or editor(Chrome)
⌘ + B Show or hide the bookmarks bar(Firefox)

Note

A few browser-specific shortcuts may differ. For example, private browsing is called an Incognito window in Chrome and a Private window in Safari.

TRAE

The following shortcuts use TRAE's default macOS keybindings.

AI Features

Shortcut Action
⌘ + U Open the side AI chat
⌘ + I Open inline AI chat
⌘ + Space Trigger code completion

Editing

Shortcut Action
⌘ + Enter Insert a new line
⌘ + C Copy the current line or selected text
⌘ + X Cut the current line or selected text
⌘ + V Paste
⌘ + L Select the current line
⌘ + Z Undo the last action
⌘ + ⇧ + Z Redo the last action
⌘ + / Toggle a line comment
⌘ + F Find text in the current file
Enter Move to the next search result
⇧ + Enter Move to the previous search result
F2 Rename a symbol
⌘ + F12 Go to a symbol's definition
Shortcut Action
⌘ + ⇧ + P Open the Command Palette
⌘ + P Quickly open a file
⌘ + ⇧ + F Search across all files
⌘ + , Open Settings

You can customize these shortcuts in Settings > General > Preferences > Keyboard Shortcuts.

Source: TRAE Keyboard Shortcuts

macOS

Everyday Actions

Shortcut Action
⌘ + C Copy
⌘ + X Cut
⌘ + V Paste
⌘ + Z Undo
⌘ + ⇧ + Z Redo
⌘ + A Select all
⌘ + F Find
⌘ + S Save
⌘ + P Print
⌃ + ⌘ + Space Open the emoji and symbol viewer

Apps and Windows

Shortcut Action
⌘ + Space Open Spotlight
⌘ + Tab Switch between open apps
⌘ + ` Switch between windows of the current app
⌘ + W Close the current window
⌘ + M Minimize the current window
⌘ + Q Quit the current app
⌥ + ⌘ + ⎋ Open the Force Quit window
⌃ + ⌘ + Q Lock the screen

Finder

Shortcut Action
⌘ + N Open a new Finder window
⌘ + ⇧ + N Create a new folder
Space Preview the selected file with Quick Look
⌘ + ⌫ Move the selected item to the Trash
⌘ + ⇧ + ⌫ Empty the Trash
⌘ + ⇧ + . Show or hide hidden files

Comments