I start writing a Delphi application this morning to post entries to my blog. While writing the code, I needed to comment a block of code. VS.NET has a key binding for this, Ctrl+K+C to comment and Ctrl+K+U to uncomment, but I wasn’t using VS.NET. I was using Delphi, so I searched the help file for a list of key bindings. Unfortunately I did not find anything in the help file so I googled for the key bindings. And to my surprise I didn’t find much there either. A key stroke here and a key stroke there was all I found. I decided to search the IDE itself for key bindings by looking at menus and using trial and error. I did evenually find the key binding for commenting/uncommenting blocks of code (Ctrl+/) but not before typing up a list of other bindings, many of which are very useful. Here’s the list. Hopefully others will find it useful. Delphi 2005 Key Binding <table style="color: #336699" border="1" cellpadding="2" cellspacing="2"><tr><td>Keys</td><td>Binding</td><td>Remarks</td></tr><tr><td>Ctrl+K+I or Ctrl+Shift+I</td><td>Indent selected text</td><td> </td></tr><tr><td>Ctrl+K+U or Ctrl+Shift+U</td><td>Unindent selected text</td><td> </td></tr><tr><td>Ctrl+Shift+R</td><td>Start/Stop macro recorder</td><td> </td></tr><tr><td>Ctrl+Shift+P</td><td>Playback macro</td><td> </td></tr><tr><td>Ctrl+F11</td><td>Open project</td><td> </td></tr><tr><td>Shift+F11</td><td>Add file to project</td><td> </td></tr><tr><td>Alt+F11</td><td>Use unit</td><td> </td></tr><tr><td>Ctrl+S</td><td>Save file</td><td> </td></tr><tr><td>Ctrl+Shift+S</td><td>Save all</td><td> </td></tr><tr><td>Ctrl+Z</td><td>Undo</td><td> </td></tr><tr><td>Ctrl+Shift+Z</td><td>Redo</td><td> </td></tr><tr><td>Ctrl+X</td><td>Cut</td><td> </td></tr><tr><td>Ctrl+C</td><td>Copy</td><td> </td></tr><tr><td>Ctrl+V</td><td>Paste</td><td> </td></tr><tr><td>Ctrl+Del</td><td>Delete</td><td> </td></tr><tr><td>Ctrl+A</td><td>Select all</td><td> </td></tr><tr><td>Ctrl+F</td><td>Find</td><td> </td></tr><tr><td>Ctrl+Shift+F</td><td>Find in files</td><td> </td></tr><tr><td>Ctrl+R</td><td>Replace</td><td> </td></tr><tr><td>F3</td><td>Search again</td><td> </td></tr><tr><td>Ctrl+E</td><td>Incremental search</td><td> </td></tr><tr><td>Alt+G</td><td>Go to line number</td><td> </td></tr><tr><td>Ctrl+Alt+F11</td><td>View project manager</td><td> </td></tr><tr><td>Ctrl+Alt+P</td><td>View tool palette</td><td> </td></tr><tr><td>F11</td><td>View object inspector</td><td> </td></tr><tr><td>Alt+0</td><td>View window list</td><td> </td></tr><tr><td>Shift+Alt+F11</td><td>View structure</td><td> </td></tr><tr><td>Ctrl+Alt+B</td><td>View break points</td><td> </td></tr><tr><td>Ctrl+Alt+S</td><td>View call stack</td><td> </td></tr><tr><td>Ctrl+Alt+W</td><td>View watches</td><td> </td></tr><tr><td>Ctrl+Alt+L</td><td>View local variables</td><td> </td></tr><tr><td>Ctrl+Alt+T</td><td>View threads</td><td> </td></tr><tr><td>Ctrl+Alt+C</td><td>View CPU</td><td> </td></tr><tr><td>Ctrl+Alt+F11</td><td>View FPU</td><td> </td></tr><tr><td>Ctrl+Alt+V</td><td>View event log</td><td> </td></tr><tr><td>Ctrl+Alt+M</td><td>View modules</td><td> </td></tr><tr><td>Ctrl+F12</td><td>View unit</td><td>Works with active project only</td></tr><tr><td>Shift+F12</td><td>View form</td><td>Works with active project only</td></tr><tr><td>F12</td><td>Toggle form/unit</td><td> </td></tr><tr><td>Ctrl+Shift+E</td><td>Refactor: Rename</td><td> </td></tr><tr><td>Ctrl+Shift+V</td><td>Refactor: Declare variable</td><td> </td></tr><tr><td>Ctrl+Shift+D</td><td>Refactor: Declare field</td><td> </td></tr><tr><td>Ctrl+Shift+M</td><td>Refactor: Extract method</td><td> </td></tr><tr><td>Ctrl+Shift+L</td><td>Refactor: Extract resource string</td><td> </td></tr><tr><td>Ctrl+Shift+A</td><td>Refactor: Find unit</td><td> </td></tr><tr><td>Ctrl+Shift+F11</td><td>Project options</td><td> </td></tr><tr><td>Ctrl+F9</td><td>Compile project</td><td> </td></tr><tr><td>Shift+F9</td><td>Build project</td><td> </td></tr><tr><td>Ctrl+Shift+F9</td><td>Run without debugging</td><td> </td></tr><tr><td>F9</td><td>Run</td><td> </td></tr><tr><td>F8</td><td>Step over</td><td> </td></tr><tr><td>F7</td><td>Trace into</td><td> </td></tr><tr><td>Shift+F7</td><td>Trace to next source line</td><td> </td></tr><tr><td>F4</td><td>Run to cursor</td><td> </td></tr><tr><td>Shift+F8</td><td>Run until return</td><td> </td></tr><tr><td>Ctrl+F2</td><td>Program reset</td><td> </td></tr><tr><td>Ctrl+F7</td><td>Evaluate/modify</td><td> </td></tr><tr><td>Ctrl+F5</td><td>Add watch at cursor</td><td> </td></tr><tr><td>F5</td><td>Toggle breakpoint</td><td> </td></tr><tr><td>F1</td><td>Help</td><td> </td></tr><tr><td>Ctrl+K+n or Ctrl+Shift+n</td><td>Create bookmark</td><td>where n is some number between 0 and 9</td></tr><tr><td>Ctrl+n</td><td>Go to bookmark</td><td>where n is some number between 0 and 9</td></tr><tr><td>Ctrl+K+P</td><td>Print selection</td><td> </td></tr><tr><td>Ctrl+N</td><td>Insert new line</td><td> </td></tr><tr><td>Ctrl+O+O</td><td>Insert compiler options</td><td> </td></tr><tr><td>Ctrl+K+C</td><td>Copy |
paste selected text</td><td> </td></tr><tr><td>Ctrl+Shift+J</td><td>Sync edit mode</td><td> </td></tr><tr><td>Ctrl+K+W</td><td>Write selected block to a file</td><td>Great for saving code snippets to a text file</td></tr><tr><td>Ctrl+K+R</td><td>Read block from file</td><td>Inserts content from a text file</td></tr><tr><td>Ctrl+K+F</td><td>Upper cases sort of</td><td> </td></tr><tr><td>Ctrl+K+N</td><td>Upper case selected text</td><td> </td></tr><tr><td>Ctrl+Space</td><td>Code Completion</td><td> </td></tr><tr><td>Ctrl+Shift+Space</td><td>Code Parameter Insight</td><td> </td></tr><tr><td>Ctrl+Shift+K+O</td><td>Toggler gutter size</td><td>Seems to turn off code collapse feature</td></tr><tr><td>Ctrl+[left click]</td><td>Navigate to declaration</td><td>Click on the token name, i.e., variable, method, etc</td></tr><tr><td>Alt+[Up arrow]</td><td>Navigate to declaration</td><td>Same as Ctrl+[left click]</td></tr><tr><td>Alt+[Left arrow]</td><td>Return to the previous location</td><td>Used in conjunction with Alt+[Up arrow]</td></tr><tr><td>Ctrl+[Up/Down arrow]</td><td>Scroll page up/down</td><td>Does not move the cursor</td></tr><tr><td>Ctrl+Shift+G</td><td>Generate GUID</td><td> </td></tr><tr><td>Ctrl+J</td><td>Code template</td><td> </td></tr><tr><td>Shift+Alt+[arrow keys]</td><td>Colum select</td><td> </td></tr><tr><td>Ctrl+Shift+C</td><td>Complete class declaration</td><td> </td></tr><tr><td>Ctrl+T</td><td>Delete word right of cursor</td><td> </td></tr><tr><td>Ctrl+Shift+Y</td><td>Delete string right of cursor</td><td> </td></tr><tr><td>Ctrl+Shift+T</td><td>Add to do item</td><td> </td></tr><tr><td>Ctrl+Backspace</td><td>Delete work left of cursor</td><td> </td></tr><tr><td>Ctrl+F4</td><td>Close the page</td><td> </td></tr><tr><td>Ctrl+Enter</td><td>Open file at cursor</td><td> </td></tr><tr><td>Ctrl+/</td><td>Toggle comments</td><td> </td></tr><tr><td>Ctrl+Shift+Enter</td><td>Find reference</td><td> </td></tr></table> |
Posted in uncategorized. Tagged in .