2008-6-7 14:20
kendling
Delphi IDE 缺省快捷键
那天是谁在群里问有没有一个Delphi缺省快捷键的列表,今天想起以前在Borland网站上见过。我把它收集到BLOG里了,有兴趣的朋友可以去看看。
里面除了快捷键外还有一些Delphi的技巧。
就老大的建议,全贴过来了,原帖:[url=http://myvnet.com/article.asp?id=65]http://myvnet.com/article.asp?id=65[/url]
从Borland网站上找到的快捷键列表,这里列出的快捷键应该是比较全的,另外还有一些有关Delphi的技巧,到这个网站去看:[url=http://bdn1.borland.com/article/borcon/files/3010/slides/3010_files/frame.htm]http://bdn1.borland.com/article/borcon/files/3010/slides/3010_files/frame.htm[/url]
Ctrl+F 进行搜索 [table][tr] 快捷键 描述 IDE 版本 [/tr] [tr] [td]Escape[/td] [td]Selects parent control in design mode. Left mouse click + Escape drags the parent control[/td] [td]Delphi 2 and up[/td] [/tr] [tr] [td]Shift + Click[/td] [td]After selecting control in form designer, click on it with Shift again to select top most parent Form[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Tab[/td] [td]In Object Inspector activates incremental search for properties. Press again Tab to move focus to property value[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + J[/td] [td]Invoke code templates also called code snippets[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + T[/td] [td]Delete text from cursor position until end of word[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + E[/td] [td][url=http://bdntv.borland.com/pix/nickhodges/Camtasia/IncrementalSearch/IncrementalSearch.html]Incremental search[/url][/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Y[/td] [td]Delete current line[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + B[/td] [td]Invoke buffer window when focus is on editor. The buffer window shows a list of all different tabs.[/td] [td]Delphi 2007 and up[/td] [/tr] [tr] [td]Ctrl + Shift + G[/td] [td]Insert a new GUID at the cursor position[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Shift + I[/td] [td]Indent the current selected block[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Shift + U[/td] [td]Unindent the current selected block[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + K + I[/td] [td]Indent the current selected block or current line in case of no selection[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + K + U[/td] [td]Unindent the current selected block or current line in case of no selection[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Shift + J[/td] [td]Invoke SyncEdit[/td] [td]Borland Developer Studio 2006[/td] [/tr] [tr] [td]Ctrl + Shift + V[/td] [td]Automatically declare variable at cursor position[/td] [td]Borland Developer Studio 2006[/td] [/tr] [tr] [td]Ctrl + Shift + Y[/td] [td]Delete to the end of line[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Alt + [[/td] [td]Match pair forward[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Alt + ][/td] [td]Match pair backward[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Alt + RightArrow[/td] [td]Browse forward (hotlink history)[/td] [td]Delphi 7 and up[/td] [/tr] [tr] [td]Alt + LeftArrow[/td] [td]Browse backward (hotlink history)[/td] [td]Delphi 7 and up[/td] [/tr] [tr] [td]Alt + UpArrow[/td] [td]Browse to symbol under editor cursor (invoke a hotlink and add it to the hotlink history)[/td] [td]Borland Developer Studio 2006[/td] [/tr] [tr] [td]F4[/td] [td]Run program to current cursor position[/td] [td]Delphi 2 and up[/td] [/tr] [tr] [td]F5[/td] [td]Toggle breakpoint[/td] [td]Delphi 2 and up[/td] [/tr] [tr] [td]F7[/td] [td]Debugger step into[/td] [td]Delphi 2 and up[/td] [/tr] [tr] [td]Shift - F7[/td] [td]Trace into next source line[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]F8[/td] [td]Debugger step over[/td] [td]Delphi 2 and up[/td] [/tr] [tr] [td]Shift - F8[/td] [td]Run until return[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]F9[/td] [td]Run program under debugger[/td] [td]Delphi 2 and up[/td] [/tr] [tr] [td]Ctrl + F2[/td] [td]Program Reset[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + F7[/td] [td]Evaluate/modify[/td] [td]Delphi 2005 and up[/td] [/tr] [tr] [td]Ctrl + F5[/td] [td]Add Watch[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + F12[/td] [td]View units[/td] [td]Delphi 2 and up[/td] [/tr] [tr] [td]Alt + G[/td] [td]Goto line number in editor[/td] [td]Delphi 2 and up[/td] [/tr] [tr] [td]Ctrl + O + G[/td] [td]Goto line number in editor[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Shift + R[/td] [td]Start/stop recording editor macro[/td] [td]Delphi 2 and up[/td] [/tr] [tr] [td]Ctrl + Shift + P[/td] [td]Play editor macro[/td] [td]Delphi 2 and up[/td] [/tr] [tr] [td]Ctrl + Spacebar[/td] [td]Invoke code completion[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Shift + Spacebar[/td] [td]Invoke code parameter hints[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Enter[/td] [td]Open file at cursor[/td] [td]Delphi 2 and up[/td] [/tr] [tr] [td]Ctrl + Shift + Enter[/td] [td]Find all references[/td] [td]Delphi 2005 and up[/td] [/tr] [tr] [td]Ctrl + Shift + C[/td] [td]Invoke class completion for the class that currently contains the cursor[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Shift + UpArrow[/td] [td]Navigate to method implementation/declaration[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Shift + DownArrow[/td] [td]Navigate to method implementation/declaration[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Alt + F12[/td] [td]Opens the drop-down on the top-right corner of the code editor, listing all open files[/td] [td]Borland Developer Studio 2006[/td] [/tr] [tr] [td]Ctrl + Alt + Mouse Wheel[/td] [td]Navigateto previous or next method implementation in lexical order in thissource unit, or within the class to which scope has been limited usingCtrl+Q+L[/td] [td]Borland Developer Studio 2006[/td] [/tr] [tr] [td]Ctrl + Alt + UpArrow[/td] [td]Navigateto previous method implementation in lexical order in this source unit,or within the class to which scope has been limited using Ctrl+Q+L[/td] [td]Borland Developer Studio 2006[/td] [/tr] [tr] [td]Ctrl + Alt + DownArrow[/td] [td]Navigateto next method implementation in lexical order in this source unit, orwithin the class to which scope has been limited using Ctrl+Q+L[/td] [td]Borland Developer Studio 2006[/td] [/tr] [tr] [td]Ctrl + Alt + Home[/td] [td]Navigateto the lexically first method implementation in this source unit, orwithin the class to which scope has been limited using Ctrl+Q+L[/td] [td]Borland Developer Studio 2006[/td] [/tr] [tr] [td]Ctrl + Alt + End[/td] [td]Navigateto the lexically last method implementation in this source unit, orwithin the class to which scope has been limited using Ctrl+Q+L[/td] [td]Borland Developer Studio 2006[/td] [/tr] [tr] [td]Ctrl + Alt + P[/td] [td]Activate the Tool Palette in filtering mode (start typing, press Enter to drop component)[/td] [td]Delphi 2005 and up[/td] [/tr] [tr] [td]Ctrl + /[/td] [td]Toggle comment per line or selected block, Ctrl + ' on nordic (and perhaps other international ) keyboards[/td] [td]Delphi 2005 and up[/td] [/tr] [tr] [td]Ctrl + Shift + T[/td] [td]Add todo list item[/td] [td]Delphi 2005 and up[/td] [/tr] [tr] [td]Alt + F12[/td] [td]Toggle between Form as text mode of design mode[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Alt + F11[/td] [td]Invoke Use unit dialog[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + F11[/td] [td]Invoke Open Project Dialog[/td] [td]Delphi 2005 and up[/td] [/tr] [tr] [td]Ctrl + Alt + F11[/td] [td]Invoke Project manager window[/td] [td]Delphi 2005 and up[/td] [/tr] [tr] [td]F11[/td] [td]Invoke Object Inspector window[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]F12[/td] [td]Toggle between code view and design view[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Alt + 0[/td] [td]Invoke Window list[/td] [td]Delphi 2005 and up[/td] [/tr] [tr] [td]Shift + Alt + F11[/td] [td]Invoke Structure window[/td] [td]Delphi 2005 and up[/td] [/tr] [tr] [td]Ctrl + Shift + B[/td] [td]Invoke Browser window[/td] [td]Delphi 5[/td] [/tr] [tr] [td]Ctrl + Alt + B[/td] [td]Invoke Breakpoint window[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Alt + S[/td] [td]Invoke Call Stack window[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Alt + W[/td] [td]Invoke Watches window[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Alt + L[/td] [td]Invoke Local Variables window[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Alt + T[/td] [td]Invoke Threads window[/td] [td]Delphi 7 and up[/td] [/tr] [tr] [td]Ctrl + Alt + F[/td] [td]Invoke FPU window[/td] [td]Delphi 2005(removed from Delphi 2006)[/td] [/tr] [tr] [td]Ctrl + Alt + C[/td] [td]Invoke CPU window[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Alt + V[/td] [td]Invoke Event window[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Alt + M[/td] [td]Invoke Modules window[/td] [td]Delphi 2005 and up[/td] [/tr] [tr] [td]Shift + F12[/td] [td]Invoke Forms window[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Shift + A[/td] [td]Invoke Add to uses clause(Find unit in Delphi 2006) window (Refactoring)[/td] [td]Delphi 2005 and up[/td] [/tr] [tr] [td]Ctrl + Shift + F11[/td] [td]Invoke Project Options window[/td] [td]Delphi 2005 and up[/td] [/tr] [tr] [td]Ctrl + F9[/td] [td]Compile Project[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Shift + F9[/td] [td]Build Project[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Shift + F11[/td] [td]Invoke Add to project window[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Shift + Ctrl + F9[/td] [td]Run without debugging[/td] [td]Delphi 2005 and up[/td] [/tr] [tr] [td]Ctrl + F[/td] [td]Find[/td] [td]Delphi 3 and up[/td] [/tr] [tr] [td]Shift + Ctrl + F[/td] [td]Find in Files[/td] [td]Delphi 3 and up[/td] [/tr] [tr] [td]Alt + F7/F8[/td] [td]Previous/next result (for Find in Files and Messages)[/td] [td]Delphi 7 and up[/td] [/tr] [tr] [td]Ctrl+K+E[/td] [td]Changes a word to lowercase and deselects selection[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl+K+F[/td] [td]Changes a word to uppercase and deselects selection[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl+K+O[/td] [td]Changes a word to lowercase[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl+K+N[/td] [td]Changes a word to uppercase[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl+O+U[/td] [td]Toggles case[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl+Shift+K+O[/td] [td]Toggles Code folding between On and Off[/td] [td]Delphi 2006 and up[/td] [/tr] [tr] [td]Ctrl+Shift+K+A[/td] [td]Code folding: Expands All blocks of code[/td] [td]Delphi 2006 and up[/td] [/tr] [tr] [td]Ctrl+Shift+K+E[/td] [td]Code folding: Collapse current block of code[/td] [td]Delphi 2006 and up[/td] [/tr] [tr] [td]Ctrl+Shift+K+U[/td] [td]Code folding: Expand current block of code[/td] [td]Delphi 2006 and up[/td] [/tr] [tr] [td]Ctrl+Shift+K+T[/td] [td]Code folding: Toggle Current block (expand & collapse)[/td] [td] [/td] [/tr] [tr] [td]Ctrl+Shift+K+R[/td] [td]Code folding: Collapses all regions {$region 'comment'}..{$endregion}[/td] [td]Delphi 2006 and up[/td] [/tr] [tr] [td]Ctrl+Shift+K+P[/td] [td]Code folding: Collapse nested procedures[/td] [td] [/td] [/tr] [tr] [td]Ctrl+Shift+K+M[/td] [td]Code folding: Collapse all methods[/td] [td] [/td] [/tr] [tr] [td]Ctrl+Shift+K+C[/td] [td]Code folding: Collapse all classes[/td] [td] [/td] [/tr] [tr] [td]Ctrl+Shift+K+G[/td] [td]Code folding: Collapses down to primary Groups [Interface/Implementation][/td] [td]Delphi 2006 and up[/td] [/tr] [tr] [td]Ctrl+Shift+K+N[/td] [td]Code folding: Collapses Namespace/Unit[/td] [td]Delphi 2006 and up[/td] [/tr] [tr] [td]Ctrl+Tab[/td] [td]Switch to the next open file in the editor[/td] [td]Delphi 2006 and up[/td] [/tr] [tr] [td]Ctrl+Shift+Tab[/td] [td]Switch to the previous open file in the editor[/td] [td]Delphi 2006 and up[/td] [/tr] [tr] [td]Ctrl + K + P[/td] [td]Invokes print selection dialog[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + K + W[/td] [td]Invokes Write block to file(selected text)[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + K + R[/td] [td]Invokes Read block from file(inserts text at cursor)[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + K + C[/td] [td]Copies selected text at the end of the selection[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + K + T[/td] [td]Select word at cursor position[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + O + L[/td] [td]Selects current line[/td] [td]Delphi 5 and up[/td] [/tr] [tr] [td]Ctrl + Q + L[/td] [td]Toggles between limiting the Ctrl+Alt navigation shortcuts to the current class, or limiting it to the current unit[/td] [td]Borland Developer Studio 2006[/td] [/tr] [tr] [td]Ctrl + Q + W[/td] [td]Go to next item of Messages window[/td] [td]Delphi 5 and up[/td][/tr][/table]
[[i] 本帖最后由 kendling 于 2008-6-7 16:21 编辑 [/i]]
2008-6-18 20:29
bahamut8348
哇靠,死冬子,中间空那么多,想做什么?
小样,有恶意刷版的嫌疑哦