Codesandbox-client: Emmet

Created on 22 Oct 2018  路  9Comments  路  Source: codesandbox/codesandbox-client

馃寛 Feature

An emmet implementation would be nice for writing static assets



Most helpful comment

For anyone that comes across this googling why it's not working in .js files. You will need to rename them to .jsx

All 9 comments

Just deployed Emmet support in JSX, is this what you were looking for? 馃槃

1) I dont know if that is supposed to work, but it doesn't seems to work

2) Emmet is more important when developping static assets;
in css: writing br:nr is way faster that background-repeat: no-repeat; so... more productive
in html .class is faster than


of course that translate to JSX

Since Codesandbox is build around Monaco, I'v found that script... i dont know if that works
https://github.com/hstarorg/emmet-monaco

For the CodeMirror version there is an official version
https://github.com/emmetio/codemirror

It should show as an autocompletion, like here:
image. Does that happen for you? Maybe it works after clearing caches.

Cool, i've made test, it seems to work in JSX (unfortunatly for some), LESS, CSS, .....but not in HTML (! -> tab should bring a template)

Related to #194

Nice to see Emmet working, so it does work on certain files? Can someone post a working codesandbox with emmet working? I would love to try out emmet, never used it before.

Thanks!

Anyone solve problem of using Emmet in html files. When you want to type a.class-name*3 the tab does not work. It works for JSX files, but not .html.

Hey!

I am gonna close so we can keep track in an issue specifically for this: https://github.com/CompuIves/codesandbox-client/issues/1476

I commented to bring it up

how to use emmet in codesandbox ???'

For anyone that comes across this googling why it's not working in .js files. You will need to rename them to .jsx

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CompuIves picture CompuIves  路  26Comments

Enjoy2Live picture Enjoy2Live  路  20Comments

MichMich picture MichMich  路  35Comments

bcbrian picture bcbrian  路  33Comments

Nico-L picture Nico-L  路  21Comments