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

3 comments
Comment actions Permalink

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)

0
Comment actions Permalink

no, its an html file that get parsed later...
if i rename the file to *.php its the same, no completion.

0
Comment actions Permalink

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

0

Please sign in to leave a comment.