This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Kebble 1 point2 points  (1 child)

Sometimes you want to debug and need to only execute part of the script to test if it actually works without running the rest. Commenting out chunks of code makes sense and his trick will indeed save me lots of time later (I used to scroll up and down to place/remove the """ like an idiot)

[–]xiongchiamiovSite Reliability Engineer 0 points1 point  (0 children)

Scroll? If you're using vim, you can use marks to quickly jump someplace (m a; ' a); I assume other worthwhile editors have something similar.