- Instant help with your Developer coding problems

Associate file type in VS Code

Question:
How to associate file type in VS Code?
Answer:
CTRL + K M

// Then select 

Configure File Association for .xyz
Description:

In such cases when you use a file with an unknown extension or the automatic detection is not correct in VS Code use the following technique.

  1. Open the file in the editor.
  2. Use the CTRL + K M keyboard shortcut.
  3. Select the Configure File Association for ... option from the list.
  4. Select the language type you want to associate with this file extension.
Share "How to associate file type in VS Code?"