I want to be able to insert import ipdb; pdb.set_trace() on the line below where I am on a key press.
For obvious reasons 😉
I want to be able to insert import ipdb; pdb.set_trace() on the line below
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Two fairly easy ways to do this:
Create a snippet… go to Tools>Developer>New snippet, bung this in:
save it.. should start working straight away.
4 key strokes.
OR
You could use the macro tool:
Now save your_macro.sublime-macro (Tools>Save macro), and add this key binding to your user key bindings:
now ‘p’ will insert your text, on the next line..
1 key stroke… but you must be careful to write code that never needs the letter p… 😉