
If you edit a lot of PeopleCode (and you don't do it in an external editor) you'll probably want to be sure that you're aware of all of the PeopleCode editor shortcuts. They are great for developer productivity.
They are documented in an appendix of the PeopleCode Developer's Guide PeopleBook. Some of the documented entries are a bit silly ("Enter" is described as "New Line", just in case Application Designer is your very first experience with a computer), but there are some really handy ones in there as well.
For example, did you know that you can press Control-U to lowercase selected text and Shift-Control-U to uppercase the selected text?
Another handy one to know is that if you hold down the Control key while pressing the up or down keys you'll scroll the window up/down while leaving the cursor in place. Handy when the line you are editing is near the top or bottom of the window and you want to get a little more context onscreen to help figure out what you're doing.
If you have a really long PeopleCode program that you're working on, you can press Control-F2 to set a bookmark on the current line (this will put a blue "bookmark" on the left side of the editor). Then if you want to jump back to that bookmark, just press F2.
You can actually have multiple bookmarks in a program. F2 and Shift-F2 cycle forwards and backwards through the current bookmarks. It's not quite a substitute for code folding, but it's pretty handy for some quick navigation.
So, go check 'em out.
Labels: 2009, ApplicationDesigner, PeopleBooks, PeopleCode

