Event banner
Visual Studio 2022 AMA
Event Ended
Tuesday, Jun 22, 2021, 09:00 AM PDTEvent details
(IMPORTANT: If you are an Outlook user, please use this link, instead of the one above, to add to your calendar for the correct time.)
We are very excited to announce a Visual Studio 2022 AMA!
An...
EricStarker
Updated Jun 23, 2021
RolandWeigelt
Jun 22, 2021Copper Contributor
Any plans to improve typography options for the Visual Studio (source code) editor? So far, we can change the font (for the whole editor), the colors and the font weight (regular/bold). I'd like to use italics for comments, for instance. And I'd also like to choose a font's stylistic set (example: stylistic set 1 of Segoe UI makes it a programmer's font by adding serifs to the uppercase 'i').
Visual Studio's editor is implemented using WPF, so the features of the System.Windows.Documents.Typography class should make this possible, right?
Follow-up question: Is it possible for a Visual Studio extension to set e.g. Typography.StylisticSet1 = true on some root element of the editor?
- mkristensenJun 22, 2021
Microsoft
I would love to see italic show up as an option for editor fonts as well. There's a suggestion ticket open for it, so please make sure to upvote it.
From a Visual Studio extension, you can actually make text italic + do other manipulations even though there is no UI to control it. So yes, the WPF editor does support it, but we need to expose the UI in Tools -> Options.
There is no support currently for stylistic sets.