Solution #1 – Copy and Paste
Copy following superscript or subscript numbers:
Superscript Numbers: ¹²³⁴⁵⁶⁷⁸⁹⁰
Subscript Numbers: ₀₁₂₃₄₅₆₇₈₉
Solution #2 – VS Code Plugin
Install Fast Unicode Math Characters
plugin.
To convert a portion of text to a superscript or subscript just type \_123
or \^123
+ [tab]. This will display ₁₂₃ or ¹²³. For a full list of supported subscript and superscript characters see here.