I can not use Snippets in VSCode C #


I am currently working with VSCode together with Unity and C # recently updated VSCode to its latest version and when writing reserved words for functions like for or if , the autocomplete options skip as it normally should, however, to the time to give TAB to activate the snippet of that function is not autocomplete.

The snippets that come by default but the first one that is selected for the cycle for to give TAB does not do anything, just close that popup , if I choose the one below and I give < kbd> TAB then yes the code of this function is displayed, even in third position you can see the snippet that I did to have more comfort when putting snippets like this.

At the same time and below the for you can snippets of foreach and again the icon that I have no idea what it is, but if I give TAB on the alone closes the popup .

They say that a picture is worth a thousand words:

asked by Felix J Maxwell 22.03.2018 в 02:20

1 answer


The problem is that the configuration of the autocomplete is disabled, for default comes "editor.tabCompletion": false .

To change this configuration, you must do the following:

  • Menu File --> Preferences --> Settings .
  • Find property "editor.tabCompletion" and change the value to true .
  • If it is difficult for you to search for the property you can use the search bar above, or in your case, the section on the right shows the section UserSettings and you can write the following:

        "editor.tabCompletion": true
  • Both adjustments get the same result.

    The official documentation can be found at the following link in English .

    answered by 22.03.2018 / 04:42