GitHub code review tip: In diff view, there’s a copy path button next to...
GitHub code review tip: In diff view, there’s a copy path button next to each filename.
So to quickly open a file in VS Code:
1. Click the copy file path button
2. Hit cmd+p in VS Code
3. Paste the path
Handy. 🔥
I find this is useful for reviewing things that are hard to see in a diff:
✅I want to inspect a type by hovering in an editor.
✅I want to run “Find all references” for an item.
✅I want to see what files are in the same folder as the file I’m reading.