1

I have the following JS in vscode:

let page = document.getElementById("page");

$$$$<h1 style="text-align:center">[this.courseNum] : [this.name]</h1>

let hr = document.createElement("hr");
/// more Vanilla JS code...

I'd like to be able to turn off the formatting for that weird JS/HTML mixture above; the line preceded by $$$$. Is there anyway to turn off formatting for a line preceded by a series of characters (such as the @formatter: off tag that Eclipse uses?). Or, more generally, is there a way to turn off the formatter for certain regions in a file?

Jared H.
  • 101
  • 1
  • 8

0 Answers0