Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>4aiNew to Visual Studio Code? Get it now.
4ai

4ai

benfinnett

|
1 install
| (1) | Free
Prepare your code for the AI overlords and make them happy.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

4ai

4ai is a simple tool to allow easy formatted copying of code for giving context to chat-based LLMs.

Features

  1. Copy code content for individual or multiple Python or TypeScript/JavaScript files by selecting them and right clicking
  2. Copied files are placed into a code comment with the path (markdown formatting)
  3. Optional local import resolving to retrieve relevant code from imports

Extension Settings

This extension contributes the following settings:

  • 4ai.resolveImports: Resolve and include local imports when copying.
  • 4ai.importDepth: How many levels deep to resolve transitive imports.
  • 4ai.maxOutputTokens: Maximum estimated tokens before truncation.
  • 4ai.tokenWarningThreshold: Show a warning when estimated tokens exceed this.
  • 4ai.chunkSizeTokens: Target chunk size in tokens for chunked copy mode.
  • 4ai.copyMode: Default copy mode.

Known Issues

None yet

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft