This is currently a feature request, so I know the answer isn't straight forward, but I assume some clever people found clever workarounds for this.
One way is to copy/paste the output in some text editor, but ew.
Someone suggested redirecting the debug output to the terminal, which does have a search feature, sounds better.
So, the question is, how does one redirect the debug output to the terminal?
Unless, of course, you have an even better solution.
EDIT (from the GitHub thread)
You can use the property "console": "integratedTerminal" on the debug launch task to redirect the output to the terminal.
Steps to reproduce: Start debugging something, have the console be full of text. Hit Ctrl-F to find.
Press cmd + F / ctrl + F. Start typing.
VS Code allows you to quickly search over all files in the currently opened folder. Press Ctrl+Shift+F and enter your search term. Search results are grouped into files containing the search term, with an indication of the hits in each file and its location.
Looks like this answer is now outdated, see the accepted one ☝️
A type-to-filter functionality has been added. To use it:
cmd + F
/ ctrl + F
You will see what you type in the upper right corner of the debug console.
You can then "enable filter on type" (the 3 lines left of the 'x') and only matching lines will show in the debug console. Press Escape to clear the search.
So it's not exactly the search feature OP was looking for, plus you can't type spaces, but it's the best built in tool for now (July 2019).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With