About/Contact

Steve Trefethen

Steve Trefethen is a Director of Engineering at Reply. Contact me

View my LinkedIn profile


Powered by discountASP.NET
referal ID: sdtref
Why recommend discountASP.NET?
$720 in referrals so far!


Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

Disclaimer

The posts on this weblog are provided AS IS with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.



A Delphi 2006 code navigation feature you may not know about

November 07 2006 4:05PM

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.

FacebookDel.icio.usDigg It!

Tags:

Comments (5) -

11/7/2006 4:28:38 PM #

Not bad. You're only 11 months late... Smile

distribucon.com/blog/archive/2005/12/07/835.aspx

Just kidding, man. Keep up the good work exposing little known features!

Dan Miser

11/7/2006 4:56:35 PM #

Dude, are you asking to be removed from my blog roll? Btw, yesterday my site had 1000+ page views how 'bout yours?

Smile

-Steve

Steve Trefethen

11/8/2006 4:47:32 AM #

Actually I think I found these shortcuts on Dan's blog last year Wink

But it can't be blogged about often enough - it's amazing to see when I do trainigs how many people don't even know about CTRL-SHIFT-C, CTRL-SHIFT-ARROW and other simple things.

However, I still prefer CTRL-G over CTRL-ALT-ARROW Wink

Regards,
Olaf

Olaf

11/12/2006 12:25:44 AM #

Steve

would you mind explaining how you went back from the Messages unit where you had arrived at TWMWindowposChanged to the original unit?
(by holding down control and pressing mouse)
You mention left and right arrows, but I do not understand why the arrows would not position the caret one left of right in the messages unit ??

Feel very dumb, sorry

Peter

Peter

11/29/2006 5:16:23 PM #

Hi Peter,
  Sorry for the slow reply. To browse backwards simply press Alt-LeftArrow likewise to browse forward press Alt-RightArrow. The only place where the mouse is involved in code browsing is when you hold the Alt key down and click an identifier.

-Steve

Steve Trefethen

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading