Nicholas Ring I got interested in the Ctrl +Click thing when Raize components would not jump to the source code. Check out Ray Konopka's response to my question. http://www.raize.com/forums/viewtopic.php?f=23&t=481
Stefan Glienke Thank you. I had forgotten that you did the back and forth process of elimination to discover only $DEFINITIONON ($YD) is all that's required.
Michael Riley No problem. I still am puzzled what influences the ability to ctrl+click on a unit name in the uses and navigate there because even after putting the $YD above the very first line of my units I sometimes am not able to navigate to them when using them in a program :/
Stefan Glienke It remains a puzzle, and an annoyance. I have found in a large legacy project that units not included in the DPR can break several things. One is the ability to Ctrl-Click into them, but another is (this is in D2007) that the time taken to invoke or attempt to invoke code completion becomes very long.
One would think that Ctrl-Click would be subject to a clearly defined set of requirements, especially with respect to the units for components. Inability to use Ctrl-Click removes a large measure of the value from the IDE, in non-trivial projects.
Asbjørn Heid Thank you for pointing out Sync Edit (ctrl+shift+j). I just watched a video that Michael Rozlog did and will be adding it to my blog post. http://www.youtube.com/watch?v=CoeSsbtJUHY
I commented on the original blog with some of my favourites, but it didn't seem to go through.
Don't forget frequently used runtime and debugging keystrokes: - Shift+Ctrl+F9 - Run without debugging - F9 - Run with debugging and resume after hitting a breakpoint - F5 - set/remove a breakpoint - F7 - Step into a method - F8 - Step over a method
Bruce McGee Ctrl-D gets it wrong too often when using post Delphi 7 language constructs. You'd think they'd fixed that by now to be on par with Visual Studio code formatting, but boy they didn't.
Jeroen Wiert Pluimers I've tweaked the formatting settings and seldom see any problems, but it would be nice to have more direct control over the process.
Neat-o. Have a question: What is "$YD" (in "Code Browsing (requires $YD)")?
ReplyDelete$YD is a compiler directive for turning on definitions. http://docwiki.embarcadero.com/RADStudio/XE6/en/Symbol_declaration_and_cross-reference_information_%28Delphi%29
ReplyDeleteNicholas Ring compiler options to set the symbol options to definition only: http://docwiki.embarcadero.com/RADStudio/en/Compiling#Debugging_Options
ReplyDeleteWell there you go - I have learnt something new - thanks Michael Riley
ReplyDeleteBoy I wish someone would create anonymous statistics on feature usage in Delphi.
ReplyDeleteNicholas Ring I got interested in the Ctrl +Click thing when Raize components would not jump to the source code. Check out Ray Konopka's response to my question. http://www.raize.com/forums/viewtopic.php?f=23&t=481
ReplyDeleteWhy isn't Sync Edit (ctrl+shift+j) on that list? It's my #3 shortcut or so, and the only IDE feature I really miss when using other IDEs.
ReplyDeleteNicholas Ring We discussed this a while ago: https://plus.google.com/105522328114529031567/posts/1ECD9g2sQVf
ReplyDeleteStefan Glienke Missed that one - thanks for the reference.
ReplyDeleteStefan Glienke Thank you. I had forgotten that you did the back and forth process of elimination to discover only $DEFINITIONON ($YD) is all that's required.
ReplyDeleteMichael Riley No problem. I still am puzzled what influences the ability to ctrl+click on a unit name in the uses and navigate there because even after putting the $YD above the very first line of my units I sometimes am not able to navigate to them when using them in a program :/
ReplyDeleteStefan Glienke It remains a puzzle, and an annoyance. I have found in a large legacy project that units not included in the DPR can break several things. One is the ability to Ctrl-Click into them, but another is (this is in D2007) that the time taken to invoke or attempt to invoke code completion becomes very long.
ReplyDeleteOne would think that Ctrl-Click would be subject to a clearly defined set of requirements, especially with respect to the units for components. Inability to use Ctrl-Click removes a large measure of the value from the IDE, in non-trivial projects.
Asbjørn Heid Thank you for pointing out Sync Edit (ctrl+shift+j). I just watched a video that Michael Rozlog did and will be adding it to my blog post. http://www.youtube.com/watch?v=CoeSsbtJUHY
ReplyDeleteI commented on the original blog with some of my favourites, but it didn't seem to go through.
ReplyDeleteDon't forget frequently used runtime and debugging keystrokes:
- Shift+Ctrl+F9 - Run without debugging
- F9 - Run with debugging and resume after hitting a breakpoint
- F5 - set/remove a breakpoint
- F7 - Step into a method
- F8 - Step over a method
Bruce McGee Good point, but you forgot F4 - Run to current line ;)
ReplyDeleteAsbjørn Heid I almost never use F4.
ReplyDeleteAlso from the list, I don't use Declare Variable and Declare Field very often, but I probably should since it would save me a bunch of keystrokes.
Oh, and I was glad to see Ctrl+D in the list. I almost never format code manually any more.
ReplyDeleteBruce McGee Interesting, I use F4 almost every debug session.
ReplyDeleteBruce McGee declare variable and declare field often get it wrong, so I use modelmaker code explorer for that.
ReplyDeleteBruce McGee I would add Ctrl+F2 to that list :)
ReplyDeleteBruce McGee Ctrl-D gets it wrong too often when using post Delphi 7 language constructs. You'd think they'd fixed that by now to be on par with Visual Studio code formatting, but boy they didn't.
ReplyDeleteJeroen Wiert Pluimers I've tweaked the formatting settings and seldom see any problems, but it would be nice to have more direct control over the process.
ReplyDeleteJeroen Wiert Pluimers I prefer the formatter in GExperts.
ReplyDeleteBill Meyer you mean the one in the experimental GExpert builds by Thomas Mueller ?
ReplyDeleteJeroen Wiert Pluimers Yes, that one. I should have been more specific.
ReplyDeleteBill Meyer that one is better in a lot of respects, but I don't think it supports generics yet.
ReplyDeleteJeroen Wiert Pluimers You may be right, but we know how to reach the maintainer. ;)
ReplyDeleteBill Meyer Thomas isn't maintaining it, just providing the build. The original Dutch author left the Delphi world a long time ago.
ReplyDeleteJeroen Wiert Pluimers Oh, I did not know that. 4,569 members here, and no volunteers? ;)
ReplyDeleteBill Meyer "Ask not what your Delphi community can do for you — ask what you can do for your Delphi community" ;)
ReplyDeleteBill Meyer Did you just accidentally volunteer to maintain this code? :)
ReplyDeleteBruce McGee Not even close.
ReplyDelete