Home > database >  Files in Folder named "templates" don't apply colors and suggest in VisualStudioCode
Files in Folder named "templates" don't apply colors and suggest in VisualStudioCode

Time:01-20

If I name the folder "templates" or "template", the files in the folder don't apply colors or suggest in VisualStudio Code. 1st image shows when I named the folder "templates", and 2nd one shows when I named the folder "foo" (flutter). I'm not sure but this happens maybe because of a extension that I added? Please tell me how can I avoid this.

named templates enter image description here

This is my setting of files.associations: setting

CodePudding user response:

As indicated by the asker in the comments, the issue is due to file associations. Check your settings.json file to see if you have anything set in the "files.associations" setting that could be causing this. Otherwise, try disabling extensions that aren't needed to see if they are related to the issue. You can also change what file association is being used by clicking the lanugage indicator on the bottom right of the screen that has a "Select Language Mode" hover message. The same action can be done by using the command palette and using the "Change Language Mode" command.

  • Related