Recent

Author Topic: What about automatic adding local variable to var definitions ?  (Read 4683 times)

egsuh

  • Hero Member
  • *****
  • Posts: 870
I recently found out that there is a "Find Declaration of ___" when I mouse right click with a variable marked. What about adding menu of "Add local declaration of ...", so that I do not go over to var declaration section? There is issue of data type, but in most cases this is eigher integer for index or string for temporary store string type.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4053
  • I like bugs.
Re: What about automatic adding local variable to var definitions ?
« Reply #1 on: August 13, 2021, 01:30:27 pm »
What about adding menu of "Add local declaration of ...", so that I do not go over to var declaration section?
That is the "Complete code" Ctrl-Shift-C feature.
There is also an interactive dialog version with Ctrl-Shift-X, which is found also in the main Source menu.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

winni

  • Hero Member
  • *****
  • Posts: 2871

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7698
  • Debugger - SynEdit - and more
    • wiki

egsuh

  • Hero Member
  • *****
  • Posts: 870
Re: What about automatic adding local variable to var definitions ?
« Reply #4 on: August 14, 2021, 10:02:49 am »
Thank you for your advices. I'm talking about local variable.

winni

  • Hero Member
  • *****
  • Posts: 2871
Re: What about automatic adding local variable to var definitions ?
« Reply #5 on: August 14, 2021, 10:35:47 am »
I'm talking about local variable.

Me too.

egsuh

  • Hero Member
  • *****
  • Posts: 870
Re: What about automatic adding local variable to var definitions ?
« Reply #6 on: August 14, 2021, 04:15:20 pm »
Oh I see. I used to use Ctrl Shift C to complete methods and it is applicable to local variables as well. Thank you for pointing this out. 

 

TinyPortal © 2005-2018