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

Visual Studio: Use IntelliCode for AI-Powered Code Completion

- 13.06.26 - ErcanOPAK comment on Visual Studio: Use IntelliCode for AI-Powered Code Completion

πŸ€– Starred Recommendations = Most Likely API Call IntelliSense shows alphabetical list. IntelliCode uses AI to rank completions. Most used methods appear first. Learns your patterns. πŸ”§ Enable IntelliCode Extensions β†’ Manage Extensions β†’ Search “IntelliCode” β†’ Install Features: – Starred completion items (most likely) – Whole line completion (predicts entire line) – Style inference […]

Read More
Visual Studio

Visual Studio: Use Error List to See All Issues in One Place

- 13.06.26 - ErcanOPAK comment on Visual Studio: Use Error List to See All Issues in One Place

⚠️ Not Just Errors β€” Warnings, Messages, Build Output Build output is messy. Error List groups errors, warnings, and messages. Filter, sort, double-click to fix. Essential for clean builds. πŸ”§ Using Error List View β†’ Error List (Ctrl + \, E) Tabs: – Errors: Build failures, compilation errors – Warnings: Potential issues (not blocking) – […]

Read More
Visual Studio

Visual Studio: Enable Solution Explorer Nesting for Cleaner Projects

- 13.06.26 - ErcanOPAK comment on Visual Studio: Enable Solution Explorer Nesting for Cleaner Projects

πŸ“ .designer.cs Files Cluttering Your Solution? WinForms has Form1.cs and Form1.Designer.cs. Solution Explorer Nesting groups related files. Child files hidden under parent. πŸ”§ Enable Nesting 1. Solution Explorer β†’ Click “Show All Files” (optional) 2. Right-click on parent file (e.g., Form1.cs) 3. Select “Nesting” 4. Choose “Nest Under Parent” Or configure default nesting rules: Tools […]

Read More
Visual Studio

Visual Studio: Sync Settings Across Multiple Computers

- 07.06.26 - ErcanOPAK comment on Visual Studio: Sync Settings Across Multiple Computers

☁️ Your VS Settings Everywhere Theme, keyboard shortcuts, extensions β€” setting up a new PC takes hours. VS Settings Sync roams everything. Sign in, done. πŸ”§ Enable Sync 1. File β†’ Account Settings 2. Sign in with Microsoft account 3. Tools β†’ Options β†’ Environment β†’ Accounts 4. Check “Synchronize settings across devices” What syncs: […]

Read More
Visual Studio

Visual Studio: Paste JSON as Classes – Generate C# Models Instantly

- 07.06.26 - ErcanOPAK comment on Visual Studio: Paste JSON as Classes – Generate C# Models Instantly

πŸ“‹ Copy JSON, Paste C# Classes API returns JSON? Need C# model? Edit β†’ Paste Special β†’ Paste JSON as Classes generates everything. No manual typing. πŸ“ How to Use 1. Copy JSON from browser / API response 2. In Visual Studio: Edit β†’ Paste Special β†’ Paste JSON as Classes 3. VS generates proper […]

Read More
Visual Studio

Visual Studio: Use CodeMaid to Automatically Clean and Organize Code

- 06.06.26 - ErcanOPAK comment on Visual Studio: Use CodeMaid to Automatically Clean and Organize Code

🧹 One Click, Whole Solution Cleaned Code formatting, unused using removal, sorting members β€” CodeMaid does it all. Automatic code cleanup on save. πŸ”§ Features Install: Extensions β†’ CodeMaid Features: – Reorganize members (fields, properties, methods) – Remove unused usings – Sort usings alphabetically – Format document – Remove blank lines – Insert file header […]

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: Use Live Share to Debug with Remote Team Members

- 06.06.26 - ErcanOPAK comment on Visual Studio: Use Live Share to Debug with Remote Team Members

πŸ‘₯ Pair Programming Without Screen Share Screen share is passive. Live Share lets both developers edit, debug, and navigate. Shared servers, terminals, and even voice. πŸ”§ Start Live Share Install extension: Live Share (Microsoft) Start: View β†’ Other Windows β†’ Live Share β†’ Start Session Share link with team member (valid for 30 minutes) Features: […]

Read More
Visual Studio

Visual Studio: Shift + Right Click to Copy Full File Path

- 05.06.26 - ErcanOPAK comment on Visual Studio: Shift + Right Click to Copy Full File Path

πŸ“‹ Copy File Path Without Opening Properties Need to share file location? Copy path? Shift + Right Click reveals hidden context menu items. Copy as path, copy full path, open in terminal. ⌨️ Hidden Shortcut Normal right-click: – Open – Open With – Copy (Ctrl+C) Shift + Right Click: – Copy as path – Copy […]

Read More
Visual Studio

Visual Studio: Use Task List Comments to Track TODOs and Hacks

- 05.06.26 - ErcanOPAK comment on Visual Studio: Use Task List Comments to Track TODOs and Hacks

πŸ“ // TODO: Fix This Later You add TODOs everywhere. Then forget them. Task List collects all TODO, HACK, UNDONE comments. Never lose track again. πŸ“ Task List Tokens // TODO: Implement error handling // HACK: This is temporary, refactor later // UNDONE: Revert this after testing // NOTE: This method is deprecated // Custom […]

Read More
Visual Studio

Visual Studio: Press Ctrl + , to Search Anything Instantly

- 31.05.26 - ErcanOPAK comment on Visual Studio: Press Ctrl + , to Search Anything Instantly

πŸ” Find Any File, Type, Member, Symbol Solution Explorer is slow. Ctrl + , (Navigate To) searches everything: files, classes, methods, properties. Type a few letters, press Enter. ⌨️ How to Use Ctrl + , β†’ Open search box Type “OrderService” β†’ Shows matching files, classes, methods ↓ ↑ arrows β†’ Navigate results Enter β†’ […]

Read More
Visual Studio

Visual Studio: Use Multi-Caret Editing to Type in Multiple Places at Once

- 31.05.26 - ErcanOPAK comment on Visual Studio: Use Multi-Caret Editing to Type in Multiple Places at Once

✏️ Type Once, Appear Everywhere Need to add same text on multiple lines? Multi-caret editing lets you type in dozens of places simultaneously. Refactor without find/replace. ⌨️ How to Use Ctrl + Alt + Click β†’ Add caret at click position Ctrl + Alt + Shift + Arrow β†’ Add caret above/below Shift + Alt […]

Read More
Visual Studio

Visual Studio: Navigate Backward (Ctrl + -) Like a Time Machine

- 30.05.26 - ErcanOPAK comment on Visual Studio: Navigate Backward (Ctrl + -) Like a Time Machine

βͺ Ctrl + – Takes You Back to Where You Were Jumped to definition? Scrolled away? Navigate Backward (Ctrl + -) returns to your previous cursor position. Like a browser back button for your code. ⌨️ Shortcuts Ctrl + – β†’ Navigate Backward (go to previous cursor location) Ctrl + Shift + – β†’ Navigate […]

Read More
Visual Studio

Visual Studio: Use Temporary Breakpoints That Delete Themselves After Hit

- 30.05.26 - ErcanOPAK comment on Visual Studio: Use Temporary Breakpoints That Delete Themselves After Hit

🎯 Break Once, Then Vanish Need to inspect a value just once? Regular breakpoint pauses every time. Temporary breakpoints delete themselves after first hit. Perfect for one-time inspections. πŸ”§ How to Create Method 1: Right-click breakpoint β†’ Conditions β†’ Check “Remove breakpoint when hit” Method 2: Hover over red breakpoint dot β†’ Settings gear β†’ […]

Read More
Visual Studio

Visual Studio: Use Peek Definition (Alt+F12) Without Leaving Your File

- 29.05.26 - ErcanOPAK comment on Visual Studio: Use Peek Definition (Alt+F12) Without Leaving Your File

πŸ‘€ See Code Without Opening New Tabs F12 opens new tab, breaks flow. Alt+F12 (Peek Definition) shows code inline. Edit, navigate, close with Esc. Stay in context. ⌨️ Shortcuts Alt+F12 β†’ Peek Definition (inline view) Shift+Alt+F12 β†’ Peek References (where method is used) Ctrl+Alt+F12 β†’ Peek to Implementation (interfaces) Within peek window: Ctrl+Alt+Home β†’ Promote […]

Read More
Visual Studio

Visual Studio: Automate Code Formatting with Code Cleanup Profiles

- 28.05.26 - ErcanOPAK comment on Visual Studio: Automate Code Formatting with Code Cleanup Profiles

🧹 One Click, Whole File Formatted Remove unused usings, sort imports, fix spacing, apply conventions β€” all automatically. Code Cleanup saves hours of manual formatting. πŸ”§ Set Up Profile Analyze β†’ Code Cleanup β†’ Configure Create profiles: – “Full Cleanup”: Remove/sort usings, format document, apply file header – “Quick Fix”: Only remove usings + format […]

Read More
Visual Studio

Visual Studio: Use IntelliCode for AI-Powered Code Completion

- 27.05.26 - ErcanOPAK comment on Visual Studio: Use IntelliCode for AI-Powered Code Completion

πŸ€– AI Knows What You’re About to Type IntelliCode analyzes your code patterns and suggests completions ranked by AI. GitHub Copilot Lite, built into VS. ✨ What IntelliCode Does Starred completions β†’ Most likely API calls at top of list Style inference β†’ Learns your naming conventions (camelCase, PascalCase) Code formatting β†’ Applies team style […]

Read More
Visual Studio

Visual Studio: Use Conditional Breakpoints and Tracepoints for Smarter Debugging

- 26.05.26 - ErcanOPAK comment on Visual Studio: Use Conditional Breakpoints and Tracepoints for Smarter Debugging

🎯 Stop Wasting Time on Loops Break on iteration 1000? Log values without stopping? Conditional breakpoints and tracepoints save hours of debugging. Conditional Breakpoints Right-click red breakpoint dot β†’ Conditions // Break only when specific condition is true for (int i = 0; i < 10000; i++) { // Breakpoint condition: i == 5000 ProcessItem(i); […]

Read More
Visual Studio

Visual Studio: Use Live Unit Testing for Instant Test Feedback

- 26.05.26 - ErcanOPAK comment on Visual Studio: Use Live Unit Testing for Instant Test Feedback

βœ… See Test Results While You Type Manually running tests after every change? Slow. Live Unit Testing runs tests automatically, shows results inline as you code. Enable Live Unit Testing Visual Studio Enterprise 2022: 1. Test β†’ Live Unit Testing β†’ Start 2. Wait for initial test run 3. Code editor shows inline indicators Configure: […]

Read More
Visual Studio

Visual Studio: Use Live Unit Testing for Instant Test Feedback

- 30.03.26 - ErcanOPAK comment on Visual Studio: Use Live Unit Testing for Instant Test Feedback

βœ… See Test Results While You Type Manually running tests after every change? Slow. Live Unit Testing runs tests automatically, shows results inline as you code. What Is Live Unit Testing? Visual Studio Enterprise feature that runs unit tests in background and displays results in real-time with inline icons: πŸ“Š Inline Indicators Icon Meaning βœ“ […]

Read More
Visual Studio

Visual Studio: Create Custom Code Snippets to Type Less Code

- 22.03.26 - ErcanOPAK comment on Visual Studio: Create Custom Code Snippets to Type Less Code

⚑ Type 3 Letters, Get 20 Lines Writing same boilerplate over and over? Custom snippets let you type ‘prop’ and get full property with backing field. Built-in Snippets You Should Know Shortcut Expands To prop Auto-property ctor Constructor for For loop foreach Foreach loop try Try-catch block cw Console.WriteLine() Usage: Type shortcut β†’ Press Tab […]

Read More
Visual Studio

Visual Studio 2022: Hot Reload – The Feature That Changes Everything

- 19.03.26 - ErcanOPAK comment on Visual Studio 2022: Hot Reload – The Feature That Changes Everything

πŸ”₯ Edit Running Code Without Restarting Change code while debugging. See results instantly. No stop. No rebuild. No restart. This is Hot Reload. What Is Hot Reload? Traditional workflow: Edit code β†’ Stop debugger β†’ Rebuild β†’ Restart β†’ Navigate back to same screen. 2-5 minutes lost per change. Hot Reload workflow: Edit code β†’ […]

Read More
Visual Studio

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

- 19.03.26 | 19.03.26 - ErcanOPAK comment on Visual Studio: Use Solution Filters to Load Only What You Need

Huge solution with 100 projects? Loading takes 5 minutes. Your PC fans scream. You only need 3 projects. Solution Filters (.slnf) – Load subset of projects. Right-click solution β†’ Create Solution Filter Select only projects you need β†’ Save as MyWork.slnf Open MyWork.slnf instead of full .sln Result: 5 minute load β†’ 20 seconds Use […]

Read More
Visual Studio

Visual Studio: The IntelliCode Secret That Writes 40% of Your Code

- 19.03.26 - ErcanOPAK comment on Visual Studio: The IntelliCode Secret That Writes 40% of Your Code

πŸ€– AI-Powered Autocomplete IntelliCode learns from 500,000+ GitHub repos. Predicts your next line before you type it. Free. Built-in. Underused. Enable: Tools β†’ Options β†’ IntelliCode β†’ Turn on What It Does: Shows ⭐ starred suggestions at top of autocomplete. These are statistically what developers write next in this context. // You type: var users […]

Read More
Visual Studio

Visual Studio: Modernizing Your IDE for Extreme Focus

- 01.03.26 - ErcanOPAK comment on Visual Studio: Modernizing Your IDE for Extreme Focus

πŸš€ Code Like a Rockstar Stop squinting at your braces! Visual Studio 2022’s native Rainbow Braces and Sticky Scroll change the game. Why Your Current Setup Sucks: Deeply nested code is a cognitive drain. When you lose track of which ‘}’ belongs to which ‘if’, you lose flow. Sticky ScrollKeeps the class/method header at the […]

Read More
Visual Studio

Visual Studio: Post-Mortem Debugging with Managed Memory Dumps

- 01.03.26 - ErcanOPAK comment on Visual Studio: Post-Mortem Debugging with Managed Memory Dumps

πŸ” The ‘Unreproducible’ Bug Fix Sometimes a bug only happens in Production. Instead of guessing, take a .dmp file and open it in Visual Studio. The Pro Flow: Go to Debug -> Managed Memory. VS will show you exactly which objects were alive, their size on the heap, and the ‘Root’ that prevents them from […]

Read More
Visual Studio

Visual Studio: Visualizing Multithreaded Chaos with Parallel Stacks

- 01.03.26 - ErcanOPAK comment on Visual Studio: Visualizing Multithreaded Chaos with Parallel Stacks

⚑ Senior Debugging Technique When debugging high-concurrency apps, the standard ‘Call Stack’ window is useless because it only shows one thread at a time. Enter Parallel Stacks. This window provides a graphical view of all threads in your system, grouping those that are executing the same code path. It’s the fastest way to identify a […]

Read More
Visual Studio

Visual Studio: Using [DebuggerDisplay] to Speed Up Your Debugging Sessions

- 28.02.26 - ErcanOPAK comment on Visual Studio: Using [DebuggerDisplay] to Speed Up Your Debugging Sessions

Tired of clicking the small arrow to see object properties while debugging? DebuggerDisplay shows the data you want directly in the variable list. [DebuggerDisplay(“User: {Name} (ID: {Id})”)] public class User { public int Id { get; set; } public string Name { get; set; } } The Fix: This attribute forces Visual Studio to show […]

Read More
Visual Studio

Visual Studio: Stop the ‘Out of Memory’ Crashes in Large Solutions

- 28.02.26 - ErcanOPAK comment on Visual Studio: Stop the ‘Out of Memory’ Crashes in Large Solutions

If you are working on a solution with 50+ projects, Visual Studio might feel sluggish. The culprit is often the Diagnostic Tools and IntelliCode cache. Pro Hack: Disable ‘Enable Diagnostic Tools while debugging’ in Tools -> Options -> Debugging -> General. This reduces RAM usage by up to 1.5GB during active sessions. For even better […]

Read More
Visual Studio

Visual Studio: Automating Frontend Assets with Built-in Task Runner Explorer

- 28.02.26 - ErcanOPAK comment on Visual Studio: Automating Frontend Assets with Built-in Task Runner Explorer

The Problem: Manually running Gulp, Grunt, or Npm scripts every time you build or open a project is a productivity killer. Visual Studio’s Task Runner Explorer allows you to bind specific scripts to IDE events like ‘Project Open’ or ‘Before Build’. Why this is a Life Saver: Consistency: Ensures every developer on the team runs […]

Read More
Page 6 of 9
Β« Previous 1 2 3 4 5 6 7 8 9 Next Β»

Posts pagination

« Previous 1 … 4 5 6 7 8 9 Next »
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