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

Category: Visual Studio

Visual Studio

VS “Breakpoints Hit Wrong Line” — The PDB Stale Cache Bug

- 11.12.25 - ErcanOPAK comment on VS “Breakpoints Hit Wrong Line” — The PDB Stale Cache Bug

Debugger attaches but steps on the wrong line?That’s stale PDB files. ✔ Fix: Delete: bin/ obj/ .vs/ Then: Clean → Rebuild → Restart VS 💡 Bonus Disable “fast up-to-date check” for large solutions.

Read More
Visual Studio

VS “Debugger Attached But Breakpoints Skip” — The Optimization Trap

- 09.12.25 - ErcanOPAK comment on VS “Debugger Attached But Breakpoints Skip” — The Optimization Trap

If breakpoints turn hollow → VS cannot attach because JIT optimized code away. ✔ Fix Project → Properties → Build → Uncheck “Optimize code”Then: Clean → Rebuild → Restart VS 💡 Hidden Tip Also ensure: Debug → Options → Enable Just My Code  

Read More
Visual Studio

Visual Studio “Build Never Stops” — The Rogue MSBuild Node Issue

- 08.12.25 - ErcanOPAK comment on Visual Studio “Build Never Stops” — The Rogue MSBuild Node Issue

Sometimes build gets stuck forever at 0%. ✔ Life-Saving Fix taskkill /IM MSBuild.exe /F taskkill /IM VBCSCompiler.exe /F Restart VS → build works instantly. 💡 Why It Happens Zombie MSBuild nodes fail to unload.

Read More
Visual Studio

Visual Studio “IntelliSense Slow” — Fix the Hidden Roslyn Cache Issue

- 07.12.25 - ErcanOPAK comment on Visual Studio “IntelliSense Slow” — Fix the Hidden Roslyn Cache Issue

If IntelliSense lags, it’s usually Roslyn’s temp files. ✔ Fix Delete: %LOCALAPPDATA%\Microsoft\VisualStudio\*\ComponentModelCache Restart VS → Instant improvement. 💡 Bonus Disable unused analyzers for huge solutions.

Read More
C# / Visual Studio

How to make the default class type ‘public’ instead of ‘internal’ in Visual Studio

- 22.05.22 - ErcanOPAK comment on How to make the default class type ‘public’ instead of ‘internal’ in Visual Studio

VS2012: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ItemTemplates\CSharp\Code\1033\Class VS2015: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ItemTemplates\CSharp\Code\1033\Class VS2017(RC): C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ItemTemplates\CSharp\Code\1033\Class VS2017(Professional): C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ItemTemplates\CSharp\Code\1033\Class VS2019 (Enterprise): C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\ItemTemplates\CSharp\Code\1033\Class\Class.cs VS2019 (Professional): C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\ItemTemplates\CSharp\Code\1033\Class\Class.cs Starting with Visual Studio 2022 VS is a 64 bit application, meaning the item templates are in C:\Program Files\… instead of C:\Program Files […]

Read More
Visual Studio

5 Editing Hacks for Visual Studio

- 22.01.19 | 14.04.20 - ErcanOPAK comment on 5 Editing Hacks for Visual Studio

1. Multi cursor selection To add cursors at arbitrary positions, select a position with your mouse and use Alt+Click(Option+click on macOS).

Read More
Visual Studio

How to use Map Mode for Vertical Scroll Mode in Visual Studio

- 13.06.18 | 16.01.26 - ErcanOPAK comment on How to use Map Mode for Vertical Scroll Mode in Visual Studio

Are you still scrolling through thousands of lines of code like it’s 1999? If you are using Visual Studio, there is a powerful navigation tool hidden in your settings that can turn your scrollbar into a miniature map of your entire file. It’s called Map Mode, and once you try it, you’ll never go back […]

Read More
Visual Studio

Display Line Numbers in Visual Studio

- 12.06.18 | 22.11.19 - ErcanOPAK comment on Display Line Numbers in Visual Studio

On the menu bar, choose Tools, Options. Expand the Text Editor node, and then select either the node for the language you are using, or All Languages to turn on line numbers in all languages. Or you can type line number in the Quick Launch box.

Read More
Page 9 of 9
« Previous 1 … 4 5 6 7 8 9

Posts pagination

« Previous 1 … 7 8 9
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,068)
  • Get the User Name and Domain Name from an Email Address in SQL (990)
  • How to add default value for Entity Framework migrations for DateTime and Bool (986)
  • Get the First and Last Word from a String or Sentence in SQL (865)
  • How to select distinct rows in a datatable in C# (859)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (661)
  • Add Constraint to SQL Table to ensure email contains @ (619)
  • Average of all values in a column that are not zero in SQL (577)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (553)
  • Find numbers with more than two decimal places in SQL (481)

Recent Posts

  • Network Speed Monitor Windows Application v2.5.1
  • Ağ Hızı İzleyici Windows Uygulaması v2.5.1
  • How to make theater mode the default for Youtube
  • The AI Prompt That Audits a Function for Thread-Safety Gaps
  • Ajax: Fix a Fetch Request Caching a Response Despite No-Store
  • WordPress: Fix a Navigation Block Losing Submenu Items After Sync
  • Visual Studio: Fix CodeLens Reference Counts Stuck at Stale Numbers
  • C#: Fix a UTF-8 String Literal Behaving Differently in a Switch
  • Photoshop: Fix a Liquify Mesh Snapping Back on a Smart Object
  • The AI Prompt That Turns a Crash Dump Into a Short Repro Script

Most Viewed Posts

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

Recent Posts

  • Network Speed Monitor Windows Application v2.5.1
  • Ağ Hızı İzleyici Windows Uygulaması v2.5.1
  • How to make theater mode the default for Youtube
  • The AI Prompt That Audits a Function for Thread-Safety Gaps
  • Ajax: Fix a Fetch Request Caching a Response Despite No-Store

Social

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