Skip to content
This repository has been archived by the owner on Mar 21, 2019. It is now read-only.

Extension for vscode to inject copyright information on top of current file or all files.

Notifications You must be signed in to change notification settings

Shobhit1/copyright_injector

Repository files navigation

copyright-injector README

Build Status Build Status GitHub Maintenance

This is a simple extension based on license-injector which seems to be not active.

Right now it only suppports adding a copyright text on top of following files:

  • html
  • js
  • jsx
  • ts
  • tsx

Features

This extension has two options:

  • Inject copyright notice on top of currrent file
  • Inject copyright notice on top of all files (only the ones that are currently supported by this plugin).

For example if there is an image subfolder under your extension project workspace:

![feature X](images/feature-x.png)

Extension Settings

This extension contributes the following settings:

  • copyrightInfo.company: add the name of the company that will be injected in the copyright template. Can put your name in it as well.
  • copyrightInfo.ignore: A comma-delimited string of folders to ignore in file paths.
  • copyrightInfo.matchPattern: A pattern to find all files. Defaults to '*/ which is equivalent to all files

Usage

Inject Current file

Steps:

  • Ctrl/Cmd + shift + P or F1
  • Select, Copyright Injector: Inject in current file
  • Save file

Please make sure that you have proper configurations entered in the workspace/user settings for this to work. Otherwise the extension will take default values.

Inject All files

Steps:

  • Ctrl/Cmd + shift + P or F1
  • Select, Copyright Injector: Inject in all files

Please make sure that you have proper configurations entered in the workspace/user settings for this to work. Otherwise the extension will take default values.

Issues and Suggestions

Please use GitHub to report issues and also to request enhancements.

Planned Enhancements

  • Check if copyright already exists, then skip the file.
  • Implement extensions' actions when the extension is deactivated.
  • Implement support for more than just ts files.
  • add more unit tests.

Release Notes

0.0.1

Initial release.

About

Extension for vscode to inject copyright information on top of current file or all files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published