50

I use vscode. Sometimes I seem to click or type something accidentally and a timeline view (similar to the one described in How can I view the Git history in Visual Studio Code?) appears.

enter image description here

How do I close the timeline view?

I thought the option to hide the timeline would be in View > Appearance but I can't see any references to 'timeline' history' 'commits' etc.

Right now I just close the file and reopen it but I'm sure there's a proper solution.

mikemaccana
  • 110,530
  • 99
  • 389
  • 494

5 Answers5

88

I also unintentionally opened blame history and didn't know how.

The reason why the timeline is opening unexpectedly is that clicking the message above the first line in a file opens and close the latest blame - see red area in the screenshot.

enter image description here

To fix it (thanks GitKraken for the advice on Twitter):

Command/ctrl + shift + P > GitLens: Open Settings > then scroll down to Git CodeLens:

enter image description here

mikemaccana
  • 110,530
  • 99
  • 389
  • 494
devstefancho
  • 2,072
  • 4
  • 17
  • 34
17

You probably hit the shortcut key for the command: GitLens: Toggle File Blame Annotations

rioV8
  • 24,506
  • 3
  • 32
  • 49
13

enter image description here

Click on the Toggle file blame on the right upper corner of the Visual Studio code (1.67)

Raccoon
  • 400
  • 4
  • 13
1

[version 1.52.1] Right-click 'TIMELINE', then click 'Hide'.

Johan Maes
  • 1,161
  • 13
  • 13
1

Here's how you turn off those inline authorship messages that are easy to click, which pops out the annoying sidebar.

Ctrl+Shift+P => "Open Settings" => Ctrl+F for "Adds authorship CodeLens" Deselect the line. Turn off GetCodeLens

Will Scott
  • 11
  • 2