Open
Description
Generally, on type formatting is used to autocomplete code as the developer types specific characters. However, there are also use cases for doing similar operations on deletions.
For example, when doing string interpolation in Ruby, we are currently closing brace automatically using on type formatting (from "#{"
to "#{}"
), but we'd also be interested in removing that closing brace in case the user deletes the opening one with backspace (from "#{}"
to "#"
). There are other use cases involving end
tokens and pipes too.
Is it possible to trigger on type formatting on backspace? And if so, what's the trigger character?