Open michaelquinn32 opened 3 years ago
I think this would work best as an extra setting (as per getOption
in closebrackets.js
) that provides a test function that, when it is available and returns false when called on the current editor, prevents the closing from happening. We could call it onlyIf
or something. Would you be interested in submitting a pull request like that?
Hi team!
The R language has a system of doxygen headers (see https://github.com/r-lib/roxygen2) where the header is identified by this character combination
#'
. For this combination of characters, I would like autoclosing of quotes to be disabled. That way, I don't need to delete the automatically generated extra character.Expected: I type
#'
and it stays like that. Otherwise, autoclosing quotes behaves the same. Actual: I type#'
and autoclose produces#''
This could be an option for a specific language or a user-defined option. I wouldn't mind disabling that sequence for any language that I'm working in.
Thanks!