To complete a couple of missing steps:
Open the settings.json file (the location of this file is indicated below)
Add a comma to the last entry (before the closing bracket } )
Paste in:
"workbench.colorCustomizations": {
"editor.selectionBackground": "# e788ff", // Current SELECTED text
"editor.selectionHighlightBackground": "# ff0000", // same content as the selection
"editor.findMatchBackground": "# 00cc44a8", // Current SEARCH MATCH
"editor.findMatchHighlightBackground": "# ff7b00a1" // Other SEARCH MATCHES
}
An example of a typical settings file, post mod:
{
"git.enableSmartCommit": true,
"git.autofetch": true,
"breadcrumbs.enabled": true,
"git.confirmSync": false,
"explorer.confirmDelete": false,
"code-runner.saveFileBeforeRun": true,
"code-runner.saveAllFilesBeforeRun": true,
"workbench.activityBar.visible": true,
"files.trimTrailingWhitespace": true,
"telemetry.enableTelemetry": false,
"workbench.colorCustomizations": {
"editor.selectionBackground": "# e788ff7c", // Current selected text
"editor.selectionHighlightBackground": "# ff00005b", // Same content as selection
"editor.findMatchBackground": "# 00cc44a8", // Current SEARCH MATCH
"editor.findMatchHighlightBackground": "# ff7b00a1" // Other SEARCH MATCHES
}
}
Where to find the settings.json file:
Depending on your platform, the user settings file is located here: Windows %APPDATA%\Code\User\settings.json macOS $HOME/Library/Application Support/Code/User/settings.json Linux $HOME/.config/Code/User/settings.json
ALTERNATE method to open settings.json file:
Ctrl +, (comma) to open the settings
Workbench
Settings Editor
At the top of the search box, paste workbench.colorCustomizations
On the left, click Workbench and then Appearance
Click on the link on the right: Edit in settings.json
Recommendations:
https://code.visualstudio.com/api/references/theme-color#editor-colors
https://code.visualstudio.com/docs/getstarted/themes#_customize-a-color-theme
https://code.visualstudio.com/docs/getstarted/settings
source share