ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

CSS Extended Completions

by subhaze ST2/ST3

CSS Completions, LESS Completions, SCSS Completions

Details

  • 0.3.8
  • github.​com
  • github.​com
  • 10 months ago
  • 53 minutes ago
  • 2 years ago

Installs

  • Total 14K
  • Win 8K
  • OS X 4K
  • Linux 2K
Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14
Windows 14 29 29 35 26 15 24 18 36 24 18 26 12 10 18 31 33 26 30 20 10 28 23 32 39 22 17 19 24 33 22 21 18 13 16 27 32 33 20 28 23 20 41 33 37 32
OS X 9 14 14 9 10 9 6 11 15 15 12 17 11 7 10 24 8 10 17 6 8 14 10 17 12 9 11 1 16 17 15 6 18 6 6 10 15 9 12 10 12 11 32 23 32 16
Linux 2 7 5 6 1 3 2 7 8 6 6 6 5 2 4 11 5 4 6 5 2 6 6 3 4 7 4 3 8 8 8 5 2 2 2 3 5 3 3 2 6 4 7 8 10 6

Readme

Source
raw.​githubusercontent.​com

CSS Extended Completions

Sublime Text 2/3


Issue Reporting

Please include the following information when submitting a ticket - Sublime Text version - OS - any related error that you can find in the Sublime Text console (ctrl+) if no related error is found please state that you saw no errors in the console.

This plug-in is beta quality so please file any issues you run into here: https://github.com/subhaze/CSS-Extended/issues?state=open


Features

  • CSS class completions within HTML class attributes (class=“|”) and CSS files
  • ID completions within HTML id attributes (id=“|”) and CSS files
  • LESS variable and mixin completions (with parametric tab-stops)
  • SCSS variable and mixin completions (with parametric tab-stops)
  • element completions within CSS files
  • pseudo selector completions within CSS files
  • font stack completions within the font-family: property
  • a more up-to-date property/value completion list within CSS files
  • parse linked style sheets in HTML files, can be disabled via index_linked_style_sheets setting

Usage

Load Files From Side Bar Menu

You can add files from the side bar, just right click on a folder and select the type of files you'd like to load via CSS Extended Completions > [file type(s)]

This is not a recursive process, so, only the immediate files in the folder are processed, the subfolders are not processed.


Cache On Save

Caches completions on document save.

  • If the document is a .css file (stand alone file) it will add any symbols that are found to the main project index.

  • If the document is a .html/.php/etc… it will parse that file and extract any classes/IDs found within style tags and only show you those completions within that file, plus any from the main project cache.


Loading External Files

You can eager load files from folders outside of your project via load_external_files setting.

Example: "load_external_files": ["/abs/path/to/css/*.css", "/abs/path/to/less/*.less"]


Deleting Cache File

You can delete the cache via the command palette CSS Completions: Delete Cache


Pruning Cache File

You can remove missing/moved files from the cache via the command palette CSS Completions: Prune Cache


Property/Value Completions

property/value completions such as box-sizing, additional font names for font-family, animation, flex-box, etc…


Emmet Support

Emmet support is enabled by default, you just need to add the following to your User Settings:

"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin, text.html.basic"

Don't have Emmet? No problem, you won't have any problems with it being enable by default.
Still want to disable Emmet support? Just set "use_emmet": false in the user's package settings or use the Use Emmet toggle from the menu Preferences > Package Settings > CSS Extended Completions


CSS Completion Examples


Pseudo Selector Completions


Extended Property Value Completions


Class Completions Within Class Attribute


Class Completions Within CSS Scope

LESS Completion Examples


Mixin Completions, with Parametric Mixin Tab Order

SCSS Completion Examples


Mixin Completions, with Parametric Mixin Tab Order