Javascript comment formatting
No autoformatting via Ctrl + Alt + L, look like XML problem was also
// Separate method just for running the scripts
executeEmbeddedScripts(tempDiv) {
const scripts = tempDiv.querySelectorAll('script');
scripts.forEach(script => {
Please sign in to leave a comment.
Unfortunately, it’s not quite clear what the problem is. Can you please describe it in more detail? Could you specify the expected vs actual results? Also, what does it have to do with XML?
1. Before formatting
2. After formatting, comment not indented
I checked XML, I was wrong, comments indenting workinf well there
Kindly verify that the option Keep when reformatting > Comment at first column is disabled in Settings | Editor | Code Style | JavaScript | Wrapping and Braces.
Uncheck it, working well, thanks
Glad to hear it helped.