简体   繁体   中英

Not showing git info Codelens in visual studio 2022

In my Visual Studio Community 2022, Codelens doesn't show options related to git.

Tools > Options > Text Editor > All Languages > CodeLens

My visaul studio doesn't have these options.

  • Show Timeline (Git)
  • Show Authors & Changes (Git)

Not show this options (img)

It shows "0 references" on classes and methods but not "git changes and author"(0 changes | 0 authors)

    0 refernces // but not show => 0 changes | 0 authors
    public void HelloWord()
    {
       Console.WriteLine("Hello Word");
    }

my problem here (img)

I want it to be so.

I want it here (img)

    0 refernces | 0 changes | 0 authors
    public void HelloWord()
    {
       Console.WriteLine("Hello Word");
    }

Question: What do I have to do?

This feature is available in Visual Studio 2022 Professional , and some features are not supported in the community version.

Tools > Options > Text Editor > All Languages > CodeLens

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM