This is what I did, seems to work: Installing "cursor" shell command overrides "code" as well - #6 by yjmantilla . Or basically:
Problem: Everytime i open cursor it rewrites the files so i need to continuously delete the files.
I converged to instead of deleting the file, just edit the code.cmd from cursor to call the right code.cmd from vscode. E.g:
@echo off
call "Y:\software\Microsoft VS Code\bin\code.cmd" %*
seems to do the trick.