![]() ![]() This extension does a ton, so it’s worth just poking around to see what’s useful. I would suggest opening the command palette ( CMD+Shift+P on Mac and CNTRL+SHIFT+P on Windows), searching GitLens, and scrolling through the available commands. There’s so much this extension can do, that you’ll honestly just have to take a look for yourself. You can find them in your VS Code settings Window. I suggest scrolling through and taking a look. toggle whether you want the additional details when hovering on a blame messageĪgain, there are so many options.Headmap:Enabled - toggle on a visual heatmap to show how recently code has changed (you can also customize the heat colors!).Blame: format - customize how your blame messages look.There are too many to list them all out, but here are a few that I found useful. ![]() There are also lots of customization options for this extension. This is by far the easiest way I’ve found to search through commits. You’ve got several different options to search by. Go to VS Code and select Open beneath the. Create and name a new folder on your machine 2. This is incredibly handy to quickly see what has changed.Īnother great feature is the ability to search through commits. Initializing a New Git Repo in VS Code Using the Side Bar Buttons 1. This menu is contextual, so it will pull up information about the file and line you currently are on in the editor itself.įrom there, you can also pull up a diff comparing that line or file vs the previous commit. You also have the ability to view and compare Git history by file and even by line in the sidebar menu. In addition, if you hover over the blame info you get a context menu with some extra info including a button to view the commit. It’s pretty useful to see this info at a glance. By default, you can see this in two different places, alongside the code, and on the bottom bar. This extension provides simple Git blame information, who wrote the code, when they committed, etc. Once you install, you’ll have a new menu item in the sidebar with lots of options. To install the extension, open the extension panel inside of VS Code and search for GitLens and then click install. In this article, let’s take a look at the one extension that will supercharge your Git workflow in VS Code, the GitLens Extension. VS Code already has amazing built-in support for Git, but it also has a vast ecosystem of extensions. The other day, I saw a list of GUI tools for working with Git, and I thought, what about VS Code? Supercharge Your Git Workflow with the GitLens VS Code Extension ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |