Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing {{ }} just got a lot more cumbersome! ! #2222

Closed
youkei-zzz opened this issue Dec 18, 2022 · 1 comment
Closed

Removing {{ }} just got a lot more cumbersome! ! #2222

youkei-zzz opened this issue Dec 18, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@youkei-zzz
Copy link

1.Although Volar can now automatically add left and right spaces between curly braces, I find it more difficult when I want to remove such {{ | }}. Because now I can't remove paired curly braces due to the left and right added spaces, You can only delete the left side first and then delete the right side, which is really troublesome. If Volar can automatically match the inner and outer curly braces, then I only need to press delete twice, which avoids tedious operations.
image

2.When I don't want the content in {{ xxx }}, if I try to remove all content from the position of the vertical bar (like this {{ xxx |}}), when removing to this case ( {{|}} ) brackets The left and right spaces will be automatically added again, which is not the result I hope

@johnsoncodehk
Copy link
Member

  1. You can ctrl + z twice instead of deleting.
  2. This is a bug, will fix it in the next version.

If you don't want this feature, you can set up "volar.addSpaceBetweenDoubleCurlyBrackets": false in VSCode settings to disable it.

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants