Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write superscript / upper index in Visual Studio?

It is possible, but I don't know how is it done.

enter image description here


2 Answers

Use the Windows Charmap.exe applet. In the Font combobox select a font that has a lot of glyphs, Arial Unicode MS is a very good choice. Tick the Advanced view checkbox and type "super" in the Search box. The grid will show all superscript glyphs, select and copy from that and paste into your source code.

Or copy/paste one of these: ¹²³⁴⁵⁶⁷⁸⁹⁰

Subscript characters: ₀₁₂₃₄₅₆₇₈₉

like image 116
Hans Passant Avatar answered Sep 08 '25 00:09

Hans Passant


Adding more details to complement Hans Passant's answer. Other frequently used sets which can be used as is by copy/paste:

Superscript small case letters: ᵃᵇᶜᵈᵉᶠᵍʰⁱʲᵏˡᵐⁿᵒᵖʳˢᵗᵘᵛʷˣʸᶻ

Subscript small case letters: ₐ ₑ ₕ ᵢ ⱼ ₖ ₗ ₘ ₙ ₒ ₚ ᵣ ₛ ₜ ᵤ ᵥ ₓ

If you're wondering why few letters are missing in above series then please read below posts:

  • Where are the other letters in this Unicode block?
  • Why does the unicode Superscripts and Subscripts block not contain simple sequences of all letters?
  • Why is there no character for "superscript q" in Unicode?
like image 37
RBT Avatar answered Sep 07 '25 23:09

RBT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!