0

This is a small problem that has been annoying me for some time now. VS Code will not let me type the } symbol. If I type {, it will autocomplete with a closing curly brace, but then if I remove the opening curly brace, the closing brace will also be removed. I have to get around this by copy and pasting the closing brace.

Is there a setting or caused by my formatter? I am using Prettier (Like everyone else who uses VS Code) as my formatter.

Ciaran Crowley
  • 425
  • 1
  • 4
  • 18
  • Why not just type `}`? – kelsny Oct 25 '22 at 13:59
  • 1
    Does this answer your question? [disable automatic curly brace or bracket insertion in vscode](https://stackoverflow.com/questions/46470363/disable-automatic-curly-brace-or-bracket-insertion-in-vscode) – Gino Mempin Oct 25 '22 at 14:01
  • that closing brace `}` shown after typing `{` is not added permanently only when you move the cursor to a different location but backspace or type `}`, if you type `{` and ArrowRight it is put in there permanent, try it with a selection of `({[` opening braces and backspace a few – rioV8 Oct 25 '22 at 14:49

0 Answers0