Vscode使用SSH连接ubuntu18云主机编写Makefile文件make工程的时候报错
Makefile:2: *** missing separator. Stop.
去Overflow找到错误原因:
You need a real tab instead of space in front of g++ and rm commands. If still fails then your editor is inserting spaces instead, even if you’re hitting the tab key on your keyboard. You need to configure your editor to insert hard tabs (09 in ASCII) instead.
意思就是默认条件下,VS Code是使用空格来标记Tab的,需要在设置里设置成制表符
打开Vscode左下角的设置
搜索Tab:
取消红框的勾选项,其它默认不变
此时make一下工程就可以正常生成了