Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>LicenseSnippetsNew to Visual Studio Code? Get it now.
LicenseSnippets

LicenseSnippets

Joseph Diragi

|
619 installs
| (0) | Free
Snippets for popular software licenses
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Code License Snippets

A set of useful snippets for people who love open source but don't love copying the same header over and over.

Features

  • Includes snippets for all of the Popular Licenses listed on the opensource.org licenses page.
  • Includes whole license snippets (for COPYING/LICENSE files) to reduce time spent on all that copying and pasting
  • Includes header/license notice snippets for including on top of source files with language-specific line-comments and dynamic file-name and project-name variables
  • File name, author name, and project name can all be set using tab, or left as default

Supported Licenses

All of the Popular Licenses listed on the opensource.org licenses page:

  • Apache License 2.0
  • BSD 3-Clause "New" or "Revised"
  • BSD 2-Clause "Simplified" or "FreeBSD"
  • GNU General Public License (GPL)
  • GNU Library or "Lesser" General Public License (LGPL)
  • MIT
  • Mozilla Public License 2.0
  • Common Development and Distribution License
  • Eclipse Public License

And some others:

  • Unlicense

Release Notes

See CHANGELOG.md for more details

0.1.0 -- Minimum Viable Product <3

Initial release of Code License Snippets

Includes snippets for:

  • Apache-2.0
  • GPL-3.0-or-later
  • MIT
  • MPL-v2.0
  • Unlicense

0.2.0 -- More licences 🎉

Adds snippets for:

  • LGPL-3.0-or-later
  • AGPL-3.0-or-later
  • BSD-3-Clause
  • CDDL-1.0
  • EPL-1.0

Removes the singlefile GPL notices (Redundant)

Improved formatting

1.0.0 -- Public release 👯‍♀️

Package and release Refactor prefixes to match SPDX identifiers

1.0.1 -- Packaging fixes

Adds relevant information to the package.json Includes the LICENSE file (it works)

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft