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

ServiceNow Extensions for Visual Studio Code

Edit your ServiceNow applications in Visual Studio Code with the help of the ServiceNow Extensions for VS Code.

The ServiceNow Extensions for the VS Code editor enables you to edit applications within your ServiceNow instance.

Image omitted: vs-code-example.png
ServiceNow application editing in Visual Studio Code

Advantages of using Visual Studio Code

  • Edit your applications offline

    Use Visual Studio Code to download and edit a local copy of your application. You can edit the application offline, and then synchronize again when your instance is available.

  • Use Visual Studio Code JavaScript features to reduce development time and improve code quality.

    Visual Studio Code IntelliSense includes editing features such as code completion, code suggestions, and quick information. Use these tools to complete your coding tasks quickly and reduce errors. For more details on using IntelliSense in your applications, see IntelliSense in VS Code. The extension also supports Linting using ESLint. The same standard ESLint rules used in the ServiceNow instance are available.

  • Functions of ServiceNow Extensions for VS Code
    The ServiceNow Extensions for VS Code extension includes tools for developing on the ServiceNow AI Platform.

  • Install ServiceNow Extensions for VS Code
    Download and install ServiceNow extensions to begin editing your applications in VS Code.
  • Activate ServiceNow Extensions for VS Code
    Activate the ServiceNow Extensions for VS Code to be able to edit applications within your ServiceNow instance.
  • Set up a workspace in VS Code
    Using the ServiceNow Extensions for VS Code, create a project work folder to use as a workspace for ServiceNow applications.
  • 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.
  • Synchronization between Visual Studio Code and a ServiceNow instance
    You can synchronize your applications between Visual Studio Code and your ServiceNow instance.
  • Clear instance credentials in Visual Studio Code
    Clear the stored credentials of the current project from the system. User credentials (instance URL, user name, password) of a project are stored in the operating system credentials vault so that the user does not need to log in each time.
  • Reset a project in Visual Studio Code
    Reset the project to the state on the server by discarding all the local changes if you encounter any serious sync issues.
  • Add custom file types in Visual Studio Code
    If you have work with file types other than the default types provided, you can add additional file types to your instance and edit them in ServiceNow extension for Visual Studio Code.
  • Create a file in VS Code
    Use the ServiceNow extension to create a new file for your application with your project.
  • Search files on your instance in VS Code
    Search and download any script files on your instance using the ServiceNow Extensions for VS Code extension.
  • Run background scripts using VS Code
    Run scripts from your ServiceNow instance in VS Code using the ServiceNow Extensions for VS Code.
  • IntelliSense in VS Code
    The IntelliSense code editing feature in the ServiceNow Extensions for VS Code extension provides intelligent code completions which provide auto-completion options to make writing code faster and more efficient.
  • Telemetry in ServiceNow Extensions for VS Code
    ServiceNow Extensions for VS Code collects information on its various usage patterns such as the commands run with the help of Now Telemetry.

Parent Topic:Building pro-code applications