The formatting of HTML and Javascript is just crazy. It actively works against you. Does anybody know how to turn this off completely? (I Do not speak about the HTML designer, I speak about what happens when you press ctrl-k,d in HTML view or when you press ; in a javascript block).
In Visual Studio (tested with VS 2010) in order to turn off the html formatting : Tools --> Options --> Text Editor --> HTML --> Formatting --> Tag Specific Options --> Default Settings
Unmark the checkbox in front of Enable ESLint, restart Visual Studio and you are done. If the errors persist, you can open Tools > Options… again, search for JavaScript Errors and disable the setting: Restart again and now Visual Studio will no longer show you any JavaScript errors.
To access this page, on the menu bar, choose Tools > Options, and then expand Text Editor > JavaScript/TypeScript > Formatting. Your computer might show different names or locations for some of the Visual Studio user interface elements in this article.
Options dialog box: Text Editor > JavaScript > Formatting. Use the Formatting page of the Options dialog box to set options for formatting code in the Code Editor. To access this page, on the menu bar, choose Tools > Options, and then expand Text Editor > JavaScript/TypeScript > Formatting.
Javascript formatting can be disabled in Tools → Options → Text Editor → JScript → Formatting.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With