Skip to content

Instantly share code, notes, and snippets.

@NamPhuThuy
Last active March 11, 2026 21:28
Show Gist options
  • Select an option

  • Save NamPhuThuy/485138d26017ff684c70abf5e2a52d08 to your computer and use it in GitHub Desktop.

Select an option

Save NamPhuThuy/485138d26017ff684c70abf5e2a52d08 to your computer and use it in GitHub Desktop.
This document provides a quick reference for keyboard shortcuts in Cursor IDE, JetBrains Rider and Unity

Cursor vs Rider IDE Shortcuts Comparison

General Navigation

Action Cursor Rider Description
Quick Open Ctrl + P Ctrl + Shift + N Open file by name
Command Palette Ctrl + Shift + P Ctrl + Shift + A Show all commands
Go to Definition F12 Ctrl + B Navigate to definition of current field/method/class
Find All Usages Shift + F12 Ctrl + B Find all usages
Go to Line Ctrl + G Ctrl + G Jump to specific line
Toggle Terminal `Ctrl + `` Alt + F12 Show/hide terminal
Soft-Wrap Alt + Z Soft-Warp the code
Alt + Up/Down Arrow Key

`: Backtick

Editing

Action Cursor Rider Description
Format Document Shift + Alt + F Ctrl + Alt + L Format entire file
Format Selection Ctrl + K, Ctrl + F Ctrl + Alt + L Format selected code
Comment/Uncomment Ctrl + / Ctrl + / Toggle line comment
Block Comment Shift + Alt + A Ctrl + Shift + / Toggle block comment
Duplicate Line Shift + Alt + ↓ Ctrl + D Copy line below
Delete Line Ctrl + X Ctrl + Y Remove current line
Move Line Up/Down Alt + ↑/↓ Alt + Shift + ↑/↓ Move line position
  • Cursor.Format Selection is conflict with Cursor.AI Chat

Search

Action Cursor Rider Description
Find in File Ctrl + F Ctrl + F Search in current file
Find in Project Ctrl + Shift + F Search in all files
Global Search Ctrl + Shift + F Shift + Shift Search everywhere (files, classes, symbols)
Find Symbol Ctrl + T Ctrl + T Search for symbol
Replace Ctrl + H Ctrl + R Replace text in current file
Replace in Files Ctrl + Shift + H Ctrl + Shift + R Replace texts in all files

Code Navigation

Action Cursor Rider Description
Outline View Ctrl + Shift + O Ctrl + F12 Show file structure
Go to Class Ctrl + T Ctrl + N Navigate to the current class
Recent Files Ctrl + R Ctrl + E Show recent files

Refactoring

Action Cursor Rider Description
Rename Symbol F2 Shift + F6 Rename variable/method
Extract Method Ctrl + Shift + R Ctrl + Alt + M Extract to method
Extract Variable Ctrl + Shift + L Ctrl + Alt + V Extract to variable
Quick Fix Ctrl + . Alt + Enter Show quick fixes

Cursor.Extract Variable is conflict with Cursor.Refresh Side AI

Debugging

Action Cursor Rider Description
Start Debugging F5 Shift + F10 Start debug session
Step Over F10 F8 Step over line
Step Into F11 F7 Step into function
Step Out Shift + F11 Shift + F8 Step out of function
Toggle Breakpoint F9 Ctrl + F8 Add/remove breakpoint

AI Features (Cursor Specific)

Action Cursor Description
Native AI Chat Ctrl + K Open native AI chat panel
Side AI Chat Ctrl + L Open side AI chat panel
Refresh Side AI Ctrl + Shift + L Refresh Side AI Chat panel
Explain Code Ctrl + Shift + E Get AI explanation

Notes

  • Some shortcuts may vary depending on your keyboard layout and OS
  • Cursor is built on VS Code, so many shortcuts are similar to VS Code
  • Rider shortcuts are more similar to other JetBrains IDEs
  • You can customize shortcuts in both IDEs through their settings

Additional Resources

Unity Editor Shortcuts

General

Action Windows Mac Description
Save Ctrl + S Cmd + S Saves the current scene
Save As Ctrl + Shift + S Cmd + Shift + S Saves the current scene with a new name
New Scene Ctrl + N Cmd + N Creates a new empty scene
Open Scene Ctrl + O Cmd + O Opens the scene browser
Build Settings Ctrl + Shift + B Cmd + Shift + B Opens the build settings window
Project Settings Cmd + , Opens the project settings window

Scene View

Action Windows Mac Description
Frame Selected F F Centers the view on the selected object
Lock view to selected Shift + F Cmd + F Adjusts the view to show the selected object
Toggle 2D/3D 2 2 Switches between 2D and 3D view modes
Toggle Gizmos G G Shows/hides all gizmos in the scene
Toggle Grid Ctrl + G Cmd + G Shows/hides the grid in the scene
Toggle Scene View Camera Ctrl + Shift + F Cmd + Shift + F Aligns scene view with game view camera
Toggle Grid Snap \ Enable/disable grid snap
Push to Grid Ctrl + \ Ctrl + \ Push selected GameObject into Grid
Toggle All Overlays Ctrl + ` Show/hide all Overlays

Game View

Action Windows Mac Description
Play/Stop Ctrl + P Cmd + P Starts/stops the game in the editor
Pause Ctrl + Shift + P Cmd + Shift + P Pauses the game in the editor
Step Ctrl + Alt + P Cmd + Alt + P Steps through the game one frame at a time

Hierarchy

Action Windows Mac Description
Create Empty Ctrl + Shift + N Cmd + Shift + N Creates a new empty GameObject
Create Child Alt + Shift + N Option + Shift + N Creates a new child GameObject under selection
Create Empty Parent Ctrl + Shift + G Create a new empty parent for the selected GameObj
Delete Selected Delete Delete Removes the selected GameObject(s)
Select Children Shift + C Select all children of current GameObject
Invert Selection Ctrl + I
Duplicate Ctrl + D Cmd + D Creates a copy of the selected GameObject(s)
Select Parent Left Arrow Left Arrow Selects the parent of the current selection
Select Child Right Arrow Right Arrow Selects the first child of the current selection
Align With View Ctrl + Shift + F Place the selected GameObj right infront of the Camera
Move To View Ctrl + Alt + F Move selected GameObject to the current View of Camera
Select Prefab Root Ctrl + Shift + R Select the prefab root of the selected GameObject on the Hierarchy View

Inspector

Action Windows Mac Description
Reset Component Right-click > Reset Right-click > Reset Resets the selected component to default values
Apply Prefab Changes Cmd + Alt + A Applies changes made to a prefab instance
Revert Prefab Changes Cmd + Alt + R Reverts changes made to a prefab instance
Add New Component Ctrl + Shift + A Add New Component Into The Current GameObject

Project View

Action Windows Mac Description
Quick Find Ctrl + F Find Asset In Project with Name
Show In Explorer (addition) Alt + F Show current folder in the Explorer

Window Management

Action Windows Mac Description
Console Ctrl + Shift + C Cmd + Shift + C Opens the console window
Scene Ctrl + 1 Cmd + 1 Opens the scene view
Game Ctrl + 2 Cmd + 2 Opens the game view
Inspector Ctrl + 3 Cmd + 3 Opens the inspector window
Hierarchy Ctrl + 4 Cmd + 4 Opens the hierarchy window
Project Ctrl + 5 Cmd + 5 Opens the project window
Animation Ctrl + 6 Cmd + 6 Opens the animation view
Profiler Ctrl + 7 Cmd + 7 Opens the profiler view
Audio Mixer Ctrl + 8 Cmd + 8 Opens the audio mixer view
Undo History Ctrl + U Opens the undo history view

Asset Management

Action Windows Mac Description
Create Prefab Cmd + Shift + N Creates a prefab from selected GameObject
Refresh Assets Ctrl + R Cmd + R Refreshes the asset database

Transform Tools

Action Windows Mac Description
Move Tool W W Activates the move tool
Rotate Tool E E Activates the rotate tool
Scale Tool R R Activates the scale tool
Rect Tool T T Activates the rect tool
Transform Tool Y Y Activates the transform tool
Toggle Pivot/Center Z Z Switches between pivot and center modes
Toggle Local/Global X X Switches between local and global coordinate systems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment