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

Licence Snippets

by sijk ST2/ST3

Open source licence snippets for Sublime Text

Labels snippets

Details

  • 2015.01.12.14.45.33
  • github.​com
  • github.​com
  • 3 years ago
  • 1 hour ago
  • 5 years ago

Installs

  • Total 3K
  • Win 1K
  • OS X 960
  • Linux 891
Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3
Windows 0 1 1 1 1 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 2 0 1 3 0 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0
OS X 1 0 0 1 0 0 1 0 0 0 1 0 0 0 1 1 0 0 2 0 0 0 0 1 1 0 1 1 0 0 0 0 1 0 0 3 0 0 0 2 0 0 0 0 0 0
Linux 1 0 1 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 1 1 0 2 0 0 0 0 2 1 1 0 1

Readme

Source
raw.​githubusercontent.​com

Licence Snippets for Sublime Text

This package provides the full text (for LICENCE files) as well as the recommended header text for several popular open-source licences as Sublime Text snippets. It makes inserting licence text in your source files quick and easy.

The licences included in this package are all OSI-Approved.

Feel free to submit an issue or pull request if there's a licence you'd like added.

Installation

Package Control

The easiest and best way to manage Sublime Text packages is with Package Control.

  1. Install Package Control if you haven't already.
  2. Choose Install Package from the command palette.
  3. Select Licence Snippets and press Enter. Easy.
Git

You can clone this repository into your Sublime Text Packages directory. You really should use Package Control, though.

Zip

You can download a zip file from here and extract it to your Sublime Text Packages directory. But seriously, just install Package Control.

Usage

To insert, for example, the MIT licence in a source file, open the command palette, type mit and choose Licence Snippet: MIT [Header] [Full Text] (or choose Licence Snippet: MIT [Header] [Full Text] from the snippets menu). The licence text will be inserted at the cursor. The copyright details (year, author, organization, etc.) will be highlighted in turn so that you can easily tab between them and modify them if necessary.

  • Licences suffixed with [Header] are intended to be used in the header section of a file in your project.
  • Licences suffixed with [Full Text] are ideally used to fill LICENCE or LICENCE.txt files.

Configuration

Two settings are available to configure the behaviour of this plugin. To set them, choose Preferences > Settings - User and add a line for the setting you want to change.

  • licence_comment_style = none, line, or block (default: line)
  • licence_wrap_lines = True or False (default: False)