Closed ETLaurent closed 3 years ago
Has there been any update on this? It makes code hard to read somewhat in the current state.
#71458 adds significantly more options for colors in this console, so this might be something that is possible now.
@iansan5653 those two are unrealted. For this feature request the debug console would have to have an AST language understanding
@isidorn AST language understanding is not necessary for this feature (syntax highlighting in editors isn't based on AST either).
What we would need is:
For the first we could add a "language" attribute to the output events. @isidorn how feasible is the latter item?
Debug console does not have a text model since it is not an editor, but a tree. The debug console text input field has a text model and for that it would be feasable. However I do not think it makes that much sense to only do it for the input and not for the actual content.
The Debug Console input now uses the language mode of the current active editor. This means that the Debug Console input now supports syntax coloring, indentation, auto closing of quotes, and other language features. More about this can be found here https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_42.md#debug-console-improvements
We still do not support syntax highlighting in the Debug Console Tree (the rest of the debug console that is not the input). That would require more work since our syntax coloristaion is not built to work with the Tree but the Editor. Thus leaving this feature request open.
That's great news @isidorn! Congrats to the VSCode team!
Nice 👌 I guess we can close this issue.
Thank you!
We still do not support syntaxHyghlighting in the debug console output. Thus I would prefer to leave this issue open.
I would love to see support for this in the output "tree" as well
I agree that having syntax highlighting in the output tree would be fantastic. For example: in Eclipse the debug/input terminal retains all syntax highlighting for user-specified commands which is really easy to interpret. Here's a screenshot showing previous commands retaining their syntax highlighting:
Syntax highlighting in the debug console is what I’d very like to use. I need it.
Hi, it would be nice to have the syntax highlighting on what is typed in debug console, like in Chrome. That would be very confortable, for those who use the debug console a lot.
Thanks
VSCode:
Chrome: