Skip to content
| Marketplace
Sign in
Visual Studio Code>Machine Learning>VSCode GPT Project LoaderNew to Visual Studio Code? Get it now.
VSCode GPT Project Loader

VSCode GPT Project Loader

Kenta Yamada

kentayamada.dev
|
218 installs
| (0) | Free
This VSCode extension converts the contents of a selected project into a structured text format. It preserves the file hierarchy and content, making it easy to use for GPT-based tasks such as code review, documentation generation, or AI-assisted development.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode GPT Project Loader

This VSCode extension converts the contents of a selected project into a structured text format, making it perfect for GPT-based tasks like code review, documentation generation, or AI-assisted development.

Features

  • Convert project contents into text while preserving the file structure.
  • Exclude specified files and folders from the file selection using the gptProjectLoader.exclude setting.
  • Files with extensions listed in here is marked as Not Viewable.
  • Select specific files from the project to include in the output.
  • Outputs formatted text, ready for GPT or AI-assisted workflows.

Generated output

The following text is a project with code. The structure of the text are sections that begin with ----, followed by a single line containing the file path and file name, followed by a variable amount of lines containing the file contents. The text representing the project ends when the symbols --END-- are encountered. Any further text beyond --END-- are meant to be interpreted as instructions using the aforementioned project as context.

----
src/factorial.py
def factorial(n):
    # Base case: if n is 0 or 1, return 1
    if n == 0 or n == 1:
        return 1
    # Recursive case: n * factorial of (n-1)
    else:
        return n * factorial(n - 1)

----
assets/logo.png
Not Viewable

--END--

Demo

Demo Gif

Requirements

This extension does not have any additional dependencies. It requires Visual Studio Code version 1.71.0 or higher.

Extension Settings

This extension contributes the following settings:

  • gptProjectLoader.exclude: Specify files or directories to exclude from the file selection. Default: [".git"].

Contributions

We love contributions from everyone - whether you’re reporting bugs, requesting features, improving docs, or sending code! Below is how to get started and contribute.

Local Development Setup

We use VS Code Dev Containers to standardize our development environment. The dev container configuration files are already provided in the .devcontainer/ folder.

  1. Install the Dev Containers extension in VS Code.
  2. Clone this repository.
  3. From the Command Palette (⇧⌘P / Ctrl+Shift+P), choose Dev Containers: Reopen in Container.
  4. Once inside, your dev environment is ready!

Known Issues

  • No issues have been reported yet. Please report any issues you encounter via the GitHub issues page.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft