[FEATURE] Add setting to disable automatic file/selection context inclusion by default

Resolved 💬 2 comments Opened Feb 7, 2026 by TeamDijon Closed Feb 7, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Summary

Add a VS Code extension setting to control whether the current file/selection is automatically attached as context when composing a prompt.

Current Behavior

The Claude Code VS Code extension automatically includes the currently open file (and any active selection) as context in every prompt. This is shown as a pill/chip in the prompt input area (e.g., "README.md"). Users must manually click the toggle to exclude it before each prompt.

Proposed Solution

A new setting (e.g., claude.autoIncludeContext) that allows users to disable automatic context inclusion by default. When disabled:

  • The current file/selection would not be attached automatically
  • Users could still manually include context by clicking the toggle or using @-mention references
  • Explicit @file references would continue to work as expected

Alternative Solutions

_No response_

Priority

Medium - Would be very helpful

Feature Category

Other

Use Case Example

Some users prefer to have full control over what context is sent with each prompt. Today, the only option is to manually dismiss the attached file before every submission, which adds friction. A global default would let users opt in to context inclusion rather than opt out each time.

Suggested Setting

// In VS Code settings
"claude.autoIncludeContext": true // default, preserves current behavior

When set to false, no file or selection context would be attached unless the user explicitly adds it.

Additional Context

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗