Emmet Scope

Hi,

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?

Thanks



Attachment(s):
problem-emmet.mp4
2 comments
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">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE">
    <title></title>
    <link rel="icon" href="/favicon.ico" type="image/ico">
</head>
<body>
<header></header>

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


<footer></footer>
</body>
</html>


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)

0
Comment actions Permalink

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

0

Please sign in to leave a comment.