💡 Tired of style debates in code reviews? I've published a blog on best practices for C# code formatting with .editorconfig. .editorconfig is a cross-editor, cross-tool configuration file that enforces consistent coding styles. With the right setup, your IDE, for example Visual Studio or Rider, and analyzers like Roslyn will apply and suggest the correct style without manual effort. Why this matters - Consistent formatting reduces review friction and makes code easier to read. - When tools enforce rules, teams spend less time on style and more on design and correctness. What you can expect from the post - A clear explanation of how .editorconfig works across editors and analyzers. - Practical steps to get IDEs and Roslyn to apply and suggest styles automatically. If you maintain a C# codebase or lead a dev team, this can cut down on noisy reviews and improve code quality. Which formatting rule would you standardise first in your team? Read the full post: https://lnkd.in/ecCPd_c8 #CSharp, #EditorConfig, #dotnet, #CodeQuality, #DeveloperTools
Ravinder Singh’s Post
More Relevant Posts
-
🚀 Before You Write a Single Line of .NET Code — Add These 3 Files First. Most developers jump straight into controllers. Senior developers set up the foundation first. 🔷 1. .editorconfig Enforces consistent code style across every developer. No more tabs vs spaces wars. No more messy PRs. ✅ Visual Studio and VS Code both respect it automatically. 🔷 2. Directory.Packages.props — Central NuGet Management One file controls ALL package versions across ALL projects. ❌ Project A uses Serilog 3.0. Project B uses 2.0. Conflicts everywhere. ✅ Define versions once — every project inherits them automatically. 🔷 3. CLAUDE.md — Your AI’s Project Bible Most developers in 2026 don’t know this file exists. Claude Code reads it automatically and understands your architecture before writing a single line. ✅ AI generates code that matches YOUR stack — not a generic template. ✅ New team members understand the project instantly. 💡 These 3 files take 15 minutes to set up. They save your team hundreds of hours. #DotNet #CSharp #AspNetCore #WebAPI #DotNetDeveloper #CleanCode #SoftwareEngineering #BackendDevelopment #Programming #TechTips #Pakistan #ClaudeAI #NuGet #BestPractices
To view or add a comment, sign in
-
For some, seeing an Error List with 280 Errors is a total nightmare. For me? It’s just like hitting a complex level in a puzzle game waiting to be solved! 🧩 When you're building with Clean Architecture in .NET, this happens all the time. Change a signature in an interface or update a property name in your DbSet, and boom—a sea of red lines floods the entire solution. Looking at the screenshot: IAuthService contracts aren't fully implemented AppDbContext is missing the ApplicationUsers reference It might look overwhelming at first glance, but honestly, this kind of problem-solving is what makes coding fun. Fixing bugs and clearing error logs isn't just about chasing that Build: 1 succeeded message—it’s about the satisfying rush of untangling a complex system and making it run smoothly. Just like solving a tricky puzzle, every resolved error gives you that instant hit of accomplishment. Errors aren't a sign that you failed; they're just proof that you're actively building, refactoring, and pushing your code further. How do you react when Visual Studio throws 200+ errors at you? Panic, grab a fresh cup of coffee, or dive straight in? Let me know below! 👇 #csharp #dotnet #softwareengineering #cleanarchitecture #debugging #backend #devlife #problemsolving
To view or add a comment, sign in
-
-
Extend debugging to #VSCode editors. #ReSharper 2026.2 by JetBrains brings debugging to Visual Studio Code-compatible editors, including support for breakpoints and variable inspection. https://lnkd.in/gU8HpEac
To view or add a comment, sign in
-
🐞 Debugging with Visual Studio Code Debugging isn’t about guessing what went wrong — it’s about observing your code step by step. Here are some useful VS Code debugging features I learned: 🔴 Breakpoints (F9) — Pause execution at a specific line. ▶️ Step Over (F10) — Execute the next line. 🔍 Step Into (F11) — Enter a method and debug it line by line. ⬆️ Step Out (Shift+F11) — Exit the current method. 👀 Variables & Watch — Inspect values and expressions. 📚 Call Stack — Understand how your program reached the current line. 💻 Debug Console — Test expressions while the program is paused. ⚡ Conditional Breakpoints & Logpoints — Debug smarter without stopping everywhere. 🧠 Key takeaway Reproduce → Break → Inspect → Step → Understand → Fix → Verify The goal of debugging is not just to fix the error, but to understand why it happened. #Java #Debugging #VSCode #VisualStudioCode #SoftwareEngineering #JavaDeveloper #Programming #ProblemSolving #LearningInPublic #BuildInPublic #CrioDo #CrioLearner #LearnByBuilding #100DaysOfCode #SoftwareDevelopment #DeveloperJourney
To view or add a comment, sign in
-
-
Debugging MCP in .NET: From Prompt to Resource Execution A quick demonstration from my ReceiptFlow.AI project showing how an MCP workflow can be debugged directly inside a .NET application. In this example, I select the “Retrieve a receipt by ID” MCP prompt from the frontend and provide the receipt identifier. The prompt instructs the MCP client to access the appropriate receipt resource: receipt://by-id/{id} On the .NET backend, I can place a normal Visual Studio breakpoint directly inside the MCP resource handler and follow the request as it executes. This makes it possible to inspect the incoming parameters, step through the resource implementation, debug repository calls, identify errors, and verify the data returned to the MCP client. Once execution completes, the result flows back through MCP and is presented in the UI as a structured receipt. For me, this is one of the useful aspects of building MCP applications with .NET: MCP doesn't have to be a black box. The complete request lifecycle can still be inspected and debugged using familiar .NET development tools. Flow demonstrated in the video: MCP Prompt → Resource URI → .NET MCP Resource → Repository → Result → UI #MCP #ModelContextProtocol #DotNet #CSharp #AIEngineering #VisualStudio #Debugging #SoftwareEngineering #FullStackDevelopment #GenerativeAI
To view or add a comment, sign in
-
Resource Link: [ https://lnkd.in/gYpzVkUP ] Stop just "coding" and start mastering your environment. 🚀 Visual Studio Code is the world's #most popular editor, but are you truly leveraging its power to accelerate your workflow? Whether you’re a #student starting your first #web project or a senior engineer managing complex remote architectures, there is always a new level of productivity to unlock. I’ve mapped out the 5-Step #Journey to VS #Code Mastery to help you go from basic editing to AI-powered development: 1️⃣ Master the Interface: Stop digging through menus. #Learn to use the Command Palette (Ctrl+Shift+P) as your primary navigation tool for every feature. 2️⃣ Leverage IntelliSense: Let the editor do the heavy lifting with AI-powered code completion, parameter hints, and member lists that understand your code's context. 3️⃣ Supercharge with Extensions: #Build a "self-cleaning" codebase by installing essentials like Prettier for formatting and #Error Lens to catch bugs the moment you type them. 4️⃣ Streamline Git & Debugging: Ditch the terminal for routine tasks. Stage and commit changes directly in the editor and use breakpoints to squash bugs in real-time. 5️⃣ Go Remote & AI-First: Break free from local limits. Develop in WSL, SSH, or Containers and boost your speed with GitHub Copilot as your pair #programmer. Check out the learning roadmap below! 👇 #VisualStudioCode #VSCode #Programming #WebDevelopment #SoftwareEngineering #CodingTips #DeveloperProductivity #TechSkills #OpenSource #GitHubCopilot #CleanCode #RemoteWork
To view or add a comment, sign in
-
-
https://lnkd.in/duE_frmF 🚀 Just published my first VS Code extension: FileDIFF! Ever needed to quickly compare two files that aren't even part of the same project or workspace? FileDIFF adds a simple sidebar to VS Code where you: 📁 Pick any two files on disk ⇄ Compare them instantly using VS Code's native side-by-side diff viewer ↺ Reset and do it again No terminal commands, no third-party tools — just a clean UI right inside your editor. Would love for you to try it out and share feedback 🙌 🔗 https://lnkd.in/duE_frmF #VSCode #VisualStudioCode #FileDIFF #FileCompare #DeveloperTools #DevTools #Extension #SoftwareDevelopment #Coding #Programming #WebDevelopment #DevCommunity #OpenSource #ProductivityTools #CodeReview #TechCommunity #BuildInPublic
To view or add a comment, sign in
-
🚀 10 VS Code Keyboard Shortcuts Every Developer Should Know Most developers spend 6–8 hours inside VS Code every day. Yet many still use the mouse for everything. A few keyboard shortcuts can save hundreds of clicks every single day. Here are 10 shortcuts I use regularly: ✅ Ctrl + P → Quickly open any file ✅ Ctrl + Shift + P → Open the Command Palette ✅ Ctrl + D → Select the next occurrence of the current word ✅ Alt + Click → Add multiple cursors ✅ Shift + Alt + ↓ / ↑ → Duplicate a line ✅ Alt + ↑ / ↓ → Move a line without cut & paste ✅ Ctrl + / → Toggle line comments ✅ Ctrl + Shift + L → Select all occurrences of the selected text ✅ Ctrl + ` → Open or hide the integrated terminal ✅ F2 → Rename a variable across your project These shortcuts may only save a few seconds each time… But over weeks and months, they remove thousands of repetitive actions. Small productivity improvements compound into significant time savings. 💡 What's the one VS Code shortcut you can't code without? Share it below so everyone can learn something new. #VSCode #Programming #SoftwareEngineering #Developer #Coding #Productivity #WebDevelopment #JavaScript #TypeScript #100DaysOfCode
To view or add a comment, sign in
-
-
Code Every Day | Day 8 💻 Today's mini project: Expense Split Calculator. This project helped me practice more than just JavaScript syntax. I worked with form handling, DOM manipulation, input validation, arithmetic operations, conditional logic, preventDefault(), Number(), toFixed(), and dynamic UI updates. I'm starting to notice something interesting: every mini project adds a few more pieces to the puzzle. Individually, the concepts seem small. Together, they're slowly building my programming skills and confidence. That's the purpose of this series...to keep showing up, keep building, and let consistency do its job. 🚀 Live Project: https://lnkd.in/gJnMeVcz� #CodeEveryDay #100DaysOfCode #JavaScript #WebDevelopment #Frontend #BuildInPublic #Programming #CodingJourney
To view or add a comment, sign in
-
-
🚀 Want to code faster and become more productive? Here are some of the most useful **Visual Studio Code shortcuts** every beginner should learn. ### 💻 Essential Shortcuts 📂 **File Management** • `Ctrl + N` → New File • `Ctrl + O` → Open File • `Ctrl + S` → Save File • `Ctrl + Shift + S` → Save As • `Ctrl + W` → Close Current Tab 🔍 **Search & Navigation** • `Ctrl + P` → Quick Open File • `Ctrl + Shift + F` → Search in Entire Project • `Ctrl + G` → Go to Line • `Ctrl + Tab` → Switch Between Open Files ✍️ **Editing** • `Ctrl + /` → Comment/Uncomment Line • `Alt + ↑ / ↓` → Move Line Up or Down • `Shift + Alt + ↓` → Duplicate Line • `Ctrl + X` → Cut Current Line (if nothing is selected) • `Ctrl + D` → Select Next Matching Word • `Ctrl + Shift + K` → Delete Current Line ⚡ **Multi-Cursor Magic** • `Alt + Click` → Add Multiple Cursors • `Ctrl + Alt + ↑ / ↓` → Add Cursor Above/Below 🎯 **Code Formatting** • `Shift + Alt + F` → Format Document • `F2` → Rename Symbol • `F12` → Go to Definition • `Alt + F12` → Peek Definition 🖥️ **Terminal** • `` Ctrl + ` `` → Toggle Integrated Terminal • `Ctrl + Shift + `` → Create New Terminal 📌 Master these shortcuts and you'll spend less time clicking and more time building. 💬 Which VS Code shortcut do you use the most? Share your favorite in the comments! 🔖 Save this post for future reference and share it with someone learning to code. #VSCode #VisualStudioCode #Programming #Coding #JavaScript #WebDevelopment #NodeJS #ReactJS #Developer #SoftwareEngineer #CodingTips #Productivity #ProgrammingTips #Tech #LearnToCode #Beginners #Developers #MERNStack #CodeSmarter #100DaysOfCode
To view or add a comment, sign in
-
More from this author
Explore related topics
- Best Practices for Code Reviews in Software Teams
- Maintaining Code Quality Through Regular Reviews
- Formatting Best Practices for Code Documentation
- How to Improve Your Code Review Process
- Code Quality Best Practices for Software Engineers
- Importance of Consistent Code Editor Settings
- Coding Best Practices to Reduce Developer Mistakes
- Maintaining Consistent Coding Principles
- Code Style and Documentation Consistency