如何强制NetBeans HTML自动完成使用双引号而不是单引号? [英] How to force netbeans html autocompletion to use double quotes instead of single quotes?

查看:253
本文介绍了如何强制NetBeans HTML自动完成使用双引号而不是单引号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是NetBeans 7.3,我喜欢它的自动完成功能。然而,在这个新的7.3版本中,当我键入< script src = 时,它会自动创建两个单引号,如下所示:< script src ='| 。不过,我需要这些引号为双引号:< script src =|

我在配置中处处寻找,并没有找到如何强制NetBeans使用双引号而不是单引号的方法。任何人都知道任何方式或解决方法?感谢您提供任何提示和帮助。

解决方案

我找到了答案。从我所看到的关于错误跟踪器的建议不完全正确。

输入类似于< div class = 现在您的光标应该处于在两个报价或双引号字符之间。您现在可以输入其他类型的引号字符,它会改变您的偏好。


I am using NetBeans 7.3 and I like its autocompletion features. However in this new 7.3 version, when I type <script src= it creates automatically two single quotes like this: <script src='|'. However I need these quotes to be double quotes: <script src="|".

I have looked everywhere in configs and did not find a way how to force NetBeans to use double quotes instead of single ones. Anybody knows any way or workaround ? Thanks in advance for any hints and help.

解决方案

I found the answer by playing with it a bit. From what I've seen the answer suggested on the bug tracker is not exactly correct. The replies there by flangefrog are mine.

Type something like <div class= now your cursor should be in between two quote or double quote characters. You can now type the other type of quote character and it will change your preference.

这篇关于如何强制NetBeans HTML自动完成使用双引号而不是单引号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆