I have a problem about code highlighting in Peek Definition window of Visual Studio Code.
When I peek any function or class code with Peek Definition, the entire code block, not only the function or class name, will be highlighted with bright orange background, so that it's hard to read the code for me.
I attached a sample image of the situation.
I'll appreciate your help.
Syntax highlighting determines the color and style of source code displayed in the Visual Studio Code editor. It is responsible for colorizing keywords like if or for in JavaScript differently than strings and comments and variable names.
Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.
You can turn off code coverage highlighting by navigating to your code coverage results and toggling the “Show code coverage coloring” icon.
Since no one officially answered your question, I figured I'll just post the solution (thanks @Alex for the hint!):
Color Customizations
and click on Edit in settings.json
peekViewEditor.matchHighlightBackground
) in the right window:"workbench.colorCustomizations": {
"[*Your Theme*]": {
"peekViewEditor.matchHighlightBackground": "*Your Chosen Color*"
}
}
If you'd like to make other changes to the peek editor, take a look at the official documentation.
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