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.