Cursor Cheat Sheet
Unlock Unlimited Productivity
Beginner Concepts
Basic cursor movement
Move the cursor using arrow keys
// Use ←↑→↓ to move cursor
View moreView less
Simple text selection
Select text using Shift + arrow keys
// Hold Shift + ←↑→↓ to select
Copy and paste
Use Ctrl+C to copy and Ctrl+V to paste
// Ctrl+C to copy
// Ctrl+V to paste
Undo and redo
Undo with Ctrl+Z, redo with Ctrl+Y
// Ctrl+Z to undo
// Ctrl+Y to redo
Pro Tips
Multi-cursor editing
Edit multiple lines simultaneously
// Alt+Click to add cursors
View moreView less
Quick line manipulation
Move or duplicate entire lines
// Alt+↑↓ to move lines
// Shift+Alt+↑↓ to copy lines
Efficient code navigation
Jump to specific parts of your code
// Ctrl+G to go to line
// Ctrl+F to find
Custom keyboard shortcuts
Create your own shortcuts
// File > Preferences > Keyboard Shortcuts
Awesome Prompts
Generate code snippets
Ask AI to create code for you
// Generate a React component for a login form
View moreView less
Explain complex functions
Get AI explanations for difficult code
// Explain how this async function works
Optimize algorithms
Improve your code's efficiency
// Optimize this sorting algorithm
Debug tricky issues
Get help with debugging
// Why is this function causing a memory leak?
Boilerplates
React component templates
Quick start for React components
const Component = () => {
return <div>New Component</div>
}
View moreView less
API route starters
Template for API routes
export default function handler(req, res) {
res.status(200).json({ message: 'Hello' })
}
Database connection setups
Boilerplate for DB connections
const db = await mongoose.connect(process.env.MONGO_URI)
Testing scaffolds
Quick setup for testing
describe('test suite', () => {
it('should pass', () => {
expect(true).toBe(true)
})
})