I have tried changing to various fonts in VSCode such as Consolas, Monospace, and many other monospace fonts. In all cases, they display characters incorrectly. Here is an example of how VSCode on Ubuntu display Vietnamese characters with Consolas font:
The highlighted words are the ones that are displayed incorrectly. The diacritical marks on these words are misaligned from their correct positions. Below is the same text displayed correctly with Consolas font in Text Editor, the default text editing software on Ubuntu:
How can I fix this issue?
I have tried using various fonts, and monospace fonts like Consolas display incorrectly in VSCode. However, when I tried using Times New Roman, VSCode displayed the diacritical marks correctly. Unfortunately, this font does not look very good for writing code. Here is an example of how VSCode on Ubuntu display Vietnamese characters with Consolas font: