The ANSI Colors extension exists since 2020/10/13:
TL;DR
Once installed, you can use the preview button in the top right (just like for Markdown):
Long Version
- Install the ANSI Colors extension.
- Open your ANSI file.
- Use the preview button, or their custom commands to open the ANSI color preview, just like in this screenshot:
- Press
F1
orCTRL/Command + SHIFT + P
(to open the VSCode command interface). - Type “ansi” or “preview” to find the commands.
- Select with Up/Down arrow keys.
- Finally, hit enter.
- NOTE: As you can see, the command interface also shows you
keyboard shortcuts
, if you prefer those.
- Press
More usage and configuration options are explained on the extension page.