Issue #146 (GitHub Commands & Shortcuts)02/05/25
|
|
|
According to Gallup, 51% of Americans can’t think of a news source that reports the news objectively. It’s 100% free. It has everything you need to be aware of for the day. And most importantly, it simplifies your life.
|
|
If you're working on a project in VS Code that uses Git for version control and is stored on GitHub, there are a bunch of commands you can use that are specific to GitHub.
To see all the available commands, open your command palette, then type "GitHub". The list of suggestions will populate with commands related to Copilot (assuming you have that enabled), GitHub Issues, and GitHub Pull Requests.
One useful way you may want to use these commands is to create shortcuts for one or more of them, especially if you use Git and GitHub regularly. If there's a particular command you continue to come back to via the command palette, you can quickly create a keybinding for that command (assuming one doesn't already exist).
Do this by hovering over the command in the suggestions list and clicking the little cog icon that appears on the right side next to the command.
This enables you to edit that command's keybinding, allowing you to execute that command in the future using that keyboard shortcut.
Many of the GitHub-related commands are under the category of "GitHub Issues", a few of which allow you to instantly copy specific URLs in the repository.
As shown in the above image, you can create shortcuts for the current file's GitHub head link, permalink, or permalink as Markdown.
Of course, you can create shortcuts for any command that's executable using the command palette, not just GitHub-related commands. This is just one way this feature can come in handy.
Now on to this week's hand-picked links!