--- 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-03-12" reading_time_minutes: 1 breadcrumb: [ServiceNow Extensions for Visual Studio Code, Building pro-code applications, Developing your application, 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)