ijy / Idiomatic-CSS-Comments-Snippets

Idiomatic CSS style comments for Sublime Text. Comment format based on Idiomatic CSS by Nicolas Gallagher (https://github.com/necolas/idiomatic-css)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Idiomatic CSS Style Comments for Sublime Text

Idiomatic CSS style comments for Sublime Text. Comment format based on Idiomatic CSS by Nicolas Gallagher (https://github.com/necolas/idiomatic-css)

Install

You can install via the Sublime Text Package Control (http://wbond.net/sublime_packages/package_control) and search for Idiomatic CSS Comments.

Usage

There are several shortcuts for the different comment blocks.

Basic Comment

/* This is a basic comment */

'com-basic' + tab

Section Comment

/* ==========================================================================
   This is a Section Comment
   ========================================================================== */

'com-section' + tab

Sub-Section Comment

/* ==========================================================================
   This is a Sub-Section Comment
   ========================================================================== */

'com-sub' + tab

Long Comment

/**
 * Short description using Doxygen-style comment format
 *
 * The first sentence of the long description starts here and continues on this
 * line for a while finally concluding here at the end of this paragraph.
 *
 * The long description is ideal for more detailed explanations and
 * documentation. It can include example HTML, URLs, or any other information
 * that is deemed necessary or useful.
 *
 * @tag This is a tag named 'tag'
 *
 * TODO: This is a todo statement that describes an atomic task to be completed
 *   at a later date. It wraps after 80 characters and following lines are
 *   indented by 2 spaces.
 */

Todo List Comment

/**
 * TODO:
 *
 * => Write some code
 * => Make some lists
 *
 */

About

Idiomatic CSS style comments for Sublime Text. Comment format based on Idiomatic CSS by Nicolas Gallagher (https://github.com/necolas/idiomatic-css)

License:Apache License 2.0