Howto find all active console.logs in VS Code

Console.log is very helpful in VS Code for quickly logging Variables, Arrays, Objects etc…

But it quickly takes overhand and you log something here and there and you have no idea anymore what’s really going on in your console.

With this Regex you’ll find instantly all active console.log

Ctrl + Shift + F

and then paste this Regex pattern into the search bar

\s*?^(?!(//))\s*?console\.(\w+).*

← Go home