Stripe for Visual Studio Code
Build, test, and use Stripe inside your editor.
Stripe’s extension for Visual Studio Code makes it easy to generate sample code, view API request logs, query the Stripe docs using GitHub Copilot, and forward events to your application, and use Stripe within your editor.
A new Stripe panel in the activity bar provides easy access to code snippets for several languages, adds debug configurations, and extends the command palette with common developer workflows.
Read more about this extension in the official Stripe documentation at https://docs.stripe.com/stripe-vscode
Chat with the Stripe chat participant
Note: This feature requires a GitHub Copilot subscription.
Chat with the Stripe chat participant using GitHub Copilot. If you have the GitHub
Copilot extension, click the chat icon and at mention Stripe with @stripe
to ask
any questions while integrating. Learn more here.
Contributions
Stripe for Visual Studio Code is an open source project. We do development in the open, where our issue tracker is public here in GitHub.
Contributions and feedback to the project are welcome, so please open issues for feature requests, questions and alike.
Developing this extension
- Checkout this repo
- Run
npm install
in terminal to install dependencies
- Run
npm run compile
- Run
npm run webpack-dev
- Run
npm run vscode:prepublish
- Run the
Run Extension
target in the Debug View or simply press F5
This will:
- Start a task
npm: watch
to compile the code
- Run the extension in a new VS Code window
- Disable the Stripe Extension for this workspace.
- Right click "Stripe" from the Extensions marketplace
- Click Disable (Workspace)
- Make sure you install and set your default formatter to Prettier
Debugging this extension
- Open the Run view, select the "Run Extension" button to launch an additional Extension Development Host instance of VSCode that executes the extension code in your workspace.
- To debug the stripe language server, select the "Client + Server" button. This will allow you to set breakpoints for code that lives within the stripeLanguageServer directory.
License
See LICENSE.md
Telemetry
The Stripe VS Code Extension collects basic telemetry in order to improve this extension's experience. If you'd like to opt out we respect the global telemetry setting in VS Code, so we won't collect any data unless this setting is turned on.
Code of Conduct
This project has adopted the Stripe Code of Conduct. See CODE_OF_CONDUCT.md