Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcode shortcut to go to next compiler error (ignoring warnings!)

I am aware that command + ' brings you to the next issue, but is there a way to bring you to the next compiler error and ignore the warnings? (xcode 9)

like image 392
user3561494 Avatar asked Oct 11 '17 20:10

user3561494


2 Answers

I don't think there is a way to do that, but the closest thing you could do to that is to filter the display of issues in the Issue Navigator so it only shows errors and no warnings. Do that with one click, on the icon at the bottom right of the Issue Navigator.

Screenshot of the bottom of the Issue Navigator

Once you have done that, then the up and down arrow keys navigate you within the Issue Navigator from error to error instead of issue to issue.

like image 139
auspicious99 Avatar answered Oct 23 '22 23:10

auspicious99


To expand on auspicious99's answer, after filtering on errors in the issues pane, you can use keyboard shortcuts end to end:

  1. cmd-5 - selects the issues pane
  2. up/down arrows - select the error you want
  3. cmd-j, enter - move the focus to the editor
like image 4
Robert Avatar answered Oct 24 '22 01:10

Robert