Skip to content

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: Visual Studio Tips

Visual Studio

Visual Studio: Use Hot Reload to Apply Code Changes Without Restarting App

- 17.02.26 - ErcanOPAK comment on Visual Studio: Use Hot Reload to Apply Code Changes Without Restarting App

Restarting app after every small change wastes minutes. Hot Reload applies changes to running app instantly. Enable Hot Reload: Click the flame icon 🔥 in Debug toolbar (or Alt+F10) Works While: – App is running (with or without debugger) – Even during breakpoints Supports: – Method body changes – Adding new methods – CSS/XAML changes […]

Read More
Visual Studio

Visual Studio: Use Peek Definition to View Code Without Opening Files

- 16.02.26 - ErcanOPAK comment on Visual Studio: Use Peek Definition to View Code Without Opening Files

Constantly opening files to check definitions? Peek Definition shows code inline without switching files. Use Peek: Right-click symbol → Peek Definition (or Alt+F12) Features: – Shows definition in popup window – Edit code directly in peek window – Navigate to related definitions – Multiple peeks can be open simultaneously Keyboard Navigation: – Alt+F12: Peek Definition […]

Read More
Visual Studio

Visual Studio: Use Solution Filters to Load Only Projects You Need

- 15.02.26 - ErcanOPAK comment on Visual Studio: Use Solution Filters to Load Only Projects You Need

Large solution taking 5 minutes to load? Solution filters load only selected projects instantly. Create Filter: 1. Right-click solution → Unload unnecessary projects 2. File → Save As Solution Filter (.slnf) 3. Next time: Open .slnf instead of .sln Result: Solution with 50 projects: 5 min load time Filter with 5 projects: 10 sec load […]

Read More
Visual Studio

Visual Studio: Attach to Process for Debugging Running Applications

- 15.02.26 - ErcanOPAK comment on Visual Studio: Attach to Process for Debugging Running Applications

Need to debug app that’s already running? Attach debugger instead of restarting from VS. Steps: 1. Debug → Attach to Process (Ctrl+Alt+P) 2. Find your process (e.g., MyApp.exe, w3wp.exe for IIS) 3. Click Attach Debugger attaches to running process – breakpoints work immediately! Common Use Cases: – Debug production issues on server – Debug Windows […]

Read More
Visual Studio

Visual Studio: Use Multi-Caret Editing to Change Multiple Lines at Once

- 14.02.26 - ErcanOPAK comment on Visual Studio: Use Multi-Caret Editing to Change Multiple Lines at Once

Editing same text on multiple lines one by one is tedious. Multi-caret lets you edit all simultaneously. Add Carets: Hold Alt + Click where you want additional cursors Or Select Multiple: 1. Select text 2. Press Ctrl+D repeatedly to select next occurrence 3. Type to change all at once Example: // Change all ‘firstName’ to […]

Read More
Visual Studio

Visual Studio: Pin Variables While Debugging to Track Values Across Sessions

- 13.02.26 - ErcanOPAK comment on Visual Studio: Pin Variables While Debugging to Track Values Across Sessions

Lost track of important variable values when stepping through code? Pin them to keep them visible. How to Pin: // While debugging, hover over any variable var userId = 12345; // Click the pin icon that appears // Variable stays visible even when out of scope Benefits: Pinned variables persist across debug sessions. Close VS, […]

Read More
Visual Studio

Visual Studio: Stop Debugger from Stepping Into .NET Framework Source Code

- 03.02.26 - ErcanOPAK comment on Visual Studio: Stop Debugger from Stepping Into .NET Framework Source Code

Debugging your code but accidentally stepping into framework methods like String.Format() or Linq internals? This wastes precious debugging time. The Annoying Problem: var users = GetUsers(); var result = users.Where(u => u.IsActive).ToList(); // Press F11 here // Debugger jumps into: // → Enumerable.cs (framework code) // → Buffer.cs // → List.cs // You just wanted […]

Read More
Visual Studio

Speed Up Visual Studio 2022 Build Times by 60% with This Hidden Setting

- 01.02.26 | 01.02.26 - ErcanOPAK comment on Speed Up Visual Studio 2022 Build Times by 60% with This Hidden Setting

If your Visual Studio builds are taking forever, there’s a game-changing setting most developers miss entirely. The Problem: By default, Visual Studio uses only ONE CPU core for parallel project builds, even if you have 8, 16, or more cores available. This bottleneck can turn a 30-second build into a 2-minute nightmare. The Solution: Tools […]

Read More
February 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
232425262728  
« Jan    

Most Viewed Posts

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

Recent Posts

  • C#: Use MemoryPack for 10x Faster Serialization than JSON
  • C#: Use params ReadOnlySpan for Allocation-Free Variable Arguments
  • C#: Use ObjectPool for Reusing Expensive Objects
  • C#: Use Lazy for Expensive Object Initialization
  • SQL: Use STRING_AGG to Concatenate Rows into Comma-Separated List
  • SQL: Use Filtered Indexes to Index Only Subset of Rows
  • .NET Core: Use Result Pattern to Avoid Exceptions for Expected Errors
  • .NET Core: Use IOptions Pattern for Strongly-Typed Configuration
  • Git: Use .gitattributes to Handle Line Endings Across OS
  • Git: Use git notes to Add Comments to Commits Without Changing History

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (935)
  • How to add default value for Entity Framework migrations for DateTime and Bool (832)
  • Get the First and Last Word from a String or Sentence in SQL (826)
  • How to select distinct rows in a datatable in C# (799)
  • How to make theater mode the default for Youtube (717)

Recent Posts

  • C#: Use MemoryPack for 10x Faster Serialization than JSON
  • C#: Use params ReadOnlySpan for Allocation-Free Variable Arguments
  • C#: Use ObjectPool for Reusing Expensive Objects
  • C#: Use Lazy for Expensive Object Initialization
  • SQL: Use STRING_AGG to Concatenate Rows into Comma-Separated List

Social

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