Created
July 3, 2015 19:30
-
-
Save raulghm/c41c83c39b9e1f554f7e to your computer and use it in GitHub Desktop.
sublime text comment + auto datetime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime, getpass | |
import sublime, sublime_plugin | |
class Comments_cssCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
comment = "/** \n * Name: Component \n * \n * Created: %s \n * Author: Raúl Hernández M. <[email protected]> \n */ \n\n" % (datetime.datetime.now().strftime("%Y-%m-%d %H:%M")) | |
self.view.insert(edit, 0, comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment