idea-nginx
idea-nginx copied to clipboard
Plugin treats all files as nginx configuration files
With the plugin enabled, all files in my project, no matter the file extension (e.g. php files, xml files) are treated as nginx config files. They all have the small green "G" icon next to them, and are parsed in the editor as though they were nginx config files.
IntelliJ 13.1.5, OSX 10.9
Hey @mindhaq to fix this (in webstorm anyways) go to:
preferences -> Editor -> filetypes -> select nginx -> change the pattern to *.conf
Note that this will result in changed syntax highlighting for other *.conf
files. The default *.conf
handler is set to SmartyConfig. Although most of us will not need it, it is still a problem. Many, many different configuration files use the generic *.conf
extension.
I started using *.ngx
for my nginx configuration files. This fixes the issue forever and does not collide with any known file extension.
I've had limited success with this workaround. It seems to work for a while, but some unknown trigger makes many of the files in the project within a couple folders of root seem like nginx files again.
Love to know how to fix this, and whether this is a nginx plugin problem or a Webstorm 10 problem. I have noticed the plugin sets the default file extension to null (''). Wondering if this is what triggers the unwanted 'reset'.
The only way I've discovered to fix the problem is to change the nginx file type extension again. A bit of a pain.
Is anyone maintaining this plugin, or are we on our own to fork it and fix it?
sorry this is not working on the intellij idea 15.0.5 .can you fix it .when I install it .nothing happened.just not installed.