using:vscode:fonts

Fonts

TLA+ widely uses the language of mathematics, and its syntax contains great deal of character sequences that represent mathematical symbols. So why not use those symbols directly when displaying specifications in the text editor?

There’re two levels of visualization improvements:

Lots of fonts, especially designed for developers, have many ligatures that match TLA+ character sequences: Fira Code, Monoid, Hasklig, JetBrains Mono, PragmataPro to name a few.

Switch to one of such fonts, turn ligatures on (provide the "editor.fontLigatures": true VS Code setting), and you’ll get many fancy symbols in your specs:

Fonts with ligatures Fonts with ligatures

If you want go further, you can install the Conceal extension and configure substitutions to make your specifications look even closer to math texts:

Fonts with Conceal Fonts with Conceal

More information about substitutions, including settings examples, can be found in the corresponding discussion.

  • using/vscode/fonts.txt
  • Last modified: 2024/10/19 19:21
  • by fponzi