
A. Introduction
Microsoft VS Code extension allows you to develop automation code faster. It is fully integrated with the interface. There is a two-way, git-based code development system.
B. Configuration
1. Login to Momentum Suite Automate and go to the Settings page.

2. Under the Integrations tab, click the VS Code icon.

3. After clicking, a pop-up gives you information about the integration, comes up.

4. Download the Momentum Suite Visual Studio extension from the VisualStudio marketplace.
5. Click the Install button.

6. Select the installed Momentum Suite Visual Studio extension.
7. Open Momentum Suite extension Settings. Click the Extension Settings option.
8. Fill in the username/email and password fields. It will be saved automatically.

C. How to Use
Explained with a simple project on momentumsuite.com (1 Section, 1 Case, 3 Steps)

A view from the Visual Studio Code project. In this image, you see how things work in the code section.

C.1. How to Add a New Step
1. Type in the code window “!mstep” and press ENTER on VS Code.

2. Modify Step title “My Step Title in Freetext“
3. Modify function name Step_ with “Step_my_step_title“
4. Write your code for this step.
5. Save, commit and push your code to Git.

C.2. How to Create a New Case on an Existing Section?
1. Press “Command + Shift + P” on VS Code
2. Select “Momentum:Create Case“

3. Select from existing sections that have already been defined before. “Login TestCases”.

4. Type your Case name. “Successfully Login case”

5. A new file will be generated on your VS Code project. “Id=0” means that case is new and not pushed yet to your repository.
6. If you want to add a new step type “!mstep“ and write your code.
7. Do not forget to push your code changes to the Git repository.

C.3. How to Create a New Case on a New Section?
1. Press “Command + Shift + P” on VS Code
2. Select “Momentum:Create Case“

3. Select “Create new Section” to create a new section.

4. Type your new section name and press enter.

5. Type your new section description and press enter.

6. Type your case name. “Signup with the new email address“.
7. A new file will be generated on your VS Code project. “Id=0” means that case is new and not pushed yet to your repository.
8. If you want to add a new step type “!mstep“ and write your code.
9. Do not forget to push your code changes to the Git repository.

The following image shows Git integration changes.

The following image shows momentumsuite.com WebUI integration with GitHub changes.

D. Need to Know
- Download VS Code for macOS, Windows, or Linux which is your operating system if you don’t have it yet.
- Open the Visual Studio Code app and search Extensions for your favorite language and framework to debug and run your automation scripts locally.