+
Skip to content

add Cursor.gitignore #4635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 0 commits into from
Closed

add Cursor.gitignore #4635

wants to merge 0 commits into from

Conversation

Wuhall
Copy link
Contributor

@Wuhall Wuhall commented May 17, 2025

Reasons for making this change

This change adds Cursor editor's ignore patterns to the global gitignore collection because:

  1. Security Protection
    These files commonly contain references to sensitive paths (.env, config/secrets/, local debug files) that should never be committed. Unlike .gitignore, they're designed for editor-specific exclusions.

  2. Editor Ecosystem Standard
    Cursor (an AI-powered editor growing in Python development) follows VS Code's ignore handling paradigm. We already ignore similar editor files (.vscode/, .idea/).

  3. Dual-Purpose Ignore Files
    .cursorignore: User-specific patterns (equivalent to personal .gitignore)

    .cursorindexingignore: Controls AI feature access (prevents analysis of generated code/assets)

Links to documentation supporting these rule changes

  1. Official Cursor ignore file documentation:
    https://docs.cursor.com/context/ignore-files
  2. Official Cursor suggestion to exclude:
    https://docs.cursor.com/context/codebase-indexing
image

If this is a new template

Link to application or project’s homepage: TODO

Merge and Approval Steps

  • Confirm that you've read the contribution guidelines and ensured your PR aligns
  • Ensure CI is passing
  • Get a review and Approval from one of the maintainers

@Wuhall Wuhall requested a review from a team as a code owner May 17, 2025 13:59
@covracer
Copy link

Duplicate of #4633

@Wuhall
Copy link
Contributor Author

Wuhall commented May 20, 2025

@covracer Thank you for your feedback. This PR is to save a separate file for Cursor, not limited to Python.gitignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载