dan-lee
dan-lee

Reputation: 14502

PhpStorm open external file in project with inspection and highlighting

This might be a minor issue, but I often have to fight with it.

I have many files without extension outside my project folder and I want to open these files as PHP files. Meaning the indentation, syntax-highlighting and completions is correct.
I haven't yet found a setting where I can force a file without extension to be treated as PHP file.

Anybody able to help?

Upvotes: 0

Views: 492

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 402493

Adding an empty extension for PHP files in Settings | File Types may help, but it may be dangerous as all the files without extension will be treated as PHP files.

Upvotes: 1

Related Questions