• This repository has been archived on 13/Mar/2023
  • Stars
    star
    767
  • Rank 59,242 (Top 2 %)
  • Language
    CoffeeScript
  • License
    MIT License
  • Created over 11 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Emmet support for Atom

Emmet plugin Atom editor

Emmet support for Atom.

Installation

  • In Atom, open Preferences (Settings on Windows)
  • Go to Install section
  • Search for Emmet package. Once it found, click Install button to install package.

Manual installation

You can install the latest Emmet version manually from console:

cd ~/.atom/packages
git clone https://github.com/emmetio/emmet-atom
cd emmet-atom
npm install

Then restart Atom editor.

Features:

  • Expand abbreviations by Tab key.
  • Multiple cursor support: most Emmet actions like Expand Abbreviation, Wrap with Abbreviation, Update Tag can run in multi-cursor mode.
  • Interactive actions (Interactive Expand Abbreviation, Wrap With Abbreviation, Update Tag) allows you to preview result real-time as you type.
  • Better tabstops in generated content: when abbreviation expanded, hit Tab key to quickly traverse between important code points.
  • Emmet v1.1 core.

Please report any problems at issue tracker.

Tab key

Currently, Emmet expands abbreviations by Tab key only for HTML, CSS, Sass/SCSS and LESS syntaxes. Tab handler scope is limited because it overrides default snippets.

If you want to make Emmet expand abbreviations with Tab key for other syntaxes, you can do the following:

  1. Use Open Your Keymap menu item to open your custom keymap.cson file.
  2. Add the following section into it:
'atom-text-editor[data-grammar="YOUR GRAMMAR HERE"]:not([mini])':
    'tab': 'emmet:expand-abbreviation-with-tab'

Replace YOUR GRAMMAR HERE with actual grammar attribute value. The easiest way to get grammar name of currently opened editor is to open DevTools and find corresponding <atom-text-editor> element: it will contain data-grammar attribute with value you need. For example, for HTML syntax it’s a text html basic.

You can add as many sections as you like for different syntaxes. Note that default snippets will no longer work, but you can add your own snippets in Emmet.

Default Keybindings

You can change these in Preferences > Keybindings.

Command Darwin Linux/Windows
Expand Abbreviation tab or shift + ⌘ + e tab or ctrl + e
Expand Abbreviation (interactive) alt + ⌘ + enter ctrl + alt + enter
Wrap with Abbreviation ctrl + w ctrl + alt + w
Balance (outward) ctrl + d ctrl + shift + e
Balance (inward) alt + d ctrl + shift + 0
Go to Matching Pair ctrl + alt + j ctrl + alt + j
Next Edit Point ctrl + β†’ ctrl + alt + β†’
Previous Edit Point ctrl + ← ctrl + alt + ←
Select Next Item ctrl + shift + β†’ ctrl + shift + .
Select Previous Item ctrl + shift + ← ctrl + shift + ,
Toggle Comment ⌘ + / ctrl + shift + /
Split/Join Tag shift + ⌘ + j ctrl + shift + `
Remove Tag ⌘ + ' ctrl + shift + ;
Evaluate Math Expression shift + ⌘ + y ctrl + shift + y
Increment Number by 0.1 ctrl + alt + ↑ alt + ↑
Decrement Number by 0.1 ctrl + alt + ↓ alt + ↓
Increment Number by 1 ctrl + alt + ⌘ + ↑ ctrl + ↑
Decrement Number by 1 ctrl + alt + ⌘ + ↓ ctrl + ↓
Increment Number by 10 ctrl + alt + ⌘ + shift + ↑ shift + alt + ↑
Decrement Number by 10 ctrl + alt + ⌘ + shift + ↓ shift + alt + ↓
Reflect CSS value shift + ⌘ + r ctrl + shift + r
Update Image Size ctrl + i ctrl + u
Encode/Decode image to data:URL ctrl + shift + i ctrl + '
Update Tag ctrl + shift + u ctrl + shift + '
Merge Lines shift + ⌘ + m ctrl + shift + m

All actions and their keyboard shortcuts are available under Packages > Emmet menu item.

Extensions support

You can easily extend Emmet with new actions and filters or customize existing ones. In Preferences > Emmet, set Extensions path to folder with Emmet extensions. By default, it’s ~/emmet, e.g. emmet folder in your system HOME folder.

More Repositories

1

emmet

The essential toolkit for web-developers
TypeScript
4,431
star
2

pyv8-binaries

Archive of pre-compiled PyV8 binaries
710
star
3

brackets-emmet

Emmet plugin for Brackets editor
JavaScript
485
star
4

emmet-eclipse

Emmet for Eclipse
JavaScript
343
star
5

emmet-docs

Emmet Docs & Tutorials
JavaScript
270
star
6

livestyle-sublime-old

Live bi-directional CSS edit of new generation
Python
260
star
7

sublime-text-plugin

The essential toolkit for web-developers
Python
253
star
8

sublime-tern

TernJS plugin for Sublime Text
JavaScript
222
star
9

Emmet.codaplugin

Emmet plugin for Coda
JavaScript
206
star
10

re-view

A Google Chrome extension for displaying responsive breakpoints view
JavaScript
204
star
11

codemirror

Emmet plugin for CodeMirror online editor
JavaScript
160
star
12

livestyle-web

Emmet LiveStyle web-site
CSS
120
star
13

textarea

Emmet plugin for <textarea>
JavaScript
119
star
14

Emmet.tmplugin

Emmet plugin for TextMate
JavaScript
97
star
15

dreamweaver

Emmet for Dreamweaver
JavaScript
85
star
16

snippets

Emmet HTML snippets
JavaScript
71
star
17

codemirror-plugin

Emmet plugin for CodeMirror web editor
TypeScript
69
star
18

Emmet.sugar

Emmet plugin for Espresso editor
JavaScript
58
star
19

atom-plugin

Experimental Atom plugin for new Emmet
JavaScript
48
star
20

emmet-objc

Objective-C to JavaScript binding of Emmet
JavaScript
48
star
21

py-emmet

Emmet abbreviation parser and expander, implemented in Python
Python
39
star
22

expand-abbreviation

Reference implementation of Emmet abbreviation expander
JavaScript
35
star
23

codemirror6-plugin

WIP Plugin for CodeMirror 6
TypeScript
34
star
24

nova-plugin

Emmet plugin for Panic’s Nova editor
TypeScript
26
star
25

web

Project web-site
JavaScript
19
star
26

pspad

Emmet plugin for PSPad
JavaScript
16
star
27

re-view-chrome

Emmet Re:view 2 extension for Google Chrome
JavaScript
15
star
28

textmate2

Emmet plugin for TextMate 2
8
star
29

math-expression

Parse & evaluate simple math expressions
TypeScript
8
star
30

abbreviation

Emmet standalone abbreviation parser (WIP)
JavaScript
8
star
31

monaco-plugin

Emmet for Monaco editor
TypeScript
5
star
32

html-transform

Prepares given Emmet abbreviation for HTML output
JavaScript
4
star
33

extract-abbreviation

Extracts Emmet abbreviation from string
JavaScript
4
star
34

html-matcher

Matches HTML/XML tag pairs in source code
TypeScript
4
star
35

markup-formatters

Outputs parsed Emmet abbreviation as markup (HTML, HAML, Slim, Pug etc.)
JavaScript
4
star
36

css-parser

CSS/LESS/SCSS fast and minimalistic parser
JavaScript
4
star
37

Emmetoss

Extended snippets for Emmet toolkit
3
star
38

lorem

Transforms parsed Emmet abbreviation node into Lorem Ipsum stub text
JavaScript
2
star
39

xml-diff

Diff and patch contents of XML documents
TypeScript
2
star
40

string-stream

String stream reader, used in many Emmet projects to parse strings
JavaScript
2
star
41

snippets-registry

JavaScript module for storing and retrieving Emmet snippets
JavaScript
2
star
42

stream-reader

Reads text as stream
JavaScript
2
star
43

action-utils

Utilities for Emmet actions
TypeScript
1
star
44

css-snippets-resolver

Resolves CSS snippets for parsed Emmet abbreviation
JavaScript
1
star
45

re-view-web

Emmet Re:view web-site
CSS
1
star
46

css-abbreviation

Emmet CSS abbreviation parser
JavaScript
1
star
47

css-matcher

Fast and small CSS/LESS/SCSS matcher
TypeScript
1
star
48

stylesheet-analyzer

Implementation of LESS and SCSS preprocessors, used for in-editor code analysis
JavaScript
1
star
49

lodash

A private copy of Lo-Dash lib, without template() method
JavaScript
1
star
50

field-parser

Fields (tab-stops) parser
JavaScript
1
star
51

stream-reader-utils

Common utility methods for stream reader
JavaScript
1
star
52

implicit-tag

Resolves best matching child tag name for given parent name
JavaScript
1
star