On Mac, Command-E often means "Use Selection for Find", and also puts the selection into the "Global Find Clipboard".
In VS Code, this the feature was implemented in 2017 here, but is off by default (whyyy).
To enable it:
- Go to Code preferences (Command-,)
- Type "Global Find Clipboard"
- Enable the two settings which appear
John Bachir's Code Blog