Page 1 of 1

Question about auto-complete

Posted: Tue Oct 22, 2019 4:11 pm
by Rich Dersheimer
I'm new to PureBasic and liking it a lot.

Question: when I'm typing in some code, and the auto-complete suggests one or more commands, how do I get the command I want to actually be used? If I down arrow to the command I want, and hit the ENTER key, I'm expecting the command to complete, but instead I get a new line and the command is NOT completed. I've been double clicking the command I want, and that does work, but it seems very awkward to have to take my hand off the keyboard and click the command twice. Is there a better way to do this?

TIA,
Rich

Re: Question about auto-complete

Posted: Tue Oct 22, 2019 4:13 pm
by wombats
Press the Tab key instead of Enter.

Re: Question about auto-complete

Posted: Tue Oct 22, 2019 4:15 pm
by firace
TAB key :)

And welcome to PureBasic :)

Re: Question about auto-complete

Posted: Tue Oct 22, 2019 4:16 pm
by #NULL
You can change it to use the Return key in Preferences > General > Shortcuts > 'Insert the selected AutoComplete word'

Re: Question about auto-complete

Posted: Tue Oct 22, 2019 4:29 pm
by Rich Dersheimer
Thanks guys for the quick response! I will use the TAB key for sure.

Re: Question about auto-complete

Posted: Tue Oct 22, 2019 4:43 pm
by mk-soft
I have change to 'Enter' :wink:

Re: Question about auto-complete

Posted: Tue Oct 22, 2019 5:35 pm
by Marc56us
And by pressing Tab twice, the completion adds the matching keyword
(Procedure :arrow: EndProcedure, Enumeration :arrow: EndEnumeration etc)
Very usefull :P

If not, change:
Preferences > File > AutoComplete > [X] Add matching 'End' keyword...

Re: Question about auto-complete

Posted: Tue Oct 22, 2019 7:26 pm
by skywalk
I also prefer the [Enter] key.

Re: Question about auto-complete

Posted: Tue Oct 22, 2019 10:02 pm
by BarryG
Marc56us wrote:And by pressing Tab twice, the completion adds the matching keyword
Nice! I wasn't aware of that. Thank you.