visual studio 2022 not showing errors

Bede Annetts 5 Reputation points
2023-09-15T03:59:41.3866667+00:00

I'm using visual studio 2022 with unity, and its not giving me anything relating to unity at all, and it also isn't showing me any errors either, and i'm having to flick back and forth to try and solve any problems in my code, can anyone help with this?

Developer technologies | Visual Studio | Other
Developer technologies | C#
{count} vote

3 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-09-15T08:56:42.5833333+00:00

    Hi @Bede Annetts

    Welcome to Microsoft Q&A! 

    Do you mean that there is no error squiggle in the code editor? 

    If so, please enable the option “Show error squiggles” by going to Tools > Options > Text Editor > General

    If I misunderstand, please share us some screenshots to investigate your issue further. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Faizy Developer 0 Reputation points
    2024-04-09T12:01:41.8166667+00:00

    My visual studio not showing any error until i press to button of 'Local Window Debug'. I am using visual studio 2022 and using C++ console for learning C++. In start every things is working fine but in few days it stop showing errors. And i am struggling to get it fix. Greetful if you can help.

    0 comments No comments

  3. Nikita Sokolov 0 Reputation points
    2024-09-03T05:48:12.73+00:00

    In Unity go to Preferences -> External tools -> External Script Editor and make sure Visual Studio version you are using is selected.

    When next time you will open any script, VS will be able to connect to your project assembly and will be highlighting any mistakes in the code.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.