I use magit file dispatch with emacs (for reference: https://emacs.stackexchange.com/a/75703).
I am also searching for an alternative for vscode but has not been successful, I run magit with emacs terminal mode within vscode for the time I needed this particular function, stupid but it works.