Question about auto-complete

Just starting out? Need help? Post your questions and find answers here.
Rich Dersheimer
New User
New User
Posts: 7
Joined: Mon Oct 14, 2019 4:40 pm

Question about auto-complete

Post 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
wombats
Enthusiast
Enthusiast
Posts: 722
Joined: Thu Dec 29, 2011 5:03 pm

Re: Question about auto-complete

Post by wombats »

Press the Tab key instead of Enter.
firace
Addict
Addict
Posts: 947
Joined: Wed Nov 09, 2011 8:58 am

Re: Question about auto-complete

Post by firace »

TAB key :)

And welcome to PureBasic :)
#NULL
Addict
Addict
Posts: 1499
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: Question about auto-complete

Post by #NULL »

You can change it to use the Return key in Preferences > General > Shortcuts > 'Insert the selected AutoComplete word'
Rich Dersheimer
New User
New User
Posts: 7
Joined: Mon Oct 14, 2019 4:40 pm

Re: Question about auto-complete

Post by Rich Dersheimer »

Thanks guys for the quick response! I will use the TAB key for sure.
User avatar
mk-soft
Always Here
Always Here
Posts: 6412
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Question about auto-complete

Post by mk-soft »

I have change to 'Enter' :wink:
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Marc56us
Addict
Addict
Posts: 1600
Joined: Sat Feb 08, 2014 3:26 pm

Re: Question about auto-complete

Post 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...
User avatar
skywalk
Addict
Addict
Posts: 4262
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Question about auto-complete

Post by skywalk »

I also prefer the [Enter] key.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
BarryG
Addict
Addict
Posts: 4269
Joined: Thu Apr 18, 2019 8:17 am

Re: Question about auto-complete

Post by BarryG »

Marc56us wrote:And by pressing Tab twice, the completion adds the matching keyword
Nice! I wasn't aware of that. Thank you.
Post Reply