Code Completion source
hi is there a whay do define some directories where the completion always loo up ?
for example on css class completion
i got a html template:
<div id="" ></div>
when i try to autocomplete the class nothing happens because intellij doesnt know that the css file will be include later by php.
in this situation:
<link rel="stylesheet" href="../../../../ppd_resource/Resources/Public/Stylesheets/_base.css" type="text/css" media="screen" />
<div id="" ></div>
all seems fine and completion works.
i hope someone can help on this.
regards flo
请先登录再写评论。
Hello, Florian
Does it occurs in *.php file? Then it is a bug, because for template files (.php, .jsp, etc) we look for candidate CSS classes in ALL files (not only linked by the link tag)
no, its an html file that get parsed later...
if i rename the file to *.php its the same, no completion.
It's really strange. For php file it should be OK (of course, if php plugin is enabled). You have php code in html file? Then it makes sense to assign HTML extension to PHP file type ( File | Settings | File types ). If such completion doesn't work even in php files, please create an issue in our bugtracker