How to: Use Unicode Surrogate Pairs in the Editor
The Unicode standard defines surrogate pairs to support characters that are not among the 65,536 that are defined in 16-bit Unicode. For more information, see Unicode Support for Surrogate Pairs and Combining Character Sequences.
Visual Studio supports the use of surrogate characters in the Code Editor.
To use Unicode surrogate pairs in the Visual Studio code editor
Install the latest updates for your operating system from https://windowsupdate.microsoft.com to ensure that the latest Unicode support package for the supplementary character Input Method Editor (IME) and fonts.
On the taskbar, click Start, and then click Control Panel.
Open Regional and Language Options.
Click the Languages tab and then click Details.
The Text Services and Input Languages dialog box appears.
In Default input language, select your preferred language.
Click Language Bar and then select Show the Language bar on the desktop.
Click OK and then click OK again.
Click OK to close the Regional and Language Options dialog box.
On the Language Bar, click Input Style and then click Properties.
Tip
The Language Bar can often be found docked on the right of the Windows taskbar.
In the Properties for Microsoft IME Standard dialog box, under Input settings, make sure that the option listed for Input method is compatible with the language you selected in step 5.
Click OK.
You can now use Unicode surrogate pairs when working with code files in the Visual Studio Code Editor.