When using chat how to ensure all project scripts are being accessed?

I’m fairly new to using cursor, but one aspect that has confused me is how the chat works in terms of accessing your project code.

For example I am working in Unity so I’d like cursor to be looking at all of the scripts I have written when responding to requests. But in the chat window you can add context, which in my case could be the relevant scripts. If I don’t add any context is cursor by default accessing and analysing the existing scripts in my project? Do I need to explicitly tell cursor my project folder, possibly in the project rules?

There is also codebase chat. In the settings I did the codebase indexing, but didn’t configure any files to ignore.

I have several scripts that depend on others, services, managers, etc so when I make a request to change a script I want it to also understand the other scripts in the project when making suggestions.

Hey,

By default, Cursor will not provide any context to the AI besides the current open file, which you can see as tagged as context when tou start a new session.

To provide more context, specifically in the chat, we have two options:

  1. You can mention more files or a folder to provide them as context. Mentioning a folder will let Cursor scan the most relevant files related to your query.
  2. @codebase allows Cursor to scan your codebase and find the most relevant files related to your query. It will then automatically use them as context.