How can I stop VS code from converting tabs to spaces in a particular file?
18:52 28 Aug 2022

In the VS code editor, the default setting is to replace tabs by spaces, which is what I want. However, this is disastrous in a make file. I have written a make file (named Makefile) but VS code insists on changing tabs to spaces so I get a "Missing Separator" error when I run make.

If I go to File > Preferences > Settings and type @id:editor.insertSpaces in the menu, I see this:

settings, editor: insert spaces, modified elsewhere

When I click on Modified elsewhere I see this:

enter image description here

The second screenshot seems to says that the editor won't insert spaces in a Makefile, but it certainly is. What am I doing wrong, or what have I failed to do?

visual-studio-code makefile