question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[html] Improve `html.autoCreateQuotes` to handle manually typed quotes

See original GitHub issue

Open a HTML file and type character-by-character (without looking at the screen):

  • <div class="asd">
  • observe that you end up with
  • <div class=""asd"></div>

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:9
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
tschaubcommented, Feb 14, 2022

I can confirm that disabling the HTML: Auto Create Quotes setting makes this problem go away (VSCode 1.64.2).

1reaction
eric-burelcommented, Sep 9, 2022

The html.autoCreateQuotes is about auto inserting quotes, so you would no longer have to type them and you would no longer type quotes once you got used to the feature.

Adding code to swallow the quotes is difficult given that the feature is implemented by the extension.

I feel like the insertion is slower than the typing, which leads to confusion. Quotes ends up being added while you started writing them. I’ve disabled this setting as I am used to add quotes manually with JSX.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automatic double quotes after '=' in Visual Studio Code when ...
Search for html.autoCreateQuotes and disable it. Then you'll have to type the opening quote manually and it will work with single quote too....
Read more >
Quoting in HTML: Quotations, Citations, and Blockquotes
It's all too common to see the incorrect HTML used for quotes in markup. In this article, let's dig into all this, looking...
Read more >
January 2022 (version 1.64) - Visual Studio Code
When typing = after a property in HTML, the language service now automatically inserts quotes and places the cursor between the quotes.
Read more >
Switching to single quotes for attribute completions in html
Use the " HTML › Completion: Attribute Default Value" setting to control if VS Code uses single or double quotes when completing html...
Read more >
How to build a random quote generator with JavaScript and ...
Drag the folder into Sublime Text. Now it shows up on the sidebar menu. Most web project consist of at least one HTML,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found