Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Project Unifier for AINew to Visual Studio Code? Get it now.
Project Unifier for AI

Project Unifier for AI

Anderson de Araujo Rocha

|
7 installs
| (0) | Free
Search for project scripts and combine them into a single file for AI analysis.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Project Unifier for AI

Unifies a project's source code into a single text file, creating a complete context for analysis by Artificial Intelligence (Gemini, ChatGPT, etc.).

0. Why would I use this extension?

The main effect of using this extension is that it prevents AIs from hallucinating in their responses due to not understanding the context of the scripts in the project.

Get into the habit of exporting the context and importing it into your AI whenever you start your programming workday. This ensures it's always up-to-date and can assist you in the best way possible during your work session.

How to Use

1. Configure the Extension

First, you need to tell the extension which files to unify. Create a .vscode/settings.json file in your project's root folder (if you don't have one already) and add the following configuration.

.vscode/settings.json Configuration:

{
    // "Project Unifier for AI" Settings
    // Uncomment and adjust the lines below for your project.
    "project-unifier-for-ai.sourceFolderPaths": [
      "", // the whole project
      "src", //all files and folders within src
      "src/app" //all files and folders within the app
    ],
    "project-unifier-for-ai.fileExtensions": [
      // Web & Geral
      ".js",
      ".ts",
      ".mjs",
      ".json",
      ".html",
      ".css",
      ".scss",
      // PHP
      ".php",
      // Python
      ".py",
      ".ipynb",
      // Java
      ".java",
      ".xml",
      ".properties",
      // Ruby
      ".rb",
      ".erb",
      // Unity (C#)
      ".cs",
      ".shader",
      ".asmdef",
      // Unreal Engine (C++)
      ".cpp",
      ".h",
      ".ini",
      // Godot Engine
      ".gd",
      ".tscn",
      ".tres",
      // GameMaker Studio
      ".gml",
      ".yy"
    ],
    "project-unifier-for-ai.outputFilePath": "project_context_for_AI.txt",
    // Comprehensive default exclusion list
    "project-unifier-for-ai.excludePatterns": [
      // JavaScript / Web
      "**/node_modules/**",
      "**/dist/**",
      "**/build/**",
      "**/.angular/**",
      
      // Testes
      "**/*.spec.ts",
      "**/*.spec.js",
      "**/*.test.js",
      "**/.pytest_cache/**",

      // PHP
      "**/vendor/**",

      // Python
      "**/venv/**",
      "**/.venv/**",
      "**/__pycache__/**",

      // .NET
      "**/bin/**",
      "**/obj/**",
      
      // Java
      "**/target/**",

      // Ruby
      "**/log/**",
      "**/tmp/**",

      // Unity
      "**/Library/**",
      "**/Temp/**",
      "**/Logs/**",

      // Unreal Engine
      "**/Intermediate/**",
      "**/Binaries/**",
      "**/Saved/**",

      // Godot Engine
      "**/.godot/**",
      "**/.import/**",

      // IDEs
      "**/.idea/**"
    ]
}

### 2. Run the Command
Once the configuration is saved, open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P) and run Unify Project Scripts for AI. The context file will be generated in your project's root directory.

### 3. Note:
If you run the command without settings.json being configured, it will try to generate a file that adds the scripts in a generic way, so first create/edit the .vscode/settings.json file as you need it and then use the command.

### 4. License: 
Released under the MIT License.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft