Stainless VSCode ExtensionThe official Visual Studio Code extension for working with Stainless configs. This extension provides intelligent code editing support, real-time diagnostics, and powerful navigation features for Stainless config files and OpenAPI specifications. Workspace SetupThis extension works with Stainless workspaces. To set up a workspace, install the Stainless CLI and run:
This creates a Install the CLI with Homebrew (recommended for macOS):
Or with Go:
FeaturesReal-time SDK diagnosticsGet instant feedback on your SDK configuration as you type. The language server analyzes your Stainless config and OpenAPI spec in real-time, surfacing errors, warnings, and suggestions directly in your editor so you can catch issues before running a build.
“Go to definition” and “Find all references”Navigate your API specification with ease using “Go to definition” to jump directly to schema definitions, parameters, and response types from your Stainless config. Use “Find all references” to see everywhere a schema or endpoint is used across your config and spec files.
Intelligent completions in your Stainless configSpeed up editing your Stainless config with context-aware autocompletion. The language server suggests valid config options, endpoints, and schema names based on your OpenAPI spec.
Quick fixes and code actionsResolve diagnostics with a single click using code actions. Some common diagnostics will have an “Autofix”, and all warning diagnostics can be easily ignored.
Codelenses for your OpenAPI specCodelenses show inline in your OpenAPI spec which schemas and endpoints are configured in your Stainless config. This makes it easy to see at a glance how your API is represented in your SDKs.
Live transformationsSee the results of your Stainless transformations instantly as you edit your config. The language server automatically generates and updates your transformed OpenAPI spec in real-time. InstallationInstall the extension from the Visual Studio Code Marketplace, or search for "Stainless" in the Extensions view (
Once installed, open a workspace containing Stainless configuration files. You can verify the extension is active by checking the status indicator in the bottom right corner of your editor.
Feedback and SupportFor questions, feedback, or issues, please reach out to local-dev@stainless.com or contact your Stainless sales representative. LicenseThis VS Code extension is licensed under the MIT License. The Stainless Language Server is proprietary software, copyright © Stainless API, Inc. |






