Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Tag: CodeLens

Visual Studio

Visual Studio: Fix CodeLens Reference Counts Staying at Zero for an Entire Solution Because the Local CodeIndex Cache Under %LocalAppData% Never Finished Its Initial Build

- 11.11.26 - ErcanOPAK comment on Visual Studio: Fix CodeLens Reference Counts Staying at Zero for an Entire Solution Because the Local CodeIndex Cache Under %LocalAppData% Never Finished Its Initial Build

πŸ› οΈ Visual Studio: Fix CodeLens Reference Counts Staying at Zero for an Entire Solution Because the Local CodeIndex Cache Under %LocalAppData% Never Finished Its Initial Build CodeLens relies on a background indexing service that builds and caches the solution’s full symbol-reference graph the first time a solution opens, storing that cache under the hidden .vs […]

Read More
Visual Studio

Visual Studio: Fix CodeLens Reference Counts Freezing on an Old Number Because the Background Index Build Silently Stopped After a Solution Filter Was Applied

- 01.11.26 - ErcanOPAK comment on Visual Studio: Fix CodeLens Reference Counts Freezing on an Old Number Because the Background Index Build Silently Stopped After a Solution Filter Was Applied

πŸ› οΈ Fix CodeLens Reference Counts Freezing on an Old Number Because the Background Index Build Silently Stopped After a Solution Filter Was Applied CodeLens’s β€œ3 references” indicators above a method aren’t computed on the fly β€” they’re read from a background index that Visual Studio keeps up to date by watching every project currently loaded […]

Read More
Visual Studio

Visual Studio: Fix a CodeLens Reference Count That Shows Zero Callers for a Method You Can Clearly See Being Called

- 10.10.26 - ErcanOPAK comment on Visual Studio: Fix a CodeLens Reference Count That Shows Zero Callers for a Method You Can Clearly See Being Called

πŸ› οΈ The Reference Count That’s Still Counting an Old Version of Your Code CodeLens’s reference count indicator above a method is populated from a cached index that Visual Studio updates incrementally as files change, and that incremental update can fall behind reality after a large refactor, a branch switch, or a bulk find-and-replace that touches […]

Read More
Visual Studio

Visual Studio: Use CodeLens to See Method References Without Searching

- 14.06.26 - ErcanOPAK comment on Visual Studio: Use CodeLens to See Method References Without Searching

πŸ‘οΈ Above Every Method: Who Uses This? Right-click β†’ Find All References is slow. CodeLens shows reference count right above method names. Click to see list. No context switching. πŸ”§ Enable CodeLens Tools β†’ Options β†’ Text Editor β†’ All Languages β†’ CodeLens Check: “Enable CodeLens” Features shown: – References: 3 references (click to see […]

Read More
Visual Studio

Visual Studio: Use CodeLens to See References Without Searching

- 06.06.26 - ErcanOPAK comment on Visual Studio: Use CodeLens to See References Without Searching

πŸ‘οΈ Above Every Method: Who Uses It? Right-click β†’ Find All References is slow. CodeLens shows reference count right above method names. Click to see list. No context switching. πŸ”§ Enable CodeLens Tools β†’ Options β†’ Text Editor β†’ All Languages β†’ CodeLens Check: “Enable CodeLens” Features shown: – References: 3 references (click to see […]

Read More
Visual Studio

Visual Studio 2022: The Hidden Power of CodeLens That 10x Developers Actually Use

- 23.02.26 - ErcanOPAK comment on Visual Studio 2022: The Hidden Power of CodeLens That 10x Developers Actually Use

🎯 The Problem Most Developers Face You’re reading code and wondering: “Who wrote this? When was it last changed? Where is it being used?” Opening Git history, searching references – it all takes precious seconds that add up to hours every week. Enter CodeLens: Your Code Intelligence Layer CodeLens displays contextual information directly above methods […]

Read More
November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Oct    

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (981)
  • How to add default value for Entity Framework migrations for DateTime and Bool (977)
  • Get the First and Last Word from a String or Sentence in SQL (858)
  • How to select distinct rows in a datatable in C# (854)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (653)
  • Add Constraint to SQL Table to ensure email contains @ (609)
  • Average of all values in a column that are not zero in SQL (570)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (547)
  • Find numbers with more than two decimal places in SQL (475)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit
  • SQL Server: Fix ROW_NUMBER Ties Reordering Between Identical Runs
  • C#: Fix an Enum HasFlag Returning True for the Zero Value
  • WordPress: Fix Featured Images Vanishing After a CDN Migration
  • Photoshop: Fix Content-Aware Fill Smearing a Repeating Pattern
  • Asp.Net Core: Fix Antiforgery Tokens Rejected Behind a Reverse Proxy

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (981)
  • How to add default value for Entity Framework migrations for DateTime and Bool (977)
  • Get the First and Last Word from a String or Sentence in SQL (858)
  • How to select distinct rows in a datatable in C# (854)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com