quarto-dev / quarto

Quarto open-source scientific and technical publishing system
https://quarto.org
GNU Affero General Public License v3.0
341 stars 28 forks source link

syntax highlighting and other functions do not work in visual mode but it works in source mode in VScode #354

Open abduazizR opened 10 months ago

abduazizR commented 10 months ago

Hi I have searched in multiple places, but I could not find an answer. I am using Quarto 1.3.450 with VS code remote to WSL2. The issue is that syntax highlight works fine for Quarto in source mode, but once I shift to the visual mode, I lose syntax highlighting.

image

to

image

I also can't use other customized keyboard shortcuts while on Quarto visual mode. For instance, F1 no longer works to get the R help window.

This might be a silly issue, but I really could not find a way to solve it.

Thanks

jjallaire commented 10 months ago

The tokenizer used for syntax highlighting in visual mode is unfortunately different (and worse) than the one in source mode, so there are some differences as you observed. Keyboard shortcuts are also not 100% supported right now.