Skip to content
| Marketplace
Sign in
Visual Studio>Tools>VS2AI Exporter
VS2AI Exporter

VS2AI Exporter

Claus Falkenstein

|
8 installs
| (0) | Free
Export Visual Studio solutions as AI-readable Markdown context packages for ChatGPT, Claude, Gemini, DeepSeek, and other AI assistants.
Download

VS2AI Exporter

VS2AI Exporter is a Visual Studio extension that creates AI-readable project context packages from Visual Studio solutions, projects, folders, and selected files.

It helps you prepare source code, project structure, export rules, AI instructions, and a concrete development task in a single Markdown context file that can be used with AI assistants such as ChatGPT, Claude, Gemini, DeepSeek, or other coding models.

The goal is not just to export files.

The goal is to give an AI assistant enough structured context to understand your project quickly and work on it safely.


Why VS2AI?

AI assistants work best when they receive:

  • relevant project files
  • a clear project structure
  • a concrete task
  • coding rules
  • architecture hints
  • file boundaries
  • clean context without unnecessary noise

VS2AI Exporter creates exactly that.

Instead of manually copying files into a chat, VS2AI generates a structured Markdown export that is easier for AI tools to read, navigate, and reason about.


Main Features

  • Export the current Visual Studio solution, project, folder, or selected files
  • Supports single-selection and multi-selection exports from Solution Explorer
  • Export multiple selected projects as separate Markdown context files
  • Export multiple selected folders as separate Markdown context files
  • Export multiple selected files as separate single-file context exports
  • Selected single files are exported exactly as single-file context exports, not as complete folders
  • Create an AI-readable Markdown context file
  • Optionally create a clean source ZIP
  • Optionally create a runnable demo ZIP
  • Add a custom AI task directly into the Markdown export
  • Include project structure and file index
  • Include configurable AI working rules
  • Use stable or timestamped output file names
  • Open result files and folders directly from the export dialog
  • Copy generated Markdown to the clipboard
  • Keep exports organized in a .vs2ai/exports folder

Selection Export Support

VS2AI Exporter can be used directly from the Visual Studio Solution Explorer context menu.

You can export:

  • the complete solution
  • a single project
  • multiple selected projects
  • a selected folder
  • multiple selected folders
  • a single selected file
  • multiple selected files

For multi-selection exports, VS2AI creates separate context files for the selected sources.

This is especially useful when you want to give an AI assistant focused context for only the projects, folders, or files that are relevant to the current task.

Single-file exports are handled as real single-file context exports. VS2AI does not silently export the whole containing folder when only one file is selected.


Screenshots

VS2AI Export Workspace

Markdown Settings

AI Working Rules

Generated Markdown Context

Created Graph Visualizer App

Multi-selection export from Solution Explorer


AI Task Support

VS2AI lets you define a task that is written directly into the generated Markdown file.

For example, the AI can receive a task to extend a nearly empty WPF project named Graph Visualizer.

The requested changes were:

  • Use the latest .NET 9 version.
  • Center the MainWindow at startup.
  • Set the MainWindow size to 1280 x 900.
  • Configure TextOptions for clean text rendering.
  • Allow entering any mathematical function at the top of the MainWindow.
  • Provide a ComboBox with predefined sample functions.
  • Render the function using SkiaSharp.
  • Draw axes, values, labels, and grid lines.
  • Scale the graph automatically and normalize the Y-axis.

The AI assistant receives this task together with the actual project files, project structure, export rules, and file boundaries.


AI Working Rules

VS2AI can include configurable working rules in the Markdown export.

Examples:

  • Preserve existing architecture, project structure, namespaces, and public APIs unless explicitly asked to change them.
  • Do not remove or alter existing functionality unless explicitly requested.
  • Prefer minimal, safe, compiling changes that fit the existing codebase.
  • Never replace working code with placeholders or incomplete implementations.
  • When changing code, return complete files without omissions.
  • Return code that compiles without errors and include all necessary using statements.
  • If decision points arise while working on the code, ask for clarification before continuing.
  • If a dependency is unclear, ask before inventing NuGet packages or APIs.
  • Report any build, test, or validation step that could not be performed instead of implying it was completed.

These rules help reduce typical AI coding mistakes and make the generated output safer and more predictable.


Example: Graph Visualizer

As a real test, VS2AI was used on a nearly empty WPF project named Graph Visualizer.

The extension generated a Markdown context file containing:

  • project structure
  • source files
  • user task
  • AI instructions
  • working rules
  • file index
  • clearly separated file blocks

Using only this generated Markdown context, an AI assistant was able to create a complete .NET 9 WPF application with SkiaSharp rendering.

The resulting application included:

  • function input
  • preset functions
  • SkiaSharp graph rendering
  • axes
  • grid lines
  • value labels
  • automatic Y-axis scaling

The generated project compiled and ran without manual code changes.


Output Types

VS2AI can create different export outputs depending on your workflow.

Markdown Context

The main export format.

This is the recommended format when you want to give an AI assistant structured project context.

Clean Source ZIP

A cleaned source package without build output, IDE folders, temporary files, binaries, or generated export folders.

Demo ZIP

A runnable demo package, useful when you want to share the compiled result of a project.

For Visual Studio extension projects, VS2AI can package the generated .vsix cleanly.


Typical Workflow

  1. Open a solution or project in Visual Studio.
  2. Select a solution, project, folder, file, or multiple items in Solution Explorer.
  3. Run VS2AI Exporter from the context menu.
  4. Select Markdown, Source ZIP, or Demo ZIP.
  5. Optionally enter an AI task.
  6. Optionally select AI working rules.
  7. Start the export.
  8. Give the generated Markdown file to your AI assistant.

What VS2AI Is For

VS2AI is useful for:

  • AI-assisted coding
  • project handovers
  • bug fixing context
  • architecture reviews
  • refactoring tasks
  • documentation generation
  • sharing project context with AI tools
  • reducing manual copy/paste work

Design Goal

VS2AI is built around one core idea:

Do not export as much data as possible. Export the most useful context possible.

The generated Markdown is designed to help an AI assistant build a mental model of the project quickly and safely.


Version 1.1.2

This update improves selection-based exports from Visual Studio Solution Explorer.

VS2AI Exporter now handles multi-selection more reliably and can create separate context files for selected projects, folders, and files. Single-file exports were also corrected so that only the selected file is exported, instead of the containing folder.

Changes

  • Improved context menu support for Solution Explorer selections
  • Added support for exporting multiple selected projects
  • Added support for exporting multiple selected folders
  • Added support for exporting multiple selected files
  • Fixed single-file export behavior
  • Batch exports now create separate Markdown context files per selected source
  • Source ZIP export now follows the selected export source more closely
  • Updated version to 1.1.2

This release focuses on making VS2AI Exporter more predictable when working with focused AI context exports.


Notes

VS2AI Exporter does not send your source code to any external service.

It creates local export files on your machine.

You decide which generated files you share and with which AI tool.

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