I'm currently using Delphi10, and when I have a block of code selected and type and opening parenthesis "(" then instead of Delphi replacing the selected text by the opening parenthesis, it rather keeps the text but adds the opening parenthesis at the start of the selected text and a closing parenthesis at the end of the selected text. But I want it to just delete the selected text and write the "(" I just typed, as if I had typed any other character.
I tried disabling all options in Tools --> Options --> Editor Options --> Code Insight, but the unwanted behavior continues. How do I change this?
That's a feature called smart surround keys. You can control it under key mappings of your editor options.
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