Suggestion -- Run last compile with F6

Working on new editor enhancements?
syntax error
User
User
Posts: 93
Joined: Tue Jan 13, 2004 5:11 am
Location: Midlands , UK

Suggestion -- Run last compile with F6

Post by syntax error »

I tend to use a variety includes when developing.
All of which I load up into the IDE ...


PB EDITOR
[main code][gui][constants][subs]

Now, let's suppose I choose [main code] and hit F5 to run.
No problem. If I wish to change something in the subs though I need to click the [subs] tab, edit the code, save modifications, click back to [main code] then F5 to re-test.

As you can imagine, this is a little bit of a chore.

So, how about F6 to 'Run last compiled code' ?

What this would do is simply run the [main code] (that is, the last code lauched with F5) and leave the IDE as is.
So, if I'm ammending the [subs] I can just save and F6 to test.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

What about F8?

Because jaPBe use now:
F5 Compile without Debugger
F6 Compile with Debugger (for IDE: Toggle Debugger?)
F7 Create Executable
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

Avoid keys near to each other.
You should know how often i press F5 and 6 together.
In another editor i delete rest of line with it then F5 also works but does saves contents first.
Undo is impossible then..

(Lost my code)
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

F8 sounds good. In fact any way to do this sounds good!

I use syntax error's approach.

I often run a modded include instead of going back to the main prog. :? And then spend a moment wondering what happened. So this would really be great for the absent-minded and easily confused types like me.

Perhaps this would also refocus or tab back to the code being run? A very visual advice of what is actually being done. :)
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Dare2 wrote:I often run a modded include instead of going back to the main prog. :?
Btw: in jaPBe you can set a mainfile. So when you compile a include the mainfile is compiled.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Aha.

Okay, found that option. Thanks! :)
Post Reply