vscode-matlab icon indicating copy to clipboard operation
vscode-matlab copied to clipboard

Auto closing quote when using the transpose .'

Open rick3rt opened this issue 5 years ago • 3 comments

Hi, great extension! I have one minor issue, when using the transpose .'. This normally is getting auto closed to .''. VS Code has the option to set autoClosingQuotes to beforeWhitespace, meaning that it will only autoclose quotes when there is a whitespace in front of the quote.

However, I think the . is recognized as whitespace, so this does not work. Alternatively I can set autoClosingQuotes to never specifically for Matlab:

{
    "[matlab]": {
        "editor.autoClosingQuotes": "never"
    }
}

Is there another way to still have autoclosing quotes, but not autoclose them when there is a . in front of the '?

rick3rt avatar Jul 08 '19 19:07 rick3rt

Good issue suggested. I have a similar issue that when using .', the extension seems to assume the quote mark as boundary of string, which is not, while this not happen when using ' to transpose (conjugate) only. So I suggest that this is a little uneasy in vision and should be revised.

Monrother avatar Aug 13 '19 08:08 Monrother

Does this issue solved?

ghost avatar Feb 27 '20 14:02 ghost

Unfortunately I think there's no way to really fix this issue for now. Either we lose the autoclosing quotes completely or we have this annoyance for the transpose. I'll continue to check for options, but I see none for now.

Gimly avatar Mar 02 '20 20:03 Gimly