01 May
Posted by Stu as Must Read, Tips (Little Bits Of Awesomeness)
As time passes, our brains develop routines for what we do. Development is no exception. My brain has half a hundred (or maybe more) little routines that it’s been trained to enact when certain requirements are fulfilled.
There are generic practices that hold across most disciplines. These are especially easy to see when working with computers. How the keyboard and mouse interact. What tools are best to use for a particular job. Processes already in place in the system to allow greater efficiency.
In my (relatively short) time as a Clarion Dev, I’ve managed to accumulate a number of wonderful practices that without which, I would be a lot slower. Not that I’m quick, but I’m quicker with these in place.
My plan is for this post to grow via input from around the world, as well as my own as I come across them. Here be the (dragon) information.
Keep in mind too, that this post is tailored for folk who are new to the Clarion world.
[ctrl] Y Remove Line
A very nifty trick (thanks Brett and Devan), this removes the line of code the cursor is situated on. Nice!
F10 Extended Text Dialog
As of Clarion 6.1 (ish, ?) you can press F10 in an entry field within the templates to get an Extended Text Dialog window pop up, allowing you to “see” much more of what you are typing.
Great for Filters and other places where you sometimes type quite a long line of code!
[ctrl] R Compile
Possibly the most used in my arsenal of speedy cyborg brain enhancements. Buttons are old-school, Twin keystrokes are the new web 2.0!
[ctrl] S Save
This one I learned from MS Office. It’s been beaten into my subconscious routine. Always pressed, after most actions, unless I specifically don’t want to save.
[alt] M->E Comment All
This one is great. Highlight 1 or more lines of code (SHIFT and arrow keys), then press this key sequence and it’s all Commented Out. OUT. Nice.
[alt] E -> M, ESC, [enter] on yes for the “are you sure”, [ctrl] S (just for consistency, even though the compiler saves before .. compiling), [ctrl] R.
Embeds
- Embeds are a single-click away. Why go through multiple clicks/windows?

8 Responses
Simple Practices Update - Pimp My Clarion
June 19th, 2007 at 10:29 pm
1[...] the “Simple Practices To Enhance Your Daily Development” post with a real gem that Bruce posted on the newsgroups a few days ago, and which he got from [...]
Devan
June 25th, 2007 at 4:12 pm
2Stuart,
One handy shortcut that I use ALL the time in the Editor is Ctrl-Y to delete an entire line. Great for getting rid of blocks of debug code.
I know what you are thinking - Boy this guy must write such crappy code to want to delete whole lines at a time!!! :)
Stu
June 25th, 2007 at 4:56 pm
3Devan,
Cheers! Brett let me know about that one too .. will update the post shortly. :)
Devan
June 25th, 2007 at 9:43 pm
4Another one that I just found out at the Sydney Devcon - I am sorry I cannot credit this one effectively as I cannot remember the gentleman’s name in question who told me about this. :(
If you put a question mark ‘?’ character in column 1 of any code segment, that line will only be compiled and executed in DEBUG mode. The line will be ignored in normal compilation and execution. This is useful if you have chunks of debugging strewn across your program. No need to hunt through and remember to add/delete all the OMIT(’***DEBUG***’) statements.
Oh, another thing I learned is that when you are in the Embed Code dialog in the IDE, you can turn on ‘Column 1′ display (just underneath the ‘Priority’ field on the right) which will allow you to get to column 1 of the embedded code no matter what.
Pretty Cool!
Stu
June 25th, 2007 at 10:45 pm
5Devan .. awesome stuff!
John
December 13th, 2007 at 11:03 pm
6Here’s one: press ALT+F4 fives time in a row really quickly: instand coffe break time.
John
December 13th, 2007 at 11:03 pm
7Here’s one: press ALT+F4 fives time in a row really quickly: instand coffe break time.
Stu
December 13th, 2007 at 11:18 pm
8Ha ha. Ahhh, i need a coffee break.
RSS feed for comments on this post · TrackBack URI
Leave a reply
Categories
Archives
Links
Meta
Must Read!
Pimp My Clarion is proudly powered by WordPress - BloggingPro theme by: Design Disease