Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>HTTP File Generator for VS CodeNew to Visual Studio Code? Get it now.
HTTP File Generator for VS Code

HTTP File Generator for VS Code

Christian Resma Helle

|
2 installs
| (0) | Free
Generate .http files from OpenAPI specifications
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

HTTP File Generator for VS Code

Generate .http files from OpenAPI specifications to work with VS Code's REST Client and other HTTP client extensions.

Features

  • Right-click on OpenAPI specification files (.json, .yaml, .yml) in the Explorer
  • Access commands from the VS Code Command Palette
  • Generate a single HTTP file containing all requests
  • Generate multiple HTTP files (one request per file)
  • Automatically installs the required .NET Tool if not present

Requirements

  • .NET 8.0 SDK or later
  • REST Client extension (recommended but not required)

Usage

  1. You can use HTTP File Generator in two ways:

    • Right-click on an OpenAPI specification file (.json, .yaml, or .yml) in the VS Code Explorer and select "HTTP File Generator" from the context menu
    • Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P) and search for "HTTP File Generator"
  2. Choose either:

    • "Generate single HTTP file"
    • "Generate multiple HTTP files (one request per file)"
  3. If running from the Command Palette, you'll be prompted to select an OpenAPI file from your workspace.

  4. If the httpgenerator .NET tool is not installed, you'll be prompted to install it.

  5. You'll be prompted to select an output folder. By default, it will suggest creating a "HttpFiles" subfolder in the same directory as your input file, but you can choose any location.

About HTTP Files

.http files were made popular by the Visual Studio Code extension REST Client, which was later adopted by JetBrains IDEs and Visual Studio 2022.

Related Projects

This extension is a VS Code wrapper around the httpgenerator .NET Tool.

For more information, visit the httpgenerator GitHub repository.

License

MIT

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