Skip to content

Instantly share code, notes, and snippets.

@jonnolen
Created February 25, 2013 14:15
Show Gist options
  • Save jonnolen/5030052 to your computer and use it in GitHub Desktop.
Save jonnolen/5030052 to your computer and use it in GitHub Desktop.
import sublime, sublime_plugin, uuid
class GenerateUuidCommand(sublime_plugin.TextCommand)
def run(self, edit):
for s in self.view.sel():
if (s.empty())
self.view.insert(edit, s.b, str(uuid.uuid4()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment