Fast generate the header content of your project files!
auto-header: generate
will change the header comment of current file
the default text is like this
# Copyright (c) 2015 by your name. All Rights Reserved.
to change the template this plugin generated, you can change the auto-header.template
config.
Multi-line templates are not supported in current atom version, so you have to change it in config.cson
, like
'*':
'auto-header':
'template': '''
Copyright (c) {{year}} by {{author}}.
All Rights Reserved.
{{license-header}}
'''
Some tokens wrapped by {{}}
will be replaced when render the template.
Here are all of them
will be replaced by current year
will be replaced by the current month
will be replaced by the current date
will be replaced by the current hour
will be replaced by the current minute
will be replaced by the current second
will be replaced by the current day
will be replaced by auto-header.author
config
will be replaced by license header specified by auto-header.license
config
uppercase of license name
license can be 'apachev2', 'bsdv2', 'bsdv3', 'gplv2', 'gplv3', 'lgplv2', 'lgplv3', 'mit', 'mplv2'
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the Lesser GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
- call me via: [email protected]
- or leave a issue on my github, issues and PRs are welcome