Skip to content

Is there a way to auto-ignore some files pattern? #269

Closed

Description

@dat-lequoc

Image

Activity

  1. robertpiosik commented on May 22, 2025

    @robertpiosik
    Collaborator

    Great you bring it up. We need a way to ignore glob patterns outside of those defined in .gitignore.

  2. dat-lequoc commented on May 23, 2025

    @dat-lequoc
    Author

    Yeah, but ignore in a way that => not select , but the file still show in the tree though

  3. Mayurifag commented on Dec 15, 2025

    @Mayurifag

    One of the final solutions as it seems for me would be project-related settings via something custom in ./vscode/ folder, because its very common to want not only some always ignored files, but also custom prompts: in project with rust I want one prompt, in python project other and so on. Also — autoignored on sending to models 😄

    By the way, ignoring files is a really needed function. I'd use it with uv.lock or Gemfile.lock files or something encrypted, yet in git, like credentials files in Rails ecosystem.

    Thanks in advance!! 👍🏻

  4. robertpiosik commented on Dec 15, 2025

    @robertpiosik
    Collaborator

    Hi @Mayurifag.

    In .vscode/settings.json add key codeWebChat.ignorePatterns, and in the array of strings, list all the globs you want to ignore. I'll add a shortcut for it in Settings :)

  5. Mayurifag commented on Dec 16, 2025

    @Mayurifag

    Hi! Thanks for suggestion! Yea, looks much better. :)

    Image
  6. Mayurifag commented on Dec 16, 2025

    @Mayurifag

    If one wants that just for workspace, not global excludes, here is the copy-paste solution:

    Create/modify .vscode/settings.json in your project:

    {
        "codeWebChat.ignorePatterns": [
            "/uv.lock"
        ],
    }
  7. robertpiosik commented on Dec 16, 2025

    @robertpiosik
    Collaborator

    @Mayurifag I'll add a shortcut in settings that creates this on user behalf.

  8. locked and limited conversation to collaborators on Dec 16, 2025
  9. converted this issue into a discussion #453 on Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions