Place text cursor on identifier (do not select anything).Hint: Quick searching an identifier with incremental search Paste Ctrl+ V will append the text from the clipboard to the current search text (since lazarus 0.9.27 r19824).that is while the search term is still empty. You can resume the last search by pressing Ctrl+ e a second time, immediately after you started incr-search with Ctrl+ e.return stops the search without adding a new line in the editor.You can jump to the next with F3 (or Ctrl+ e while in search) and the previous with ⇧ Shift+ F3.Then pressing t will search and highlight all occurrences of 'et' and so forth.For example pressing e will search and highlight all occurrences of 'e'.Type some characters and the editor will search and highlight immediately all occurrences in the text. Incremental Search changes the statusbar of the source editor. Note: The short cut's name is "Show code context". Write the identifier 'classf', leave the cursor right behind the 'f' and press Ctrl+ J. Code Templates can be defined in Tools -> Options -> CodeTools. You can type an identifier, press Ctrl+ J and the identifier is replaced by the text defined for the identifier. If you are working on both, then you can get confused. )Ĭode Templates converts an identifier into a text or code fragment.Ĭode Templates default short cut is Ctrl+ J. If you worked on lcl/interfacebase.pp, then it will jump to lcl/include/interfacebase.inc (or one of the other include files). If you worked on lcl/lclintf.pp the IDE will jump to winapi.inc. How you will jump from the procedure/method definitions in this include file to their bodies will depend on your last action. Some include files are included twice or more. Include files are files inserted into sources with the at the top of yourinclude.inc. Since you renamed only one procedure there is exactly one body without definition (DoSomething) and so it will jump to DoSomething and position the cursor right on 'DoSomething'. The IDE searches for a fitting body, does not find one, and hence searches for a candidate. Interface procedure MakeIt // procedure definition implementation procedure DoSomething // procedure body begin end To jump between a procedure body (begin.end) and the procedure definition (procedure Name ) use Ctrl+ ⇧ Shift+ ↑. Summary Table of IDE shortcuts Declaration JumpingĬtrl+Click or Alt+ ↑ (jump to declaration of type or variable)Ĭtrl+ ⇧ Shift+ ↑ (toggle between definition and body)Ĭtrl+ ⇧ Shift+ C, Ctrl+ ⇧ Shift+ X for creating class fields instead of local variables 12.1 Matching only the first part of a word.6.1 Hint: Quick searching an identifier with incremental search.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |