Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emmet on atom not working properly

Hi I'm using Emmet on Atom code editor and it works fine only with the simple tags like meta.

Nevertheless when I try something complex like ul>li*5 or meta[property=""] and then press tab, nothing happens.

Anyone know how to fix this?

like image 383
Ruggero Avatar asked Sep 13 '25 05:09

Ruggero


1 Answers

It happened to me as well, the problem is that the same hotkey(tab) is set to multiple actions, so my solution was to edit the expand action like this.

go to Settings > Packages > Search Emmet... on the keybindings get the last one tab and click on the copy icon

[]<- (something like that)

then go to Edit > Keymap... and copy the next there

'atom-text-editor:not([mini])':
  'ctrl-alt-shift-c': 'emmet:expand-abbreviation'

As the keymap.. overrides all the other keybindings this one will work over all other definitions.

Note: if you use 'tab' as key binding it will only be used for expand-emmet, so you won't be able to actually tab__(2spaces) in HTML, PHP, more... files

HOPE IT HELPS

like image 71
T04435 Avatar answered Sep 15 '25 04:09

T04435