About 1,460,000 results
Open links in new tab
  1. Fix program errors and improve code - Visual Studio (Windows)

    Apr 25, 2023 · Code analyzers look for common code problems that can lead to run-time errors or problems in code management. Visual Studio includes a built-in set of .NET Compiler Platform analyzers that examine C# and Visual Basic code as you type.

  2. c# - How to show all Suggestions/Warnings/Errors in the Error

    Oct 31, 2019 · In Visual Studio 2022 I missed many warnings too - via Tools > Options, tab Text Editor > C# > Advanced you find these settings: and for both you probably want the option Entire solution (instead of Open documents, Current document or None). Unfortunately this only works for errors and warnings.

  3. Visual Studio does not show errors in the code anymore

    May 27, 2020 · You need to turn on the underline errors in the editor options in Visual Studio. These options can be found here: Tools > Options > Text Editor > C# > Advanced > Editor Help

  4. c# - Visual Studio displaying errors even if projects build - Stack ...

    Jul 17, 2013 · I have a problem with Visual Studio on a C# solution. It displays totally random errors, but the projects build. Right now, I have 33 files with errors, and I can see red squiggly lines in all of them. I tried cleaning / rebuilding the solution, closing Visual Studio and even restarting my computer.

  5. Error List Window - Visual Studio (Windows) | Microsoft Learn

    Feb 10, 2025 · The Error List window lets you perform the following tasks: Display the errors, warnings, and messages produced while you write code. Find syntax errors noted by IntelliSense. Find deployment errors, certain Static Analysis errors, and errors detected while applying Enterprise Template policies.

  6. Inline Diagnostics in Visual Studio 2022 for C# Code

    Nov 21, 2022 · Over the weekend I discovered a new feature in Visual Studio 2022 for C# code. This feature, which I’m referring to as “Inline Diagnostics” allows you to see compiler warnings and errors in your editor window without needing to hover over the tooltips.

  7. visualstudio-docs/docs/ide/find-and-fix-code-errors.md at main ...

    In Visual Studio, as with most IDEs, there are two phases to making code work: building the code to catch and resolve project and compiler errors, and running the code to find run-time and dynamic errors. There are two basic types of build configuration: Debug and Release.

  8. Why isn't C# detecting errors in Visual Studio Code?

    Oct 5, 2022 · Update: When I created a console project, the errors started highlighting (finally!) but when I close/reopen VScode and go back to my C# Unity project, it stops highlighting errors again. I'm making my first C# script in Unity and I've installed the …

  9. Compiler Options - errors and warnings - C# reference

    Dec 13, 2024 · To get information about an error or warning, you can look up the error code in the Help Index. For other ways to get information about an error or warning, see C# Compiler Errors. Use TreatWarningsAsErrors to treat all warnings as errors. Use DisabledWarnings to disable certain warnings.

  10. Copilot smart actions in Visual Studio Code

    Copilot can help with explaining a piece of code. Open your application code file. Select the code you want to fix. Right-click and select Copilot > Explain. Copilot provides an explanation of the selected block of code. Fix coding errors. To fix coding issues for your application code without writing a prompt, you can use the editor smart actions.

  11. Some results have been removed
Refresh