Emmet Scope


I am a bit confused about the scope of emmet for expanding abbreviations in phpStorm.

For example, when I type 'li>a' inside an ul tag, it works fine (<li><a href=""></a></li>). If I type the same between two li tags, it expands to "li><a href=""></a>".

I have checked this at http://docs.emmet.io/actions/expand-abbreviation/ and there it works fine.

I attach a video to explain it better.

Any idea?


Comment actions Permalink

Hi there,

Can you reproduce this in brand new project? It works just fine for me in this file:

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE">
    <link rel="icon" href="/favicon.ico" type="image/ico">

    <li><a href=""></a></li>


1) Please try "File | Invalidate caches..." and restart IDE (if you have not tried this yet)
2) Check idea.log for possible hints (exceptions etc) -- "Help | Show Log in...". Can attach here as well.
3) Try with all 3rd party plugins (non bundled by default) disabled

If nothing -- attach some simple project that reproduces the issue (whole project)

Comment actions Permalink

Thanks a lot, Andriy. It works ok now after running 'invalidate caches'.


Please sign in to leave a comment.