Visual studio not help me in a wrong for loop

Haviv Elbsz 2,091 Reputation points
2023-04-02T06:40:53.0666667+00:00

Hello all. in a for loop I was upset about my app logic a long time until I noticed that I did a mistake in the index of the for loop as follows. for (i=0; i < 12; m++) because of a copy paste I missed change m to i and I was frustrated a long time. Why visual studio not help me in this simple mistake. Thank you very much.

Developer technologies | C#
{count} votes

Accepted answer
  1. YujianYao-MSFT 4,296 Reputation points Microsoft External Staff
    2023-04-05T05:40:17.3866667+00:00

    Hi Haviv Elbsz, Unfortunately, currently visual studio cannot respond to this situation as you expect. If you want to add this feature in a future update, I suggest you report this issue to DC, and I will report it for you. Best regards, Elya

    If the answer is the right solution, please click "Accept Answer" and 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.


1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.