Can i add date time for sublime snippet?
Tools > New Plugin Paste this: import datetime, getpass import sublime, sublime_plugin class AddDateCommand(sublime_plugin.TextCommand): def run(self, edit): self.view.run_command(“insert_snippet”, { “contents”: “%s” % datetime.date.today().strftime(“%d %B %Y (%A)”) } ) class AddTimeCommand(sublime_plugin.TextCommand): def run(self, edit): self.view.run_command(“insert_snippet”, { “contents”: “%s” % datetime.datetime.now().strftime(“%H:%M”) } ) Save it as ~/Library/Application Support/Sublime Text 2/Packages/User/add_date.py Then, in Preferences > Key Bindings – … Read more