Control+I in IDE messes up alignment of semicolons in inline Javascript
Posted: Wed Dec 27, 2023 1:18 pm
If I have semicolons at the end of a bunch of javascript lines, like this, selecting all the code and pressing control+I aligns the semicolons like so:
Is this intended? I think not; probably a side effect of comments being a semicolon.
Code: Select all
EnableJS
synth = window.speechSynthesis;
aria = document.createElement("div");
aria.id = "speech" ;
aria.style = "position: absolute; left: 0px; top: -400px";
aria.setAttribute("aria-live", "assertive") ;
document.body.appendChild(aria) ;
DisableJS