Recent

Author Topic: Difficulties invoking Code Completion on a Mac? [SOLVED]  (Read 488 times)

carl_caulkett

  • Hero Member
  • *****
  • Posts: 649
Difficulties invoking Code Completion on a Mac? [SOLVED]
« on: October 02, 2024, 09:49:40 am »
* Mac Mini M1
* macOS 14.6.1
* Lazarus 3.99
* FPC 3.3.1

If, like me, you were having difficulties invoking Code Completion because the Ctrl-Space shortcut was already used by macOS for its Input Sources selection, you can get things working by...
"System Settings" -> "Keyboard" -> "Keyboard Shortcuts" -> "Input Sources" and just uncheck the option for Ctrl-Space. On my system, at least, I can control the Input Source from an icon on the Menu Bar.
 
« Last Edit: October 02, 2024, 07:54:30 pm by carl_caulkett »
"It builds... ship it!"

carl_caulkett

  • Hero Member
  • *****
  • Posts: 649
Re: Difficulties invoking Code Completion on a Mac?
« Reply #1 on: October 02, 2024, 11:12:07 am »
Now that I've sorted out the code completion on a Mac, is there any way to invoke the parameter insight panel on demand, the one that pops up after you type the "(" key? In other words can you go back to an existing piece of code, place the cursor between a pair of brackets and invoke the parameter guide? I know that if I delete the "(" and then type it again, the parameter list appears, but there must surely be a more elegant method!

This is what I'm talking about...
« Last Edit: October 02, 2024, 11:42:46 am by carl_caulkett »
"It builds... ship it!"

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10551
  • Debugger - SynEdit - and more
    • wiki
Re: Difficulties invoking Code Completion on a Mac?
« Reply #2 on: October 02, 2024, 12:13:01 pm »
Parameter Completion (Win/Linux):  Ctrl - Shift - Space

I don't know what control keys that are on the Mac...

daniel_sap

  • Jr. Member
  • **
  • Posts: 64
Re: Difficulties invoking Code Completion on a Mac?
« Reply #3 on: October 02, 2024, 12:35:55 pm »
On my Mac I use control+option+space and works fine

carl_caulkett

  • Hero Member
  • *****
  • Posts: 649
Re: Difficulties invoking Code Completion on a Mac?
« Reply #4 on: October 02, 2024, 02:12:03 pm »
Parameter Completion (Win/Linux):  Ctrl - Shift - Space

I don't know what control keys that are on the Mac...

Thanks Martin_fr! Ctrl - Shift - Space works on my Mac as well.
"It builds... ship it!"

carl_caulkett

  • Hero Member
  • *****
  • Posts: 649
Re: Difficulties invoking Code Completion on a Mac?
« Reply #5 on: October 02, 2024, 02:14:30 pm »
On my Mac I use control+option+space and works fine

Thanks for the reply. Strange, that didn't work for me, but Martin's suggestion of Shift+Ctrl+Space did!
"It builds... ship it!"

JdeHaan

  • Full Member
  • ***
  • Posts: 150
Re: Difficulties invoking Code Completion on a Mac?
« Reply #6 on: October 02, 2024, 06:57:15 pm »
Interesting. I use the standard Lazarus installation from Trunk on my Mac (Sequoia).

Cursor on proc/func name:
Ctrl - Space gives full signature - name and parameters + types

carl_caulkett

  • Hero Member
  • *****
  • Posts: 649
Re: Difficulties invoking Code Completion on a Mac?
« Reply #7 on: October 02, 2024, 07:47:10 pm »
Interesting. I use the standard Lazarus installation from Trunk on my Mac (Sequoia).

Cursor on proc/func name:
Ctrl - Space gives full signature - name and parameters + types

I've installed Alfred and Raycast (not together!) and both of those involved messing with Space + various modifiers, so that's probably why mine is non-standard!
"It builds... ship it!"

 

TinyPortal © 2005-2018