Code completion and keystrokes

I see from the menu that Cmd-Space and Opt-Cmd-Space are the commands for CC and “Peak at Definition” (which should btw be “Peek at Definition”; Peak = mountaintop, Peek = quick look). Even when the editor is focused, those commands on my Mac open Spotlight search menu and the full Spotlight search. I’m not expert on command keys in OSX but is this normal behavior? (I would’ve thought that the focused window would get first crack at the keys). I see that Esc does the same as what Cmd-Space is supposed to do.

Also, I’ve kind-of gotten used to a world where typing Class. pops up CC when the period is hit, and not just when a modifier key is pressed. Is it intended that CC should only be available on explicit demand?

Ouch, of course :wink:

yeah, you’ll need to turn Spotlight off for these to work (i never thougt of that, coz i already have that off for using VS in the VM ;).

Excape will also trigger CC, as is official Mac style. Cmd-Space is provided mauly for Visual Studio muscle memory. So i’ll leave Cmd-Space as is.

I’ll review options for Peek at Definition.

OK. So CC won’t appear automatically on typing the period.

But supposed you’ve hit Esc or Cmd+Space and the CC list is showing. Should typing further (which doesn’t dismiss CC) update CC to agree with the newly-typed text until a space is typed?

Speaking of keystrokes (I just turned off F1 in FunctionFlip so I can use it for Dash), I hadn’t known about Dash before today. Awesome tool. And I added tons of doc sets to it for other stuff too.

Thanks for the recommendation.

CC is still pretty rough (be glad it pops up at all ;), but all of this will work, once i get back to fully implementing CC, yes.

Got it. This is what you get for releasing a pre-alpha that already does so much so well!

1 Like