Are you using the SuiteCloud Extension for VS Code? As far as I know, you can’t download a script from Netsuite to VSCode, but you can create a script and UPLOAD it to Netsuite. Any changes will overwrite to Netsuite file cabinet. You could copy code to a new document and then upload it to Netsuite.