Cursor High CPU Usage — How to Fix It
Cursor spiking to 80–100% CPU even while idle is one of the most common performance complaints among developers working with large codebases. The issue typically surfaces when Cursor is indexing thousands of files or when a runaway extension consumes processing resources in the background. Developers on older hardware or spinning-disk drives are especially likely to notice sluggishness, fan noise, and battery drain.
Why does this error happen?
How to fix it
Add Large Folders to .cursorignore
Create or open a .cursorignore file in your project root and list directories that do not need AI indexing, such as node_modules, dist, .git, and build. Cursor treats this file similarly to .gitignore, skipping listed paths entirely during indexing. After saving the file, reload the window with Ctrl+Shift+P → 'Developer: Reload Window' to apply the changes immediately.
Disable Unused Extensions
Open the Extensions panel (Ctrl+Shift+X), filter by 'Enabled', and disable any extension you are not actively using for your current project. Extensions that provide linting, live previews, or file watching can each independently spike CPU usage. Right-click an extension and choose 'Disable (Workspace)' to turn it off only for the current project without affecting other workspaces.
Limit File Watcher Scope in Settings
Open Settings (Ctrl+,) and search for files.watcherExclude. Add glob patterns for heavy directories — for example, set **/node_modules/** and **/dist/** to true to exclude them from the file watcher. Also check files.exclude to hide those folders from the Explorer, which reduces the number of resources Cursor tracks at runtime.
Upgrade RAM or Use an SSD for the Project
If hardware resources are the bottleneck, moving your project folder to an SSD (or an NVMe drive) dramatically reduces I/O wait time that the CPU spends blocked during indexing. Adding RAM above 16 GB prevents the OS from swapping Cursor's in-memory index to disk. As a quick workaround, storing the project on a RAM disk or fast external NVMe enclosure can yield immediate improvements while a hardware upgrade is planned.
💡 Pro Tip
Add a .cursorignore file to every new project before writing your first line of code — blocking node_modules and build folders from the start prevents the indexer from ever processing them, keeping CPU usage low for the entire life of the project.
Frequently Asked Questions
Why does Cursor use high CPU even when I am not typing or using AI features?
Will adding folders to .cursorignore break AI code suggestions?
How can I tell which extension is causing the CPU spike?
Does Cursor Pro offer better performance than the free plan?
Quick diagnostic checklist
Before diving into the full fix, run through these quick checks — they resolve the issue in most cases without additional steps:
Common root causes
Understanding why this error occurs helps you prevent it in the future. The most frequent causes are:
- Outdated Cursor version with known bugs
- API key expired or quota exhausted
- Conflicting VS Code extensions interfering with Cursor
- Context window exceeded in large files or codebases
- Network proxy or firewall blocking Cursor API calls
Still not working?
If none of the steps above resolved the issue, the next step is to contact Cursor support directly. When reaching out, include:
- • The exact error message or code you see
- • The steps you already tried from this guide
- • Your account plan and the approximate time the error started
- • Your browser/OS version if it is a web interface issue
About Cursor
Cursor is an AI-powered code editor built on VS Code, developed by Anysphere Inc. It integrates GPT-4 and Claude models directly into the editor for autocomplete, code generation, and natural language chat. Cursor is popular among developers for pair programming and large codebase navigation.
Browse all Cursor error guides →