IntelliJ: how to force editor to treat a file as javascript?

前端 未结 2 396
清歌不尽
清歌不尽 2021-01-01 09:05

I\'m creating a Grails app in IntelliJ 10 and have a javascript file that is created dynamically, as a Grails view.

For that reason the javascript file doesn\'t end

2条回答
  •  醉话见心
    2021-01-01 09:43

    You can add additional extensions to the JavaScript in Settings (Preferences on Mac) | File Types.

    See also Settings | Template Data Languages where you can configure certain files in the project as templates producing specified language to get proper code completion.

提交回复
热议问题