You can get Pycharm to switch to priority tasks first:
Go to Preferences | Editor | General Preferences | Editor | General Preferences | Editor | General and scroll down to Error highlighting , where you can activate 'Next Error' goes to high priority... (Pycharm 4).
If this parameter is activated when there are no errors (red), F2 will go through warnings (yellow), and finally, when there is nothing serious left, typos.
If necessary, enter Error highlighting in the Preferences search box to help find it.
source share