Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out "Problems in this file" errors in VS Code?

Tags:

In my project, I have a file that has turned red and it says it has 8 errors. How do I find these errors?

I'm attaching my screenshots below:

red file name

error markers

like image 808
Robinhood Avatar asked Sep 19 '19 19:09

Robinhood


People also ask

How do I show error code in VS Code?

Show activity on this post. Pressing F8 will focus the next problem/error. Shift + F8 will focus the previous problem.


2 Answers

Bit late to the punch, however you can use the shortcut Ctrl + Shift + M, which will open the problems pane.

like image 62
Danny Elliott Avatar answered Oct 02 '22 00:10

Danny Elliott


You can use this command:

Ctrl+Shift+M

By the way, you can quickly jump to errors and warnings in the project.

Cycle through errors with:

F8 or Shift+F8

You can filter problems either by type ('errors', 'warnings') or text matching with the above search bar you'll see.

Another useful filter is 'Show Active File Only'

Reference here

like image 44
titoih Avatar answered Oct 02 '22 02:10

titoih