During this talk with a local user group I discussed some of the many editor tips and tricks available to you. These tips use the Default key mapping module. In general these tips will stay away from form designer and debugger topics. Primarily because those subjects warrant a whole discussion on their own.
1.Line Delete
Ctrl+Y
2.Move by words
a Windows standard
Key points:
a. hold down Ctrl key and use left and right arrows
b. Shift+Ctrl key to select by words
c. Use to jump around quickly and select and cut or copy sections quickly
Also:
a. Home = beginning of line
b. End = end of line
c. Ctrl+Home = beginning of file
d. Ctrl+End = end of file
e. Shift+End = select to end of line
d. Shift+Home = select to beginning of line
f. Ctrl+Shift+End = select to end of file
3.Handling Case
Key points:
a.to uppercase = Ctrl+K+F
b.to lowercase = Ctrl+K+E
c.toggle = Ctrl+O+U
4.Selecting Rectangles of Text
Key points:
a. Alt key
b. kind of a Windows standard (also works in Word)
5.Indenting Blocks
Key points:
a. to indent, select block, then Ctrl+Shift+I
b. to Unindent, select block, then Ctrl+Shift+U
6.Incremental Search...HOT FEATURE
Key points:
a. Ctrl+e to invoke
b. F3 to search again
c. searches down only so use Ctrl+Home to go to top first (if desired)
7.Bookmarks
Key points:
a. set a bookmark = Ctrl+Shift+0 to 9
b. goto a bookmark = Ctrl+0 to 9
c. also available on the right click menu
8.Browsing in the editor
point at classes...use cntrl to jump
9.Class Completion
Ctrl+Shift+C
a. Minimum to use is:
MyClass = class(TObject)
end;
b. Then add whatever methods, properties, or events and then activate by pressing Ctrl+Shift+C
For example:
in public: procedure HelloWorld(Message : String);
in public: property Age: Integer
Add this to form public: function GetAgeOfEarthInYears: Integer;