Suppose I have the piece of text (hello world). How can electric pair be made to work such that deleting the opening parenthesis automatically deletes the closing parenthesis? Some examples (the vertical bar shows cursor location, after which "backspace" is pressed):

(|hello world) => |hello world
{|foobar();} => |foobar();
void buz(void){|
  return 0;
void buz(void)|
  return 0;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.