IDE only

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

IDE only

Post by skywalk »

Can we have a single character alias for DEBUG?
like ' or `
I use Debug a lot and it's kinda silly to type 5 letters each and every time.
Probably the same for the parser?
REM was collapsed to ';' so why not DEBUG?

I promise I'll add others. :)


Thanks,
...just another VB castaway requesting permission to come aboard.
Last edited by skywalk on Tue Feb 12, 2013 12:41 am, edited 1 time in total.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: IDE only

Post by freak »

Code: Select all

Macro _: Debug: EndMacro

_ "Yellow World!"
:wink:
quidquid Latine dictum sit altum videtur
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: IDE only

Post by skywalk »

Freak'd again! and so quickly!

Thanks that works for me.
But I cannot substitute any other char's in place of the '_' in the Macro?

I was hoping the '_' would be reserved for line continuation.
That's why I suggested ` or '.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: IDE only

Post by Fred »

just just another valid character: 'D' ?
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: IDE only

Post by Kaeru Gaman »

do you need API in the Autocomplete?
if not, Debug is the first entry in "de".
this reduces the number of keys to type to three:
type "de"+TAB, and the space after Debug is also already there.

I have API in my Autocomplete, but I'm doin fine with "deb"+TAB
oh... and have a nice day.
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: IDE only

Post by skywalk »

Ah, Fred.
Didn't think to insert a letter. I thought that would confuse me since I sometimes use 'D' as a variable. So I am good with '_' until you add line continuation character. :)

Thanks KG, but the macro works for me. Just stick it in a "common.pb" and load with Project.

Can I still leave the request in to collapse 'DEBUG'?
Last edited by skywalk on Tue Feb 12, 2013 12:41 am, edited 1 time in total.
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: IDE only

Post by skywalk »

Apologize if this has been asked before? More VB6 IDE sadness... :(
Probably just "old dog...new tricks", but this is really slowing me down in converting and editing code in PB.

1. If my cursor is on a variable or procedure or keyword...
Hit Shift-[F2] and the IDE jumps to either that variable's definition or procedure declare.

PB's equivalent [Ctrl]-DblClk only works for procedures.
Can we add variables and constants* too?

*Why doesn't the [F1] key jump to the Constant definition and its value?
As a new user, I don't have all the internal constants memorized(not to mention ones I create) and it would be great to jump back and forth.

2. Searching is good in one direction with [F3].
Why can't I reverse the search order with Shift-[F3]?

3. Are there Macros for the IDE that we can customize?
I did see external tools mentioned on the forum, but hesitate to go there yet.
Post Reply