Saving repetitive typing using PyCharm’s macros

There is typing I do on my PyCharm which are repetitive. An example of this is adding a breakpoint. I use ipdb to debug and I always need to type in this when I need to add a breakpoint:

from ipdb import set_trace; set_trace()

To avoid this, you can always use PyCharm’s macros to record the typing and replay it when required. This can save a ton of time !

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s