Skip to content

Plugin for Sublime Text 2 to automate adding/updating the appropriate copyright text at the top of the file.

License

Notifications You must be signed in to change notification settings

pck/AutoCopyright

 
 

Repository files navigation

Auto Copyright

A Sublime Text 2 plugin to automate adding the appropriate copyright text at the top of every file.

Installation

Package Control

The awesome Package Control package is a great way to easily install and manage Sublime Text 2 packages.

  1. Install Package Control
  2. Press Control/Command+Shift+P to bring up the command palette
  3. Type PCIP (for Package Control: Install Package) and press Return
  4. Type AutoCopyright and press Return

Manual installation

Go to the "Packages" directory (Preferences / Browse Packages...). Then clone this repository:

git clone git://github.com/lifted-studios/AutoCopyright

Options

Edit the settings file (it should open automatically the first time you use an Auto Copyright command):

  • "owner": [""]

    You need to enter the text you want to show up as the primary copyright owner. If you have multiple copyright owners, then enter them as an array.

Usage

Two functions will show up in the Command Palette under "Auto Copyright". Additionally, the Update Copyright command will be called just before any file is saved.

Insert Copyright

Adds the copyright text to the beginning of the file. It will add itself after a shebang line, if any. When the command is triggered, if there are multiple copyright owners configured in settings, it will pop up a list and ask which one to use.

Update Copyright

Updates the copyright text already present in the file, but only if the text matches, including the copyright owner name except for the year. It will update the copyright year to include all years between the original year and this one. The command will update the copyright text for any of the configured owner texts.

Information

Source: https://github.com/lifted-studios/AutoCopyright

Authors: Lee Dohm, Lifted Studios

About

Plugin for Sublime Text 2 to automate adding/updating the appropriate copyright text at the top of the file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • Shell 0.6%