Skip to content

Instantly share code, notes, and snippets.

@pykong
Created November 18, 2017 19:41
Show Gist options
  • Save pykong/83b64ccf5422465576de34a236985bbb to your computer and use it in GitHub Desktop.
Save pykong/83b64ccf5422465576de34a236985bbb to your computer and use it in GitHub Desktop.
Often used.
def get_active_view(self):
"""Return the active view in the currently active window."""
return sublime.active_window().active_view()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment