Therefore I have decided to google if there is a solution to prevent all these switches. The result of my search terminated with 2 new VsCode Extensions:
Today I'll speak a bit about the first one, and the second will be discovered in another article.
GitHub Pull Requests and Issues
This extension is an official extension created by the GitHub team. This extension allows you to do whatever you want if you are working with a PR and Issues. You can:
- Create PR
- Edit PR
- Delete PR
- Review PR
- See all PR
- Create Issue
- Delete Issue
- Edit Issue
- See all Issues
As you can imagine, in our daily work if we are familiar with PRs and we work well with them, creating, editing, or reviewing PRs is a common practice.
So let's see better how this extension works.
Obviously, to install this extension we have to pass by the VsCode MarketPlace. Click the extension button in VsCode menu and in the search bar type "GitHub Pull Requests and Issues". When the search is finished, click the install button on the right, wait some seconds, and voila the extension is installed.
It's going without saying that we have to sign in with our credentials to work with GitHub. To do that we have to open the extension and click the SignIn button that appears. After that VsCode asks you permission to open a new browser window to allow you to type your credentials, and at the end a popup browser asks you the permission to reopen VsCode with your credentials so you can begin to use our extensions. Now we are ready to use the extensions.
When you are logged the extension shows you two sections:
- Pull Request
it’s obvious that each section handles its topic.
To create your first PR you have to click the icon in the top right of the PR section.
After that, the extension opens a new window where you can input the data of your PR:
- From branch
- To branch
Now, if you work using the review feature, you can add your review/s to your PR and if you want you can edit your PR too, or you can also add labels or milestones.
In the extension panel, under the PR section, you can find your PR and view or edit it if it is necessary.
If you select your PR, you can see all the changed files by the PR, and if you want to add some comments you can do that in the file directly.
It is awesome, innit?
The flow for your Issues is very similar to the PR flow and in my case doing these kind of stuffs direct in my editor is very useful because I’m able to handle my projects direct in VsCode without switching every time from the editor to the browser and vice-versa.
Okay, I hope I stimulated your curiosity so what are you waiting for? Open your VsCode and try this fantastic extension. Let me know your impressions and if you wanna other info don’t hesitate to ask me anything, you are welcome and for me it’s a pleasure to help you.
That’s all today folks.
See you soon to speak about the second extension “GitHub Actions”.