简体   繁体   中英

Why does ctrl-shift-F12 (next error) start in middle of C# .cs file, in Visual Studio 2017?

I want to step through each compile error, beginning from top of file. But ctrl - shift - F12 skips about half the errors, and select one near middle of them all, in my C# project.

And, if I set cursor at beginning of the .cs file, press ctrl - shift - F12 , it still goes to an error near the middle.

In my VB project, it works great -- selects the first one, press ctrl - shift - F12 again and it selects next... again and again until at beginning (first one) again. And if I go to top and do ctrl - shift - F12 , it selects first.

The CTRL + SHIFT + F12 (Next Error) shortcut iterates through the items in the 'Error List' window of Visual Studio. The order that it will iterate through the items depends on how you have the error list sorted. If you would like it to go from the 'top' to 'bottom' of a certain file you could select 'Current Document' and sort by 'Line'.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM