Recent

Author Topic: Ctrl+Shift+C not creating a forward declaration?  (Read 196 times)

Flight714

  • New Member
  • *
  • Posts: 13
Ctrl+Shift+C not creating a forward declaration?
« on: November 12, 2019, 10:35:46 pm »
I was just running through a tutorial and saw this:

Quote
Now, place your cursor inside the procedure and press Ctrl+Shift+C. That will create a forward declaration under the TForm1 class.

The problem is, that doesn't seem to work for me. When I place my cursor inside a procedure and press Ctrl+Shift+C, nothing happens.

Is there an alternate shortcut I should use? Thank you.

winni

  • Hero Member
  • *****
  • Posts: 609
Re: Ctrl+Shift+C not creating a forward declaration?
« Reply #1 on: November 12, 2019, 11:55:37 pm »
Hi!

Shift Ctrl C is the default and should work on all systems. Try:

Code: Pascal  [Select]
  1. Procedure TForm1.HumptyDumpty;
  2. begin
  3.  
  4. end;

Press Shift Ctrl C inside this procedure results in

Code: Pascal  [Select]
  1. TForm1 = class(TForm)
  2.   ...
  3.  
  4. private
  5. procedure  HumptyDumpty;
  6. ....
  7. end;
  8.  

Test it. Or have you played around with the keyboard shortcuts?

Winni

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5801
    • wiki
Re: Ctrl+Shift+C not creating a forward declaration?
« Reply #2 on: November 13, 2019, 01:25:22 am »
Just a guess...

"inside" the procedure. But maybe if you are on/at an other identifier it attempts to act on that identifier instead (which may lead to no result).