Skip to content

Instantly share code, notes, and snippets.

@d3v-null
Created December 7, 2017 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d3v-null/2de930bd4c1140d794fcf20957032fbb to your computer and use it in GitHub Desktop.
Save d3v-null/2de930bd4c1140d794fcf20957032fbb to your computer and use it in GitHub Desktop.
My "one-liner" macro for pformatting and inserting it into the clipboard for analysis. I'd suggest using a snippet manager which supports cursor insertion (like Dash) to avoid having to scroll backwards to replace the @cursor placeholder. I have this mapped to ;ppc
import pyperclip, pprint; pyperclip.copy( pprint.pformat( @cursor ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment