Say I've got the following line of code and I'm editing it in NetBeans:
$foo = new Bar;
Then I decide I want to replace 'new Bar' with a string instead. So I select |new Bar| with my mouse and then type the " key. Instead of getting:
$foo = ";
I instead get:
$foo = "new Bar";
I find this quite annoying and it does the same thing for the ', {, (, {, and / keys, and probably others as well.
How can I turn this off? I can't find an obvious setting for it in NetBeans 7.0.1 Preferences.
Options - Editor - Code Completion - Disable Insert Closing Brackets Automatically
This also disables immediately entering closing quotes and brackets which you may not have wished for in the first place.
Frankly, it doesn't bother me at all. I remember finding it a bit annoying when I just started using netbeans, but I taught myself pressing delete or backspace every time I want to replace my selection with a character that could otherwise surround it. (And when I actually do want to quote or parenthesise a selection, I find this behaviour coming in quite handy.)
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