FileHeader
FileHeader copied to clipboard
A powerful file templating plugin for Sublime Text
- According to the document specification of Sublime Text(see: http://docs.sublimetext.info/en/sublime-text-3/basic_concepts.html#the-user-package), custom data for the user's plug-in should be stored in the `Packages/User` folder. - `Packages/User` folder data can be used...
eg: create the file "Python.tmpl" in your custom header folder (refer to FileHeader sublime settings for custom header, or set it yourself) with contents ``` # -*- coding: utf-8 -*-...
I found a bug appearing in very specific conditions where a custom {{variable}} value is not resolved, and it is happening when the variable {{variable}} is on the same line...
added detection of when the first line starts with #! and when it does, the header is inserted on a new line directly after the first
Note: use `FileHeader` key in project `settings` block of your `*.sublime-project` file to define overrides.
Commit 1: Allow a user to set their name manually in the settings file. This is good to have in situations where you have no control over your computer account...
for instance: ``` #!/usr/bin/env python3 def main(): pass if __name__ == "__main__": main() ``` turns into ``` # -*- coding: utf-8 -*- # @Author: .... # @Date: .... # @Last...
I set all `.js` to syntax `javascript(babel)` by sublime menus: `View -> Syntax -> Open all with current extension as... ->[your syntax choice].` http://stackoverflow.com/questions/7574502/set-default-syntax-to-different-filetype-in-sublime-text-2 It work fine with the original...