This is the default :
<div class="container"></div>
Is there any setting to let it become
<div class='container'></div>
when you press tab?
Use the String. replace() method to replace double with single quotes, e.g. const replaced = str. replace(/"/g, "'"); . The replace method will return a new string where all occurrences of double quotes are replaced with single quotes.
If you have Settings > Editor > Smart Keys > Insert Pair Quote checked, typing single or double quote inserts a pair of them.
HTML IntelliJ IDEA brings powerful support for HTML that includes syntax and error highlighting, formatting according to the code style, structure validation, code completion, on-the-fly preview during a debugging session (Live Edit) or in the dedicated preview tab in the code editor, and much more.
With IntelliJ IDEA, you can write style definitions in CSS as well as in various languages that compile into it, such as Sass, Less, SCSS, or Stylus. You can also look up documentation for Style Sheets, create and move rulesets, introduce variables, and more.
Editor > Code Style > HTML
I think you might be looking for Code Style Settings.
There is a drop down under "Generated Code" for String literal type: Single Quotes.
Change that.
You may also want to change it for JavaScript as well as Zhe points out, that is in the Punctuation tab.
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