Guest User

Emmet Preferences

a guest
Mar 5th, 2014
3,048
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     // Copy any modified settings to `User/Emmet.sublime-settings`
  3.     // otherwise modifications will not survive updates.
  4.  
  5.     // Path to folder where Emmet should look for extensions
  6.     // http://docs.emmet.io/customization/
  7.     "extensions_path": "~/emmet",
  8.  
  9.     // Disable completions of HTML attributes
  10.     // with this option disabled, you can get attribute list completions
  11.     // inside opening HTML tags.
  12.     // WARNING: with this option disabled, Tab key expander will not
  13.     // work inside opening HTML attributes
  14.     "disable_completions": false,
  15.  
  16.     // With this option enabled, all Emmet's CSS snippets
  17.     // will be available in standard auto-complete popup
  18.     "show_css_completions": true,
  19.  
  20.     // List of scopes where Emmet CSS completions should be available
  21.     "css_completions_scope": "source.css - meta.selector.css - meta.property-value.css, source.scss - meta.selector.scss - meta.property-value.scss, source.less - meta.selector.css - meta.property-value.css",
  22.  
  23.     // Remove default HTML tag completions on plugin start
  24.     // You should restart editor after changing this option
  25.     "remove_html_completions": false,
  26.  
  27.     // A comma-separated list of scopes where Emmet’s Tab key
  28.     // abbreviation expander should be disabled  
  29.     "disable_tab_abbreviations_for_scopes": "",
  30.  
  31.     // A regexp for scope name: if it matches, Tab handler won’t work
  32.     // The reason to use this preference is that ST2 has buggy scope matcher
  33.     // which may still trigger Tab handler even if it's restricted by context
  34.     "disable_tab_abbreviations_for_regexp": "source\\.(?!css).+?\\stext\\.html",
  35.  
  36.     // Exit tabstop mode when enter key is pressed
  37.     "clear_fields_on_enter_key": true,
  38.  
  39.     // A comma-separated list of disabled action names.
  40.     // Listed action will not be triggered by default keyboard
  41.     // shortcut.
  42.     // Use "all" value to disable all shortcuts at once
  43.     "disabled_keymap_actions": "",
  44.  
  45.     // By default, Emmet overrides Tab key to effectively expand abbreviations.
  46.     // The downside of this approach is that you can’t expand regular ST2
  47.     // snippets (like `php`). Since it’s not currently possible to get a list
  48.     // of ST2 snippets via API, you can provide a list of scopes where Emmet’s
  49.     // Tab trigger should be disabled when expanding simple abbreviation.
  50.     // If entered abbreviation (like `php`) wasn’t found in Emmet snippets list
  51.     // or "known_html_tags" preference, Tab handler will not be triggered.
  52.     // Leave this setting blank to disable this feature
  53.     "disabled_single_snippet_for_scopes": "text.html",
  54.  
  55.     // A space-separated list of single snippets that should be
  56.     // forcilbly disabled (not handled) for Emmet even if it
  57.     // has such abbreviation.
  58.     // This option is useful if you wish the enumerated snippets
  59.     // should be handled by Sublime Text.
  60.     // Example value: "script style html"
  61.     "disabled_single_snippets": "",
  62.  
  63.     // A space separated list of all known HTML tags,
  64.     // used together with "disabled_on_single_snippets" option
  65.     "known_html_tags": "html head title base link meta style script noscript body section nav article aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr pre blockquote ol ul li dl dt dd figure figcaption div a em strong small s cite q dfn abbr data time code var samp kbd sub sup i b u mark ruby rt rp bdi bdo span br wbr ins del img iframe embed object param video audio source track canvas map area svg math table caption colgroup col tbody thead tfoot tr td th form fieldset legend label input button select datalist optgroup option textarea keygen output progress meter details summary command menu",
  66.  
  67.     "empty_elements": "area base basefont br col frame hr img input isindex link meta param embed",
  68.  
  69.     // If set to `true`, Emmet will automatically insert final tabstop
  70.     // at the end of expanded abbreviation
  71.     "insert_final_tabstop": false,
  72.  
  73.     // Try to automatically detect XHTML dialect in HTML documents.
  74.     // With this option enabled, your custom profile for HTML documents may not work.
  75.     "autodetect_xhtml": true,
  76.  
  77.     // Use old Tab handler to expand abbreviations.
  78.     // With this option enabled, editor may better handle Tab key
  79.     // (especially with other plugins that overrides Tab key),
  80.     // but will spit "slow plugin" message
  81.     "use_old_tab_handler": false,
  82.  
  83.     ///////////////////////////////
  84.     // Emmet customization
  85.     // Each section has the same meaning as the same-named JSON file
  86.     // described here:
  87.     // http://docs.emmet.io/customization/
  88.     ///////////////////////////////
  89.  
  90.  
  91.     // Custom snippets definitions, as per https://github.com/emmetio/emmet/blob/master/snippets.json
  92.     "snippets": {
  93.         // "html": {
  94.         //  "abbreviations": {
  95.         //      "example": "<div class='example' title='Custom element example'>"
  96.         //  }
  97.         // }
  98.     },
  99.  
  100.     // Emmet preferences
  101.     // List of all available preferences:
  102.     // http://docs.emmet.io/customization/preferences/
  103.     "preferences": {
  104.         "filter.commentAfter": "<!-- /<%= attr(\"id\", \"#\") %><%= attr(\"class\", \".\") %> -->"
  105.     },
  106.  
  107.     // Output profiles for syntaxes
  108.     // http://docs.emmet.io/customization/syntax-profiles/
  109.     "syntaxProfiles": {
  110.         // Enable XHTML dialect for HTML syntax
  111.         // "html": "xhtml"
  112.         "html" : {
  113.             "filters" : "html, c"
  114.         }
  115.     }
  116. }
Advertisement
Add Comment
Please, Sign In to add comment