WEBVTT

00:00:00.079 --> 00:00:03.079
Kind of related to rules, commands, and

00:00:03.119 --> 00:00:06.539
tools.
There also is a special file you can add

00:00:06.599 --> 00:00:10.180
projects. Here,
I'm back in a Python project,

00:00:10.279 --> 00:00:13.880
project. It's a .cursorignore

00:00:14.019 --> 00:00:16.680
file, and it acts like a git ignore file.

00:00:17.000 --> 00:00:20.839
It allows you to specify files cursor
should never be

00:00:20.920 --> 00:00:24.879
allowed to look at. For example,
my .env file which contains

00:00:24.939 --> 00:00:28.539
environment variables I don't want to
expose, not to cursor, not to anyone

00:00:28.619 --> 00:00:32.560
else. Now, in case of .env,
you actually don't need to

00:00:32.598 --> 00:00:36.159
add them here because .env
is a special file that is ignored by

00:00:36.240 --> 00:00:39.639
default anyways,
which you can tell by this icon.

00:00:39.680 --> 00:00:42.659
Nonetheless, as an example,
we can add it here again.

00:00:42.680 --> 00:00:46.639
And you could add any other files you
don't want cursor to inspect

00:00:46.720 --> 00:00:50.479
like the .venv file
which contains the virtual environment,

00:00:50.540 --> 00:00:54.539
So if you have any code, any files
that should not be considered by cursor,

00:00:54.659 --> 00:00:57.860
adding them to such a .cursorignore file
is a good idea.
