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

how to use cascadia code italic in vscode? #126370

Closed
sanket-bhalerao opened this issue Jun 15, 2021 · 4 comments
Closed

how to use cascadia code italic in vscode? #126370

sanket-bhalerao opened this issue Jun 15, 2021 · 4 comments
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@sanket-bhalerao
Copy link

sanket-bhalerao commented Jun 15, 2021

Issue Type: Feature Request

Today i came across Cascadia Code with Italics and fell in love with it.
image

is there any possibility of changing the editor font style to italics? I tried with several forums and it seems that individual tokens can be changed and throughout style can not be changed.
if there is some setting i missed?

VS Code version: Code - Insiders 1.58.0-insider (e1161be, 2021-06-14T05:12:28.099Z)
OS version: Darwin x64 20.5.0
Restricted Mode: No

@sanket-bhalerao
Copy link
Author

for some reason my macBook shows the italics but windows 10 machine does not. i have installed the latest Cascadia Code fonts (ttf) on both of them.
image

@IllusionMH
Copy link
Contributor

For Windows you either should install only Italic version e.g. CascadiaCodePLItalic.ttf, then add 'Cascadia Code PL' (font name should correspond to font you picked) in front or "editor.fontFamily" value. Works in case when you don't need regular version.

In other case you need to install both - install both Regular and Italic version, add 'Cascadia Code PL' (font name should correspond to font you picked) in front or "editor.fontFamily" value.
And now you need to override syntax highlight styles for all scopes.

Follow steps from https://stackoverflow.com/questions/41320848/how-do-i-get-visual-studio-code-to-display-italic-fonts-in-formatted-code but specify "fontStyle": "italic" for all scopes you need.
I guess that full list of top level scopes is ["comment", "constant", "emphasis", "entity", "invalid", "keyword", "markup", "meta", "storage", "string", "strong", "support", "variable"]

@sanket-bhalerao
Copy link
Author

thank you for the details. i will try it.
is there any plan or future possibility of having a shortcut setting like "editor.fontStyle": italic ?

@mjbvz mjbvz added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Jun 15, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jul 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

4 participants
@IllusionMH @sanket-bhalerao @mjbvz and others