VS Code Sync
Install and use sn-scriptsync to sync ServiceNow scripts with VS Code for a better development experience.
Last updated: January 24, 2026
Last updated: January 24, 2026
sn-scriptsync enables real-time synchronization between ServiceNow scripts and VS Code.
Search for "sn utils" or "scriptsync" in the Extensions panel and install it.

Check the auto-start setting:

Create a folder matching the setting name (default: scriptsync). When you open this folder in VS Code, the WebSocket server automatically starts.
After opening the folder, you'll see the status in the VS Code status bar.

Click to start or stop the server manually.
In SN Utils settings, ensure Enable sn-scriptsync buttons (VS Code) is checked.
Open a script record (try /si creatorconutils):

instance/scopename/tablename/fieldname.extensionThe first time you sync from an instance, you need to approve connectivity in the helper tab:

After approval, the instance is saved and future syncs work automatically.
Instead of syncing files one by one, pull in all scripts for a scope:

Most options are available via context menu or command palette:

The sn-scriptsync context menu commands only appear when the server is running. You can also hide them completely using the showContextMenu setting, with optional per-language overrides:
{
"sn-scriptsync.showContextMenu": true,
"[markdown]": {
"sn-scriptsync.showContextMenu": false
}
}