lukehaas / RunJS

RunJS is a JavaScript playground for macOS, Windows and Linux. Write code with instant feedback and access to Node.js and browser APIs.
https://runjs.app
2.01k stars 43 forks source link

Feature request - Add shortcut to trigger suggest #568

Closed oscarhn27 closed 1 month ago

oscarhn27 commented 1 year ago

Suggestions in pro version are very useful. But they has a problem, if you don't type anything the suggestions not appear. Has sense because the app can't predict what the user wants, but in some cases it could and is a big help.

In the next example, the app knows the type of the first param, is an interface, but the user can't be helped if not type a letter: Screenshot_20230708_125224

This problem is solved in VSC with the action Trigger Suggest with the shortcut Ctrl + Space and I think is very useful.

lukehaas commented 1 year ago

Thanks, @oscarhn27. Aiming to add support for this in a future release 👍

lakardion commented 11 months ago

Please. I have this issue from some time as well. The information is there we just need the prompt to appear so that we know what options we have from TS inference

lukehaas commented 1 month ago

@oscarhn27 @lakardion this is now supported in the latest release of RunJS. The shortcut is ctrl+space