Run background scripts using VS Code
task australia Updated Sep 10, 2026 1 min read vscode-background-script.md
Run scripts from your ServiceNow instance in VS Code using the ServiceNow Extensions for VS Code.
Before you begin
Role required: admin
Procedure
-
While writing the script in the VS Code IDE, select the script in the text file and right-click on the script.
-
Select Run Background Script- Current or Run Background Script- Global from the context menu.
The background scripts runner tab opens in VS Code and shows the location where the script is executed in the server.
Parent Topic:ServiceNow Extensions for Visual Studio Code
32 lines · 1.2 KB
---
title: Run background scripts using VS Code
description: Run scripts from your ServiceNow instance in VS Code using the ServiceNow Extensions for VS Code.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/application-development/vscode-background-script.html
release: australia
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [ServiceNow Extensions for Visual Studio Code, Building pro-code applications, Developing your application, Classic app development, Building applications]
---
# Run background scripts using VS Code
Run scripts from your ServiceNow instance in VS Code using the ServiceNow Extensions for VS Code.
## Before you begin
Role required: admin
## Procedure
1. While writing the script in the VS Code IDE, select the script in the text file and right-click on the script.
2. Select **Run Background Script- Current** or **Run Background Script- Global** from the context menu.
The background scripts runner tab opens in VS Code and shows the location where the script is executed in the server.
**Parent Topic:**[ServiceNow Extensions for Visual Studio Code](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/application-development/vs-code.md)
| title | Run background scripts using VS Code |
| description | Run scripts from your ServiceNow instance in VS Code using the ServiceNow Extensions for VS Code. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/application-development/vscode-background-script.html |
| release | australia |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | ServiceNow Extensions for Visual Studio CodeBuilding pro-code applicationsDeveloping your applicationClassic app developmentBuilding applications |