-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Highlight terminal output based on regex pattern #9965
Comments
Similar request: #7561 |
Yes that would be good to highlight output on regular basis and the difference of this request from #7561 is that you wouldn't have any dialog open when output is highlighted. That would be also cool if that could look more like code highlighting then search results highlighting. |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Description of the new feature/enhancement
That would be really handy to have an ability to apply some custom highlighting to terminal output.
For example when I read logs generated by some application I want to highlight particular feature name I'm interested in. So if logs of this feature start with Info: [Feature name] log message, I want to highlight "[Feature name]" with yellow.
That should be an ability to specify various highlighting rules. E.g. I have the following outputs
error: [feature 1] error message here
warning: [feature 2] some another message
info: [feature 3] yet another message
In this case I want to highlight "error:" with red, "warning:" with yellow, "info with green and "debug" with blue. And of course that would be cool if I highlight different features with different colors.
Just to emphasize. That is not mandatory that patterns are at the beginning of the string. It could be in any part of the string.
Proposed technical implementation
details
A set of rules in
settings.json
which associate regex pattern with color. E.g.:The text was updated successfully, but these errors were encountered: