Adding documentation in Cursor allows the AI to reference external resources when generating or explaining code.
- Open your Cursor editor and sign in to your account.
- Click "Settings" from the upper-right corner of the editor.
- Select the "Index & Docs" section in the settings menu.
- Click "Add Docs" to add a new documentation source.
- Enter the documentation URL or repository link you want Cursor to reference, then click Enter on your keyboard.
- Click the Confirm button, and wait for the indexing process to complete so the docs become searchable.
- Once indexing is finished, you're all set and Cursor can now reference the added documentation.




