Shortcut to #PB_Any?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
AMpos
Enthusiast
Enthusiast
Posts: 128
Joined: Fri Jun 05, 2020 12:47 am

Shortcut to #PB_Any?

Post by AMpos »

I would like to define "typing shortcuts".

For example, I can define "##" as "#PB_Any", so in editor if I type "##" after presing space or comma or tab, it will be changed to "#PB_Any"

or perhaps I can type #o for "=OpenFile(#PB_Any,"

(In my iPhone I have defined "@a" to "ampostata@gmail.com" so I have not to type it everytime full)

(Or perhaps I am wrong and it can be done currently...)
BarryG
Addict
Addict
Posts: 4130
Joined: Thu Apr 18, 2019 8:17 am

Re: Shortcut to #PB_Any?

Post by BarryG »

AMpos wrote:I would like to define "typing shortcuts"
+1, and for anything we specify. For example, so I could type '' (two apostrophes) and the IDE would insert Chr(34). And no, not interested in macros for this because macros don't work for everything, plus they need to be inserted in every source at some point. So just a simple, straight-forward, IDE auto-complete.
User avatar
chi
Addict
Addict
Posts: 1087
Joined: Sat May 05, 2007 5:31 pm
Location: Austria

Re: Shortcut to #PB_Any?

Post by chi »

Try LazyCoder (Windows only)
Et cetera is my worst enemy
User avatar
Derren
Enthusiast
Enthusiast
Posts: 316
Joined: Sat Jul 23, 2011 1:13 am
Location: Germany

Re: Shortcut to #PB_Any?

Post by Derren »

Or TyperTask

One can perhaps write an IDE Tool for this as well?
BarryG
Addict
Addict
Posts: 4130
Joined: Thu Apr 18, 2019 8:17 am

Re: Shortcut to #PB_Any?

Post by BarryG »

I'd like it built-in so no tools or third-party solutions are needed.
Post Reply