How can I configure V.S. Code to auto close brackets?
22:29 14 Jul 2021

V.S. Code: Auto Closing Brackets

    "I would like if V.S. Code automatically closed brackets for me when I insert opening brackets into my code."




EXAMPLE:
    Normally when the Left-Bracket key — i.e. { — is pressed inside of any arbitrary software, asingle left bracket is added to the document, with the cursor positioned to the right of it, as is demonstrated below.

{ |

NOTE: "The | is used to show the position of the cursor."


    When the left-bracket key is pressed, I would perfer that V.S. Code adds a pair of brackets with the cursor positioned between them, as is demonstrated below.

{ | }

NOTE: "The | is used to show the position of the cursor."


javascript vs-code