How to add copyright text automatically to C++ source and header files in Visual Studio 2019 Professional?

1k views Asked by At

Here is the problem: I have a root folder with sub folders containing all my structured code / 3rd party libraries / external dependencies. Now previously I used to develop with VSCode and used the Copyrighter extension by FordLabs to automatically insert the copyright text into all new files, which looked like this:

/*
 *   Copyright (c) 2023 My Company Name
 *   All rights reserved.
 */

My question is, how can I do the same for Visual Studio? Does there exist a plugin/extension that helps me do it?

1

There are 1 answers

2
user20716902 On

You can download the extension License Header Manager for VS2019

Support for Visual Studio 2019 + 2017 is provided via separate package available on GitHub as LicenseHeaderManager.2019.vsix