DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Yuki Kamata
Yuki Kamata

Posted on

Viewing open files in VSCode on GitHub

It's too late now, but I recently needed to send the URL of a file, and after a serious search for the file in VScode, I found it in a few minutes and had to change it to the GitHub URL to pass it along.

Conclusion

You can do it with GitLens commands.

GitLens: Open File on Remote  
GitLens: Copy Remote File Url  
Enter fullscreen mode Exit fullscreen mode

If a range is selected before executing the command, the URL will have that line selected. Convenient.

Reflection

Don't just misrepresent what you think is an inconvenience with a handful of moves and leave it at that.

Top comments (0)

🌚 Life is too short to browse without dark mode