Reputation: 111
I want to change the parameter font style like this image. How can I do this? my image another image
Upvotes: 0
Views: 1447
Reputation: 479
Please refer to Working with themes in vscode & Working with javascript in vscode
File should be jsconfig.json Change font like following in json
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "variable.parameter.function",
"settings": {
"fontStyle": "",
"foreground":"#d15a32"
}
}
]
}
Upvotes: 1
Reputation: 79
If you want to apply your own customization, just enter your settings.json
"editor.fontFamily": "Consolas, 'Courier New', monospace"
There is also this possibility that you can change some rules in your editor:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"variable.parameter"
],
"settings": {
"fontStyle": "italic"
}
}
]
}
In the example I did above, it will underline all parameters. However, changing the font does not work.
Is there a way to do this? Sure, but I don't know. I know that some vscode themes change, one that I can quote is DarkMono.
Upvotes: 2