HTML autocomplete brackets instead of quotes
已回答
Hello,
I just upgraded my copy of PyCharm. Now, whenever I insert HTML code, it is autocompleting with brackets ({}) instead of quotes ("").
For example, if I type <div class= it will add in a pair of brackets, not quotes like it did before the update.
Is there a way to change this?
请先登录再写评论。
Hi Dtn31! Which PyCharm version are you using? Could you please create a ticket in our bug tracker and attach there your settings from File | Export Settings?
PyCharm 2017.2.3
Build #PY-172.3968.37, built on September 1, 2017
Licensed to Dustin Neighly
Subscription is active until August 27, 2018
For educational use only.
JRE: 1.8.0_152-release-915-b11 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13
I will create a bug ticket now.
I am having the same issue with IntelliJ. I tried uninstalling IntelliJ all together, deleting old config, and it worked correctly with quotes for about a week. Now it is using brackets again. Not sure what is causing it.
Best option I can find for now is to disable Add quotes for attribute value on typing '=' and attribute completion in File | Settings | Editor | General | Smart Keys
If I disable quotes in File | Settings | Editor | Code Style | HTML | Generated quote marks it makes no difference, the brackets still show up.
I just noticed something else if I start to type something like `<div cla` and I select "class" from the dropdown auto suggestions when it adds class to the html element it does use double quotes correctly. However, if I type out the entire word "class" and add the "=" then it adds "{}" after it.
I can't find that issue on youtrack.jetbrains.com, can someone link it here? I'm using Webstorm and having this issue from few days.
Found solution here:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000607530-HTML-attribute-completion-using-curly-brackets?input_string=HTML%20autocomplete%20brackets%20instead%20of%20quotes