Copyright Notice Code Snippet

Are you tired of copy/pasting Copyright notice from one file to another? It requires you to context switch to another file, select and copy the notice, come back to the desired file and paste it. I have built a code snippet that can add the copyright notice to your file with a few keystrokes. Effectively it makes that “legal” task easier and more productive for the developers.

This post explains how to do one time set up and how to use it later with ease.

One time setup

ImportStep1

  • When the dialog comes up
    • Select CSharp language
    • Click the Import button

ImportStep2-3

      • Choose the file that you saved in Step
      • The remaining steps are self-explanatory.

You are done with the one time set up.

How to use it

In your .cs file:

        • Type #cp

      UseInFile

      • Tab twice. And the notice will appear.

UseInFile2

If the notice is not formatted to your satisfaction, you can make changes to the snippet file that you created in the setup and import it again.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s