Replies: 2 comments 5 replies
-
Quarto relies on specific language extensions to format code. @jjallaire might be the best to answer here. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is frustrating for me as well, I wish it would work better. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Has any worked out how to get vscode formatting tools to work with Quarto and ojs chunks? For example if I have the following in my settings:
I can format this javascript code if it is in a javascript file:

If I try to add a formatter to quarto like so:
I get the following error message when I try to format the same code but within an ojs chunk with a qmd:

If I click "Configure..." and then choose quarto as the default it automatically changes the setting to:
and the code in the ojs chunk isn't formatted nicely. Has anyone else encountered this for ojs chunks? Formatting code this way works out of the box for python and R (at least for general formatting) but I am having trouble making it work for ojs chunks. Just posting in case anyone has encounted this before.
Beta Was this translation helpful? Give feedback.
All reactions