Recent

Author Topic: key to jump to end of procedure/method  (Read 1203 times)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11459
  • FPC developer.
key to jump to end of procedure/method
« on: August 04, 2015, 11:44:46 am »

Is there a keycombo to jump to jump to end of procedure/method ?

I use classic theme + keybindings.

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: key to jump to end of procedure/method
« Reply #1 on: August 04, 2015, 04:26:31 pm »
I didn't find any. But I successfully created a macro (I assigned Ctrl+Alt+E shortcut for it).

When caret was on procedure declaration I jumped to implementation (Ctrl+Shift+Up) then move caret up to begin, Ctrl+Q, O jumps to the other end of blocks, enter for new empty line, move caret up and twice space to indentation.
Code: [Select]
ecFindProcedureDefinition;
ecUp;
ecFindBlockOtherEnd;
ecLineBreak;
ecUp;
ecChar(' ');
ecChar(' ');
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

 

TinyPortal © 2005-2018