Force Content-Type on files with no Extension in EclipsePDT?

后端 未结 2 682
渐次进展
渐次进展 2021-01-20 09:45

I use Eclipse-PDT to work on my PHP projects and find it inconvenient when Eclipse does not recognize my php files that have no extension. Our project contains many cli/bash

2条回答
  •  抹茶落季
    2021-01-20 09:52

    If I remember correctly, you might be able to do something like this :

    • right-click on the file in the Navigator panel -- or the equivalent you are using
    • choose Open with > Other...
    • In the dialog box that pops-up, you should be able to choose the PHP Editor

    Next time you'll double-click on that file to open it, it should automatically bge opened using the editor you selected earlier.

    But you'll have to do that once for each one of your files, so Eclipse PDT does know for which files which editor it should use...

提交回复
热议问题