Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Create a project in VS Code

ServiceNow applications are contained within a project in the VS Code IDE. Import an application from your ServiceNow instance with the help of ServiceNow Extensions for VS Code.

Before you begin

Setup your workspace to create a project and start editing your ServiceNow applications.

Role required: none.

Procedure

  1. Click Create Projectin the status bar on the bottom of the VS Code IDE.
Image omitted: vscode-create-project.png
Option to create project
You can also use a keyboard shortcut, Control+Shift+P on Windows or Command+Shift+P on MacOS, to open the command palette and choose **Now: Create Now Project** from the list.

The **Create Project** wizard opens.
  1. Enter the URL of the ServiceNow instance and press Enter to confirm.

    Include the complete URL for your instance, for example, https://example.service-now.com

Image omitted: vscode-enter-instance.png
Instance name prompt in Visual Studio Code
  1. When prompted, select the Authentication type.
Image omitted: vscode-createproject-auth.png
Select authentication type in create project
-   To create a basic application, choose **Basic** and fill in the following fields, when prompted.

    |Field|Description|
    |-----|-----------|
    |**User Name**|Enter the User name of the ServiceNow instance URL.|
    |**Password**|Enter the password of the ServiceNow instance URL.|

    **Note:** The user account being used for authenticating must not contain the admin role.

-   To create an OAuth application, choose **OAuth** application and fill in the following fields, when prompted.

    | | |
    |---|---|
    |**User Name**|Enter the Username of the ServiceNow instance URL.|
    |**Password**|Enter the password of the ServiceNow instance URL.|
    |**Client ID**|Client ID is automatically generated by ServiceNow OAuth server.|
    |**Client secret**|TClient secret for the OAuth application.|
  1. Select the project type when prompted.
Image omitted: projectwizard1vscode.png
Create project type command
**Note:** You can enable the Packages and Plugins project types by enabling them from the Settings. Navigate to **Preferences** > **Settings** > **Extensions** > **Now** > **Project Settings** to enable them.
  1. Select Import Existing.

  2. Import an application into Visual Studio Code
    After you create a project, import an application from your instance into the project to begin editing.

Parent Topic:ServiceNow Extensions for Visual Studio Code