microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.63k stars 29.04k forks source link

Syntax highlighting in debug console #43310

Closed ETLaurent closed 3 years ago

ETLaurent commented 6 years ago

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: image

Chrome: image

Extension Author (truncated) Version
clipboard-history Anj 1.0.7
EditorConfig Edi 0.12.0
quokka-vscode Wal 1.0.98
vscode-standardjs-snippets cap 0.7.5
vscode-standardjs che 1.2.1
vscode-eslint dba 1.4.5
gitlens eam 8.0.0
vscode-npm-script eg2 0.3.3
file-icons fil 1.0.7
auto-close-tag for 0.5.5
vue jcb 0.1.5
graphql-for-vscode kum 1.8.3
vetur oct 0.11.7
apostrophecms-vs-snippets pun 1.9.2
sass-indented rob 1.4.6
nunjucks ron 0.2.3
vscode-todo-highlight way 0.5.11
arnavb commented 5 years ago

Has there been any update on this? It makes code hard to read somewhat in the current state.

iansan5653 commented 5 years ago

#71458 adds significantly more options for colors in this console, so this might be something that is possible now.

isidorn commented 5 years ago

@iansan5653 those two are unrealted. For this feature request the debug console would have to have an AST language understanding

weinand commented 5 years ago

@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?

isidorn commented 5 years ago

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.

vscodebot[bot] commented 4 years ago
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle). Happy Coding!
vscodebot[bot] commented 4 years ago
:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle). Happy Coding!
isidorn commented 4 years ago

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.

arnavb commented 4 years ago

That's great news @isidorn! Congrats to the VSCode team!

ETLaurent commented 4 years ago

image

Nice 👌 I guess we can close this issue.

Thank you!

isidorn commented 4 years ago

We still do not support syntaxHyghlighting in the debug console output. Thus I would prefer to leave this issue open.

ItsCubeTime commented 3 years ago

I would love to see support for this in the output "tree" as well

znorman-harris commented 2 years ago

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:

image

silicogen commented 9 months ago

Syntax highlighting in the debug console is what I’d very like to use. I need it.