Unexpected 'INDENT' in CoffeeScript Example Code

后端 未结 6 1213
悲哀的现实
悲哀的现实 2020-12-15 17:21

As I was playing around for the first time with CoffeeScript, I ran in to a problem. In order to debug my problem, I tried replacing my whole file with one of the example b

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-15 17:48

    If you are using a JetBrains IDE (IntelliJ, PHPStorm, etc) the change of setting that worked for me is:

    File > Settings > Project Settings > Code Style > CoffeeScript > Tabs and Indents

    Tick "Use tab character" & "Smart tabs"

提交回复
热议问题