It is currently Wed Jan 27, 2021 10:13 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Create executable shortcut
PostPosted: Wed Nov 04, 2020 10:33 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Dec 30, 2007 7:24 pm
Posts: 108
Getting back into using PureBasic after a long absence, and in the intervening period I seem to have forgotten how to use the IDE effectively ;-)

Now, it so happens I'm building a set of command line tools...and I'm noting that just because that hopefully explains why I don't just use the existing Compile/Run toolbar button or else the F5 keyboard shortcut.

So, the thing is that when I want to (re-)build my executable then, via the IDE, I can of course do this: Compiler → Create Executable → [Select Target File]. But I'm lazy, that's too many clicks for me. What I really want is a button on the toolbar (like the existing Compile/Run button) or else a keyboard shortcut (just like we have F5 for Compile/Run) and I want it to remember the target filename.

In other words, I want this workflow:

- Make a change
- Recompile (and build the executable) with a single click or keystroke
- Mess around with the updated executable via my shell

Is there a way to set this up in the IDE?


Top
 Profile  
Reply with quote  
 Post subject: Re: Create executable shortcut
PostPosted: Thu Nov 05, 2020 1:19 am 
Offline
Addict
Addict
User avatar

Joined: Tue Oct 09, 2007 2:15 am
Posts: 1151
I do it this way....

Image

_________________
PureBasic 5.72 LTS (Windows x86/x64) | Windows10 Pro x64 | Z370 Extreme4 | i7 8770k | 64GB RAM | iChill GeForce RTX 2080 Super | HAF XF Evo​​
English is not my native language... (I often use DeepL to translate my texts.)


Top
 Profile  
Reply with quote  
 Post subject: Re: Create executable shortcut
PostPosted: Thu Nov 05, 2020 2:27 am 
Offline
Addict
Addict
User avatar

Joined: Tue Dec 23, 2003 3:54 am
Posts: 1869
As Bisonte showed, go to Preferences > General > Toolbar and add buttons as you wish.

Also, go to Preferences > General > Shortcuts too. I use Ctrl+B to Create Executable, or if I'm working in a project, Ctrl+Shift+B to Build All Targets.

_________________
On GitHub: PB Includes - IDE Tools - Color Themes - IDE Branches - TabBarGadget Mods


Top
 Profile  
Reply with quote  
 Post subject: Re: Create executable shortcut
PostPosted: Thu Nov 05, 2020 3:33 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Dec 30, 2007 7:24 pm
Posts: 108
Thank you!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye