Shortcut key: SHIFT+F4 Use the Previous Error command to quickly find and correct syntax errors. Previous Error moves the cursor to the source code line that contains the previous error. At the same time, the Error window opens to display the corresponding error message. Another way to find the previous error is to move the cursor through the Error window's list of errors.