Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration toggle for italic keywords #26

Closed
lyinfu opened this issue Nov 13, 2020 · 3 comments
Closed

Configuration toggle for italic keywords #26

lyinfu opened this issue Nov 13, 2020 · 3 comments

Comments

@lyinfu
Copy link

lyinfu commented Nov 13, 2020

The default style always render keywords like class or def in italic. I think this is more C lang IDE font style. I use Python every day, and keeping these language keywords rendered in normal fonts would be good for me. Maybe consider adding this feature toggle in configuration so we can make our own decision.

BTW, really love your themes! It's amazing!

@prawny1103
Copy link

Yeah, that would be great. This theme is perfect in nearly every way. The only thing that would make it better for me is if I could turn off the italics.

@Bjorn-Eric-Abr
Copy link

And a year later ... There is a "customization tool" built in to VS Code!

This video shows you how to add TextMate Rules. Adding an empty string to fontStyle will reset to the regular font variant.

These are my italics resets:

"editor.tokenColorCustomizations": {
	"textMateRules": [
		{
			"scope": [
				"comment",
				"entity.other.attribute-name",
				"entity.other.inherited-class",
				"support.function",
				"variable",
			],
			"settings": {
				"fontStyle": ""
			}
		}
	]
},

You can scope the resets to a specific theme like this:

"editor.tokenColorCustomizations": {
	"[Bearded Theme Monokai Terra]": {
		"textMateRules": [
			// ... your rules
		]
	}
},

@aquibmastan
Copy link

Thanks for the tip! I could overwrite everything to non-italic except for properties/variables... they take their styling from semantic highlighting which apparently takes precedence.
I love this theme but I wish there was a toggle for italics - non italic versions would also be ok. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants