auto-copyright

Inserts a standard copyright notice

lee-dohm

5,226

15

0.6.0

MIT

GitHub

Auto-Copyright Build Status Dependency Status

Inserts or updates a copyright notice.

Usage

Insert

The auto-copyright:insert command adds the configured copyright text with the current year and configured owner text as a comment at the top of the file. The default copyright text looks like this:

#
# Copyright (c) 2015 by Placeholder Corporation. All Rights Reserved.
#

It can be configured to say as much or as little as you want, though.

Update

When you execute the auto-copyright:update command, it updates the copyright year in a standard format by adding the current year to the list of years and compacting it in the following ways:

Configuration

Auto Copyright supports the following configuration settings:

Multi-line templates are supported. At the time of this writing, Atom's Settings View does not support multiline configuration attributes. In order to have a multi-line template, you must manually edit your config.cson using the CoffeeScript multi-line string format. For example:

'*':
  'auto-copyright':
    'template': """
      Copyright (c) %y by %o. All Rights Reserved.

      Some standard boilerplate license text.
    """

Commands

Keybindings

No keybindings are assigned by default.

License

MIT