1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

VSCodeでMakefileを編集するときにTab文字が入力されるようにする

Posted at

はじめに

MakefileをVSCodeで編集した後に、makeコマンドを実行すると以下のエラーが出ました。

Makefile:6: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.

VSCode上でTab文字がスペースに置き換わっていることが原因です。

解決方法

  • Windows:Ctrl + Shif + P ,(Mac command + shit + P)でコマンドパレットを開きます
  • Preferences: Open Settings(JSON)を選択します
    image.png
  • settings.jsonを以下のように編集します
 {
    "[makefile]": {
        "editor.insertSpaces": false,
        "editor.detectIndentation": false
    },
}

参考記事

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?