Issue #85 (Problem Navigation with ALT/OPT+F8)12/06/23
Learn AI in 5 Minutes a Day
We'll teach you how to save time and earn more with AI. Join 70,000+ free daily readers for trending tools, productivity-boosting prompts, the latest news, and more.
|
|
|
If you have a large file in VS Code that has a number of different errors and warnings in it, you'll benefit from using VS Code's problem navigation feature.
This feature is used by hitting ALT+F8 (OPT+F8), which starts navigating through errors and warnings in your code by focusing on the first one in your file.
Then just keep hitting the same keyboard shortcut to continue cycling through the problems in the code. If you want to navigate backwards through the problems, use SHIFT+ALT+F8 (SHIFT+OPT+F8).
And there is one thing you can do to customize how these problems are prioritized when you're navigating through them. This is done by
adjusting VS Code's problems.sortOrder setting.
There you have the option to cycle through the problems by severity (the default) or by position. If you navigate by severity, you'll navigate all the errors first, then the warnings, then others. If you go by position, it will simply navigate through all problems in the order they appear in the file, regardless of the severity.
And as a final point, if you're inside a file that has no problems, you can hit F8 alone and this will go to the first problem in the open files in your editor. From there you can starting navigating the problems using ALT/OPT+F8 or SHIFT+ALT/OPT+F8.
And of course, if you want to adjust the shortcut for these, you can search for the word "Problem" in your shortcuts view, as shown above.
Now on to this week's hand-picked links!