RubyMine (and probably many other editors as well) have a nice feature called bookmarks. It lets you mark certain lines and easily navigate to them. I wanted to present you two scenarios in which I use the feature.

Editing big test/spec file

Let’s say I am in a quite long spec file. Quite long means between 200–2000 lines and multiple scenarios in it. I am editing/tweaking one of them and there is lot of code around. I want to focus on one test only. What do I do? I add a bookmark in the place I want to change. I used to use comments for that such as #MAKE_CHANGE_HERE. Nowadays, I just use bookmarks.