It happens often when I work in VSCode and I need to send a code line URL from a repo to a colleague.
There is no native support for this in VSCode. There is a capability that's enabled by Atlassian plugin if you are using Bitbucket. However, I've been looking for a more versatile option.