"description":"Use the Quick Setup to easily configure frequently used GitLens features.\n\n[Open Quick Setup](command:gitlens.showWelcomePage \"Opens the GitLens Quick Setup\")",
"description":"Use the Quick Setup to easily configure frequently used GitLens features.\n\n[Open Quick Setup](command:gitlens.showWelcomePage?%22quick-setup%22 \"Opens the GitLens Quick Setup\")",
"description":"New premium features like Worktrees and Visual File History are now available in GitLens.\n\n[Learn About Premium Features](command:gitlens.openWalkthrough?%22gitlens.premium%7Cgitlens.premium%22 \"Opens the GitLens Premium Features Walkthrough\")",
"description":"New premium features like Worktrees and Visual File History are now available in GitLens.\n\n[Learn About Premium Features](command:gitlens.premium.learn?false \"Opens the GitLens Premium Features Walkthrough\")",
"description":"Create Worktrees that allow multiple branches to be checked-out at once on the same repository.",
"description":"Create Worktrees that allow multiple branches to be checked-out at once on the same repository.\n\n[Open Worktrees View](command:gitlens.showWorktreesView)",
"description":"Try premium features now, without an account, for 3 days.\n\n[Try Premium GitLens Features](command:gitlens.premium.startPreviewTrial)",
GitLens is powerful, feature rich, and highly customizable to meet your needs. Do you find code lens intrusive or the current line blame annotation distracting — no problem, quickly turn them off or change how they behave using the Quick Setup.
It can be accessed via the [_GitLens: Welcome (Quick Setup)_](command:gitlens.showWelcomePage) command from the [_Command Palette_](command:workbench.action.quickOpen?%22GitLens%3A%Welcome%22).
💡 Use the [GitLens: Welcome (Quick Setup)](command:gitlens.showWelcomePage?%22quick-setup%22) command from the [Command Palette](command:workbench.action.quickOpen?%22>GitLens%3A%20Welcome%22) to open it.
+ 10- 1
walkthroughs/getting-started/10-interactive-rebase-editor.mdZobrazit soubor
@ -4,4 +4,13 @@
<imgsrc="../../images/docs/rebase.gif"alt="Interactive rebase editor"/>
</p>
A user-friendly editor to easily configure an interactive rebase session. Simply drag & drop to reorder commits and select which ones you want to edit, squash, or drop.
Simply drag & drop to reorder commits and select which ones you want to edit, squash, or drop.
To use this directly from your terminal, e.g. when running `git rebase -i`,
- set VS Code as your default Git editor
- `git config --global core.editor "code --wait"`
- or, to only affect rebase, set VS Code as your Git rebase editor
<imgsrc="../../images/docs/terminal-links.gif"alt="Links in VS Code Terminal"/>
</p>
Autolinks are added for branches, tags, and commit ranges in the integrated terminal to quickly explore their commit history. While autolinks for commits will open a quick pick menu with commit details and actions.
+ 1- 1
walkthroughs/getting-started/12-premium-features.mdZobrazit soubor
@ -4,4 +4,4 @@
<imgsrc="../../images/docs/visual-file-history-hover.png"alt="Visual File History View"/>
</p>
Even more features are coming soon, like a visual commit graph and integrations for GitHub Enterprise and GitLab Self-Managed repositories.
Even more features are coming soon, like a visual commit graph and integrations for GitHub Enterprise and GitLab repositories.
GitLens provides a rich **interactive settings editor**, an easy-to-use interface, to configure many of GitLens' powerful features.
GitLens provides a rich interactive settings editor, an easy-to-use interface, to configure many of GitLens' powerful features.
It can be accessed via the [_GitLens: Open Settings_](command:gitlens.showSettingsPage) command from the [_Command Palette_](command:workbench.action.quickOpen?%22GitLens%3A%20Open%20Settings%22).
💡 Use the [GitLens: Open Settings](command:gitlens.showSettingsPage) command from the [Command Palette](command:workbench.action.quickOpen?%22>GitLens%3A%20Open%20Settings%22) to open it.
+ 22- 7
walkthroughs/getting-started/3-current-line-blame.mdZobrazit soubor
@ -1,16 +1,31 @@
## Current Line Blame
Adds a [customizable](command:gitlens.showSettingsPage?%22current-line%22 'Jump to the Current Line Blame settings') unobtrusive **blame annotation** at the end of the current line
- Contains the author, date, and message of the current line's most recent commit (by default)
- Adds a [_Toggle Line Blame Annotations_](command:gitlens.toggleLineBlame) command to toggle the blame annotation on and off
## Current Line Blame []()
<palign="center">
<imgsrc="../../images/docs/current-line-blame.png"alt="Current Line Blame"/>
</p>
Hovering over these blame annotaions will reveal more details and links to explore more about the commit.
GitLens adds an unobtrusive Git blame annotation at the end of the current line, which shows the author, date, and message of the current line's most recent commit.
💡 Use the [Toggle Line Blame](command:workbench.action.quickOpen?%22>GitLens%3A%20Toggle%20Line%20Blame%22) command from the Command Palette to turn the annotation on and off.
⚙️ Use the settings editor to customize the [current line annotations](command:gitlens.showSettingsPage?%22current-line%22 'Jump to the Current Line Blame settings').
## Hovers
<palign="center">
<imgsrc="../../images/docs/hovers-current-line.png"alt="Current Line Blame Hover"/>
</p>
Hovering over these blame annotations will reveal more details and links to explore. The **details** hover (the top section) provides many commit details and actions, including autolinks in commit messages, while the **changes** hover (the bottom section) shows a diff of the current line with its previous version and related actions.
⚙️ Use the settings editor to customize the [hovers](command:gitlens.showSettingsPage?%22hovers%22 'Jump to the Hover settings').
## Status Bar Blame
<palign="center">
<imgsrc="../../images/docs/status-bar.png"alt="Status Bar Blame"/>
</p>
GitLens also adds Git blame information about the current line to the status bar.
⚙️ Use the settings editor to customize the [status bar](command:gitlens.showSettingsPage?%22status-bar%22 'Jump to the Status Bar settings').
+ 4- 16
walkthroughs/getting-started/4-git-codelens.mdZobrazit soubor
Adds Git authorship **CodeLens** to the top of the file and on code blocks
GitLens adds Git authorship CodeLens to the top of the file and on code blocks. The **recent change** CodeLens shows the author and date of the most recent commit for the code block or file, while the **authors** CodeLens shows the number of authors of the code block or file and the most prominent author (if there is more than one).
- **Recent Change**— author and date of the most recent commit for the file or code block
- Click the CodeLens to show a **commit file details quick pick menu** with commands for comparing, navigating and exploring commits, and more (by [default](#git-codelens-settings- 'Jump to the Git CodeLens settings'))
- **Authors**— number of authors of the file or code block and the most prominent author (if there is more than one)
Clicking on the CodeLens performs a [customizable](command:gitlens.showSettingsPage?%22code-lens%22 'Jump to the Git CodeLens settings') action. For example, the **recent change** CodeLens will open a quick pick menu with the commit's file details and actions, where as the **authors** will toggle the whole file Git blame annotations.
- Click the CodeLens to toggle the file Git blame annotations on and off of the whole file (by [default](#git-codelens-settings- 'Jump to the Git CodeLens settings'))
- Will be hidden if the author of the most recent commit is also the only author of the file or block, to avoid duplicate information and reduce visual noise
💡 Use the [Toggle Git CodeLens](command:workbench.action.quickOpen?%22>GitLens%3A%20Toggle%20Git%20CodeLens%22) command to turn the CodeLens on and off.
- Provides [customizable](command:gitlens.showSettingsPage?%22code-lens%22 'Jump to the Git CodeLens settings') click behavior for each CodeLens — choose between one of the following
- Toggle file blame annotations on and off
- Compare the commit with the previous commit
- Show a quick pick menu with details and commands for the commit
- Show a quick pick menu with file details and commands for the commit
- Show a quick pick menu with the commit history of the file
- Show a quick pick menu with the commit history of the current branch
- Adds a _Toggle Git CodeLens_ command (`gitlens.toggleCodeLens`) with a shortcut of `shift+alt+b` to toggle the CodeLens on and off
⚙️ Use the settings editor to customize the [Git CodeLens](command:gitlens.showSettingsPage?%22code-lens%22 'Jump to the Git CodeLens settings').
+ 30- 5
walkthroughs/getting-started/6-file-annotations.mdZobrazit soubor
@ -1,18 +1,43 @@
## Customizable File Annotations
## File Annotations
See customizable file annotations in the editor's status bar and in the gutter, the space beside the line number. Choose between:
GitLens adds on-demand annotations for the whole file directly to the editor's scroll bar and in the gutter area, the space beside the line number, to help you gain more insights into your code.
### File Blame
**Blame** – showing the commit and author for each line.
**Changes** – highlighting any local, unpublished, changes or lines changed by the most recent commit.
When activated, GitLens expands the gutter area to show the commit and author for each line of the file, similar to the current line blame. On the right edge of the gutter, an age indicator (heatmap) is shown to provide an easy, at-a-glance way to tell how recently lines were changed (see the Heatmap below for more details). An additional indicator, which highlights other lines that were also changed as part of the current line's commit, is shown both the far left edge and on the scrollbar.
💡 On an active file, use the [Toggle File Blame](command:workbench.action.quickOpen?%22>GitLens%3A%20Toggle%20File%20Blame%22) command from the Command Palette to turn the annotation on and off.
⚙️ Use the settings editor to customize the [file blame](command:gitlens.showSettingsPage?%22blame%22 'Jump to the Gutter Blame settings').
**Heatmap** – to show how recently lines were changed relative to all the other changes in the file.
When activated, indicators are shown on the left edge of the gutter to highlight any local, unpublished, changes or lines changed by the most recent commit.
💡 On an active file, use the [Toggle File Changes](command:workbench.action.quickOpen?%22>GitLens%3A%20Toggle%20File%20Changes%22) command from the Command Palette to turn the annotation on and off.
⚙️ Use the settings editor to customize the [file changes](command:gitlens.showSettingsPage?%22changes%22 'Jump to the Gutter Changes settings').
When activated, a color-coded indicator line is shown on the left edge of the gutter to show how recently lines were changed relative to all the other changes in the file. The colors range from hot, orange, to cold, blue, based on the age of the most recent change. Changes are considered cold after 90 days.
💡 On an active file, use the [Toggle File Heatmap](command:workbench.action.quickOpen?%22>GitLens%3A%20Toggle%20File%20Heatmap%22) command from the Command Palette to turn the annotation on and off.
⚙️ Use the settings editor to customize the [file heatmap](command:gitlens.showSettingsPage?%22heatmap%22 'Jump to the Gutter Heatmap settings').
+ 4- 2
walkthroughs/getting-started/7-git-side-bar-views.mdZobrazit soubor
@ -5,6 +5,8 @@
<imgsrc="../../images/docs/views-layout-scm.png"alt="Source Control Side Bar Views"width="45%"/>
</p>
GitLens adds side bar views for Commits, File History, Branches, Remotes, Stashes, Tags, Contributors, and the Search & Compare that provide rich source control details and functionality.
GitLens adds side bar views for Commits, File History, Branches, Remotes, Stashes, Tags, Contributors, Search & Compare, and more that provide rich source control details and functionality.
These views can be displayed in either the **GitLens** side bar or on the **Source Control** side bar.
By default, these views can be displayed in either the [GitLens side bar](command:gitlens.views.home.focus 'Open GitLens side bar') or on the [Source Control side bar](command:workbench.scm.focus 'Open Source Control side bar').
💡 Use the [GitLens: Set Views Layout](command:gitlens.setViewsLayout) command from the [Command Palette](command:workbench.action.quickOpen?%22>GitLens%3A%20Set%20Views%20Layout%22) to change the layout, or drag & drop the views individually.
+ 3- 1
walkthroughs/getting-started/9-git-command-palette.mdZobrazit soubor
The Git Command Palette provides guided, step-by-step access to many common Git commands, as well as quick access to commits (history and search), stashes, and status (current branch and working tree).
The [Git Command Palette](command:gitlens.gitCommands) provides guided, step-by-step access to many common Git commands, as well as quick access to commits (history and search), stashes, and status (current branch and working tree).
You can quickly navigate and safely execute Git commands through easy-to-use menus where each command can require an explicit confirmation step before executing.
New premium features like Worktrees and Visual File History can be unlocked with a GitLens Free+ account. Additional premium features like a visual commit graph, and integrations for GitHub Enterprise and GitLab Self-Managed repositories are coming soon.
New premium features like Worktrees and Visual File History can be unlocked with a GitLens Free+ account. Additional premium features like a visual commit graph, and integrations for GitHub Enterprise and GitLab are coming soon.
**Does this affect existing features?**
## Does this affect existing features?
No, the introduction of premium features has no impact on GitLens features that existed prior to v12.0, so you won't lose access to any of the GitLens features you know and love. Creating an account simply gives you access to new, premium features that will enable you to get even more out of Git in VS Code!
No, the introduction of premium features has no impact on existing GitLens features, so you won't lose access to any of the GitLens features you know and love. Creating an account simply gives you access to new, premium features that will enable you to get even more out of Git in VS Code!
Free+ accounts will be able to access premium features on all public repostories, and a paid account will be required to access premium features on private repositories.
Free+ accounts will be able to access premium features on public repos, and a paid account will be required to access premium features on private repos. All non-premium features will continue to be free without an account.
[Learn More About Premium GitLens Features](https://gitkraken.com/gitlens/premium-features)
[**Learn More About Premium GitLens Features**](https://gitkraken.com/gitlens/premium-features 'Learn more')
<imgsrc="../../images/docs/worktrees-view.png"alt="Worktrees View in Side Bar"/>
</p>
Worktrees make developing on and testing multiple branches easier, by minimizing the context switching between branches.
Worktrees make developing on and testing multiple branches easier, by minimizing the context switching between branches. Worktrees allow you to easily work on different branches of a repository simultaneously. You can create multiple working trees, each of which can be opened in individual windows or all together in a single workspace.
*Note: Worktrees do not yet work with VS Code on the web.*
_Note: Worktrees do not yet work with VS Code on the web._
+ 1- 1
walkthroughs/premium-features/4-coming-soon.mdZobrazit soubor
@ -4,4 +4,4 @@
<imgsrc="../../images/docs/coming-soon-commit-graph.png"alt="Worktrees View in Side Bar"/>
</p>
You can expect more premium features like a visual commit graph for better repo visualization, and integrations with hosting services like GitHub Enterprise and GitLab Self-Managed.
You can expect more premium features like a visual commit graph for better repo visualization, and additional integrations with hosting services like GitHub Enterprise and GitLab.