问题
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.
回答1:
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.
回答2:
I'm not sure where is the problem because the autocomplete works out the <script src="|"
for me with double quotes. Maybe it's an issue with your OS, which one are u using? I'm using Windows 7 atm.
Btw mine NetBeans are fresh install (7.3 version) - so maybe if u try reinstall it will work the same way as it works for me.
I would also check if u are really writing it there in new html file there not xhtml or something else.. even if I tried xhtml it still gives me the "" not single ones.
Hope this answer might help a little. If I could I would make it an comment...
回答3:
You can download and install the previous version, if 7.3 version does not crucially outshine the 7.2 version.)
https://netbeans.org/community/releases/72/
Also, consider checking the solution that one coder occasionally found when addressing a similar issue (Linux platform too).
https://netbeans.org/bugzilla/show_bug.cgi?id=228535 (see bottom of the screen)
来源:https://stackoverflow.com/questions/16263616/how-to-force-netbeans-html-autocompletion-to-use-double-quotes-instead-of-single