apple / pkl-intellij

JetBrains editor plugins providing Pkl language support
https://pkl-lang.org/intellij/current/index.html
Apache License 2.0
49 stars 10 forks source link

Support for suggestions / available properties #17

Closed StefMa closed 6 months ago

StefMa commented 6 months ago

Hello,

when using the pkl-intellij plugin I like to see all possible properties than I can override so that I have n idea what I can do/override/set.

For example, when working on a normal Kotlin project and I create a class instance, I can see which methods are available (via the dot operator): Screenshot 2024-03-06 at 8 05 13 AM

For functions, I can press Command + P (macOS) to see all possible parameters I might have to pass in: Screenshot 2024-03-06 at 8 06 31 AM

It seems that the pkl plugin I don't have such a shortcut. I can only see what a class supports by typing and hoping that my desired property shows up: Screenshot 2024-03-06 at 8 09 43 AM While in this case typing p suggest me every possible property, I have bad luck with a: Screenshot 2024-03-06 at 8 10 10 AM

stackoverflow commented 6 months ago

You can press ctrl+space (MacOS) to show all possible completions at cursor without typing anything.

StefMa commented 6 months ago

Another day, another learning 🙃 Thanks @stackoverflow ! Exactly what I was looking for.

Screenshot 2024-03-14 at 12 57 14 PM