What font do you code in?

160 visualizaciones (últimos 30 días)
Chad Greene
Chad Greene el 27 de Mzo. de 2015
Respondida: 银雀Sparr0w el 15 de Mayo de 2023
What font do you use for coding? Clearly the best typeface for coding is Curlz MT, but are there any others? I'm looking for readability and easy 1, l and 0, O distinction.
  7 comentarios
James Li
James Li el 31 de Dic. de 2021
Just realized Curlz MT was a joke. Kudos
Jiannan Zhang
Jiannan Zhang el 31 de Oct. de 2022
Curlz MT is really the best, try it out

Iniciar sesión para comentar.

Respuestas (9)

Star Strider
Star Strider el 27 de Mzo. de 2015
I use Consolas (Windows) for Editor and Command Window fonts. It’s a fixed-width sans-serif font with a slant-through zero and easily recognisable letters and symbols. I don’t have Curlz MT on this machine, so I can’t compare them.

Stephen23
Stephen23 el 27 de Mzo. de 2015
Editada: Stephen23 el 2 de Nov. de 2022

Trong Nguyen Van
Trong Nguyen Van el 4 de Oct. de 2016
I'm using Consolas with size 11. Because, i get used to coding with this font on Visual or CodeBlocks. My matlab doesn't support Curlz MT.

Jan
Jan el 13 de Ag. de 2020
Andale Mono and Bitstream Vera Sans Mono.
  6 comentarios
Johann
Johann el 9 de Feb. de 2023
Yes! How can yo set this fonts in Matlab?
Jan
Jan el 9 de Feb. de 2023
Install the fonts onyour computer. Under Windows there are 2 options: Install for the current user or for all users with admin privilegs. Matlab does not recognize fonts installed for the current user only, so choose option 2.

Iniciar sesión para comentar.


Jaber Gharib
Jaber Gharib el 8 de Mayo de 2018
The best ids Consolas I suppose

Carey Smith
Carey Smith el 13 de Ag. de 2020
I prefer Lucida Console: You can tell the differences between 1l & I, and 0 and O.
Plus it's mon-spaced, so code indentation lines up and number arrays line up.

John D'Errico
John D'Errico el 13 de Ag. de 2020
Editada: John D'Errico el 16 de Ag. de 2020
Personally, I like a font that puts a slash of some sort through the zeros. Without that, the zero and uppercase O seem too close to me, too easy to mistake. You also need fonts with a serif, as that really helps to distinguish betweel a lower case l, the number 1, and an upper case I, even lower case i.
Monaco is my choice. And monospaced is really important for coding. Never program in a proportionally spaced font.
  3 comentarios
John D'Errico
John D'Errico el 16 de Ag. de 2020
I went back, and after a fair amount of play with every choice of font I had, I find my preference to be strongly just plain old Monaco. Monospaced. Nice distinction between the letters and numbers in question.
DGM
DGM el 2 de Nov. de 2022
I have a fond place in my heart for a crispy 9pt bitmapped Monaco; that said, there are a number of fonts called Monaco that visually have nothing to do with that or each other. I just use whatever the "Monospaced" alias points to (seems to be DejaVu Sans Mono 10). I might like a dot or crossbar on 0, but I'll survive.

Iniciar sesión para comentar.


IronDay
IronDay el 24 de Oct. de 2020
Fonts: Seorgio UI Plain
size: 12

银雀Sparr0w
银雀Sparr0w el 15 de Mayo de 2023
Inconsolata is great

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by