A similar question like this: Javascript is not recognizing a Flask variable
When I type things like this in vscode,
<script type="text/javascript">
var x ={{ data }};
</script>
it will always reformat like this
<script type="text/javascript">
var x = {
{
data
}
};
</script>
No longer a Jinja variable, and cannot really work in js.
So, is there such a plugin in vscode that can fix this problem?