On Mac OS, create a shell script set-size.sh:
#!/bin/bash
# AppleScript to resize VS Code window
osascript <<EOD
tell application "Visual Studio Code"
activate
tell application "System Events" to tell window 1 of process "Code"
set size to {1920, 1280}
end tell
end tell
EOD
Run it:
sh ./set-size.sh