Emmet Move to next edit point (functionality)?

Have enabled Emmet on Webstorm. Expand an abbreviation with tab works fine but moving to next edit point with cmd-left or similar does not work for me. What have I missed?

6 comments
Comment actions Permalink

Hi there,

Please provide an example:

  • abbreviation used
  • expanded version


In most (simple) cases Emmet abbreviations are implemented via Live Templates (red border around edit point/placeholder). If that is your case then use standard shortcut -- [Enter]

0
Comment actions Permalink

Works like a treat, thanks so much for the reply.

Where should i have looked for this? In preferences Live Tmplates should I be finding keymaps /bindings specific to Emmet?

Thansk again.

P

0
Comment actions Permalink

Please explain what do you mean/need.

Generally speaking:

0
Comment actions Permalink

Sorry if I am not being clear.

In other editors, ST2 for example, the Emmet keybindings are not always the same as indicated in the Emmet docs. Tab or Ctrl -e expands an abbreviation and this is dictated by conflicts and is user editable.

My question is where can i find the key bindings as dictated by Webstorm for Emmet?

There are more than just Tab and Enter I guess?

What about join lines, toggle comment and the rest of the emmet feature set?

Or is this not part of the Webstorm Emmet offering?

Hope this is clearer!

Thanks

P

0
Comment actions Permalink

Not all Emmet features are implemented. Details are here:


Some of the Emmet functionality existed in this IDE for a long time (such actions have different shortcuts obviously), some are only partially implemented .. or implemented in a way that is not compatible with current Emmet (basically, treat it as "not implemented"). Some of the missing functionality can be achieved by installing 3rd party plugins (for example: "Shifter" for increasing values -- works in more languages/contexts than Emmet).

There is no special place where you can see all Emmet features and corresponding shortcuts (due to the above).

Generally speaking: implementation of Emmet features in IDEA products was focused on working with abbreviations (the most requested part) rather than extra editor/wizards(kind-of) functionality (as per first ticket mentioned above).

Abbreviations can be expanded by the shortcut defined in Settings (just search Settings screen (it has such functionality -- top left corner) for "expand") and is limited to one of the predefined 3: Tab, Enter or Space. Although each Live Template can have separate expand key (chosen from the same limited predefined set).

Join Lines has already been in IDE (don't know if it works differently though) -- "Edit | Join Lines (Ctrl+Shift+J)"
Toggle Comment -- works differently to Emmet -- it's just a standard un/comment line. http://youtrack.jetbrains.com/issue/WEB-9779

All configurable shortcuts and list of all available actions can be found/changed in "Settings | Keymap" which has search functionality as well (by both action names and currently assigned shortcuts)

0
Comment actions Permalink

     Generally speaking: implementation of Emmet features in IDEA products was focused on working with abbreviations (the most requested part) rather than extra editor/wizards(kind-of) functionality (as per      first ticket mentioned above).

Great reply thanks.

It makes sense.

If you adopted the entire Emmet plug-in users would end up with two ways of doing stuff: - the first native to the IDE and the second as defined in the Emmet plug-in; which would be senseless duplication. So you adopted the best parts that added functionality - abbreviations -  and not the parts that were already covered.

Apologies if I did not get that sooner.

0

Please sign in to leave a comment.