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

Sassy Comments

by danieldafoe ALL

Intuitive Sass commenting for Sublime Text 2/3.

Details

  • 1.0.0
  • github.​com
  • 9 years ago
  • 2 hours ago
  • 9 years ago

Installs

  • Total 5K
  • Win 3K
  • Mac 1K
  • Linux 579
Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sassy Comments for Sublime Text

Commenting should be intuitive. When you comment code, you shouldn't have to type out some convoluted trigger. You should be able to use one hand to quickly access the type of comment you want, and apply it instantly.

This is what I envisioned for a Sublime package, and what I set out to create. I hope you enjoy it.

Although Sass was the reason for this package, technically these comments will work for any language that supports single line comments with //. (Hint: There's a lot of them.)

This package is forked from https://github.com/chrisborrowdale/Idiomatic-CSS-Comments-Snippets.

Install

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

Usage

There are several shortcuts for the different comment blocks.

Section Comment

Enter the shortcut //// followed by the tab key

// ==========================================================================
// This is a section comment block
// ==========================================================================

Sub-Section Comment

Enter the shortcut ///. followed by the tab key

//
// This is a sub-section comment block
// --------------------------------------------------------------------------

Todo List Comment

Enter the shortcut //, followed by the tab key

//
// TODO
//
// => This is a TODO comment block

Long Comment

Enter the shortcut /// followed by the tab key

//
// This is a longer comment block
//

Basic Comment

Since, by default, it only takes 2 keystrokes to form a basic comment, it was not necessary to have a snippet for this.