polewstats.blogg.se

Visual studio code git config
Visual studio code git config












visual studio code git config

Once you are in the file blame mode, you can select the commits from the sidebar that appears next to the gutter to explore the changes introduced by that commit. To toggle file blame, you can either use the VSCode command palette (Cmd + Shift + P) and search for "GitLens: Toggle file blame" or use the keyboard shortcut (Option + Cmd + G B) to open it. This can be useful for exploring the history of the file and answering questions about which commit/PR introduced a particular set of changes and who made those commits. This is also a neat feature that allows you to view which lines were intrduced by which commit and author for a particular file. If you click on the open changes button, you will be able to view all the changes introduced by that commit in the current file.Ĭlicking on the commit hash in the popup gives you many options for that commit, like resetting, switching, or creating a branch from the commit, etc. This popover gives you almost all the information that you might need for the current line like, what did the line looked like before the most recent commit that affected it, the commit hash that introduced the change, the PR that introduced the change (would need to connect to GitHub for this one), etc. As soon as you hover over any line in the code (in a project using git and has some commits), you will be able to see this popover.

visual studio code git config

This is probably the first feature you will notice when you install the extension. You can find the full list of the features here. So here are some of my favorite GitLens features that I use regularly. I would go as far as to say that it even does stuff that I didn't even know was possible with git. GitLens lets you do almost everything with git that you could imagine, directly from your code editor with a friendly GUI. But if you want some additional features and want to "Supercharge your git workflow," then GitLens is possibly the best extension out there for this. Why bother using this extension?Īlthough VSCode has pretty good built-in git tools for basic git stuff like adding, committing, pushing, changing/creating branches. This post will discuss some of my favorite features of the GitLens VSCode extension that might help you optimize your git workflow in VSCode.














Visual studio code git config