BDS 2006 introduced a new code browsing feature in the code editor that I’m willing to bet most people are unaware of called Method Navigation which didn’t make it into my previous code completion video. It’s the ability quickly jump from one method to the previous/next in the implementation section of a unit. Here is how it works:
- Place the cursor inside of a method/function/procedure in the implementation section of a unit (preferably something with lots of code)
- Press Ctrl-Alt-Up Arrow or Ctrl-Alt-Down Arrow to navigate between function bodies
There is one more subtlety here, if you press Ctrl+Q+L you can toggle what’s called “Class Lock” meaning the above arrow keys will restrict their navigation to methods of the current class (if any). Anyway, just thought I’d mention another one of those little features that flies just below the radar.