Implement something similar to this or more important magic-latex-buffer from emacs.
The mode replaces common symbols in math with their unicode character, i.e., forall changes to ∀. When the cursor is either close or near ∀ it automatically opens back up to forall.
This would make reading math much easier.
Pull request has been made: https://github.com/siegebell/vsc-prettify-symbols-mode/pull/38
I don't know how long this pull request will be merged. @siegebell is usually very busy.
If you want to use this feature you can download the vsix file here: https://github.com/chantisnake/vsc-prettify-symbols-mode/releases/download/v0.4.2/prettify-symbols-mode-0.4.2.vsix
This provides prettify symbols mode version 0.4.2 with latex support.
you can uninstall the original prettify symbol mode and then install this version via the following command:
code --uninstall-extension siegebell.prettify-symbols-mode
code --install-extension prettify-symbols-mode-0.4.2.vsix
NOTICE: latexindent.pl may mess up the prettify symbol.
@chantisnake thanks for the pull request!
By the way, you can override the prettify-symbols substitutions and add new languages by modifying "prettifySymbolsMode.substitutions" in your own vscode settings.
Looking forward to the new release with LaTeX support!
@James-Yu Can we add native support for this without other extensions? I think it's something a lot of people would use
Quite unlikely. I had a peek into the code of pretty symbols extension, and found out that it would be really hard to add such maintenance burden to this extension.
Most helpful comment
@chantisnake thanks for the pull request!
By the way, you can override the prettify-symbols substitutions and add new languages by modifying
"prettifySymbolsMode.substitutions"in your own vscode settings.