Automatic closing of single and double quotes vscode

0

My vscode does not automatically close the single and double quotation marks. I've already deactivated all extensions, autoclosing is already True, but the problem still persists.

  

vscodeVersion 1.15.0 (1.15.0)

     

MAC osx: Version 10.12.6 (16G29)

     

"publisher." autoClosingBrackets ": true,

    
asked by anonymous 22.08.2017 / 20:11

2 answers

1

Apparently, VSCode does not detect the single quotation mark as the opening character when the Mac keyboard language is set to Brazil - Pro.

The solution is to change the language for Brazil or U.S. through the following steps:

  • In System Preferences > Keyboard, click the plus symbol (+) in the lower left corner
  • Choose your preferred language (US & Canada)
  • Click "Add".
  • Now in the right corner of the status bar, click on the Brazilian flag, and change the keyboard language to the language selected in the previous step.

    It is worth mentioning that in the U.S. language as well as in the Brazilian language, accents are inserted differently, and in order to use them, you only have to activate the following shortcuts:

    • ´ - ⌥ + and
    • ^ - ⌥ + i
    • ˜ - ⌥ + n

    Press the required combination of the desired accent and then the letter you want to accent

        
    18.04.2018 / 05:12
    0

    There is another simple way to do this. Maybe not the ideal answer, but it will help you, I believe. Apparently it works on the Mac too

    It works more or less like this image below. First you select the word (or phrase) that you want, as in the image, and then press only 1x ' > or shift + ' if you want double quotation marks.

    OBS: Just press once VS Code already puts the quotation marks on both sides of the word or phrase. To select the word quickly just click 2x on it.

    (doesnotworkwithasterisks,justanexample,butwiththequotationmarksworking)

    Here'sthelinktothisissuerightintheOfficialGitHubofVSCode-issues26820therearemoredetailsthatyoumaybeinterestedin. link

        
    18.04.2018 / 14:18