Skip to main content
No Result Found
Connect and get help from 7,000+ developers on our Discord community. Ask the CommunityAsk the Community

Install on Visual Studio Code

Install Test Companion in Visual Studio Code, Cursor, or VSCodium to generate, automate, and fix test cases without leaving your editor.

Install Test Companion from your IDE’s Extensions view. The same flow works in Visual Studio Code and in forks like Cursor and VSCodium.

The setup process has three steps:

Prerequisites

Before you install the extension, make sure you have:

  • A BrowserStack account. If you do not have one, create one here.
  • A current version of Visual Studio Code, Cursor, or VSCodium.

Install the extension

Install Test Companion from the Extensions view inside your IDE. This is the safest install path. Your IDE pulls the extension from the marketplace it trusts, so you avoid the risk of downloading a tampered .vsix file from an unknown source.

  1. Open the Extensions view in your IDE.
    • Keyboard shortcut: Ctrl+Shift+X on Windows and Linux, or Cmd+Shift+X on macOS.
    • UI: Click the blocks icon in the Activity Bar.

    Extensions view open in VS Code

  2. In the search bar, type Test Companion.

    Search for Test Companion in the Extensions view

  3. Locate the Test Companion extension in the results list, published by BrowserStack.
  4. Click Install.

Verify the installation

After the install completes, look for the Test Companion icon in your IDE’s Activity Bar, the vertical strip of icons on the left edge of the editor.

Click the icon to open the Test Companion panel.

Test Companion panel open in VS Code

To use AI Agents in Test Companion, enable BrowserStack AI in your account settings. For further details, refer to our comprehensive documentation on activating AI preferences.

Sign in to BrowserStack

Connect the extension to your BrowserStack account.

  1. Click the Test Companion icon in the Activity Bar to open the Test Companion panel.

    Test Companion icon in the Activity Bar

  2. In the panel, click Sign in with BrowserStack.
  3. Your default browser opens. It prompts you to authorize the extension.
  4. Follow the prompts to sign in. If you do not have an account, create one on the BrowserStack site.

After you sign in, the browser redirects you back to your IDE. The Test Companion panel now shows your user information. The extension is ready to use.

Test Companion is installed and configured.

Next steps

Start exploring what Test Companion can do:

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle