Page 1 of 1

[IDE] Compiled file (executable) name

Posted: Wed Apr 08, 2015 12:50 pm
by Inf0Byt3
Two suggestions regarding the executable creation / compilation:

Currently, each time we select 'Create executable' from the menu, a dialog to select the output filename appears. This dialog also has a filter for the file extension, but it seems that the extension gets added automatically to the output file. This is bad because i'd want for example to create an output file called libname.so.1.0.0 but PB creates libname.so.1.0.0.so. It would be nice if PB remembered the name entered for the compiled file and would not append automatically an extension when not needed.

Another thing that would be nice is the addition of a keyboard shortcut for the "Build all targets" option, just like we have F5 for Compile/Run. - never mind this one (thanks kenmo :mrgreen: )

Re: [IDE] Compiled file (executable) name

Posted: Wed Apr 08, 2015 1:09 pm
by kenmo
Inf0Byt3 wrote:... This dialog also has a filter for the file extension, but it seems that the extension gets added automatically to the output file. This is bad because i'd want for example to create an output file called libname.so.1.0.0 but PB creates libname.so.1.0.0.so...
I think that is the way most (Windows) save dialogs work, unless "All Files (*.*)" is selected, then no extension will be added. BUT it seems like the IDE always defaults to "Executable" so you have to select "All Files" every time... maybe the IDE should remember your filter selection?
Inf0Byt3 wrote:Another thing that would be nice is the addition of a keyboard shortcut for the "Build all targets" option, just like we have F5 for Compile/Run.
There is no default shortcut, but we have the option to create one in the preferences, I use Ctrl+Shift+B.

Re: [IDE] Compiled file (executable) name

Posted: Wed Apr 08, 2015 1:25 pm
by Inf0Byt3
kenmo wrote: I think that is the way most (Windows) save dialogs work, unless "All Files (*.*)" is selected, then no extension will be added. BUT it seems like the IDE always defaults to "Executable" so you have to select "All Files" every time... maybe the IDE should remember your filter selection?
Yes, that would solve it elegantly.
kenmo wrote: There is no default shortcut, but we have the option to create one in the preferences, I use Ctrl+Shift+B.
The IDE is much more flexible than I thought. Somehow it slipped past me that we had this option. Thanks for the help.

Re: [IDE] Compiled file (executable) name

Posted: Wed Apr 08, 2015 1:59 pm
by kenmo
Inf0Byt3 wrote:The IDE is much more flexible than I thought. Somehow it slipped past me that we had this option. Thanks for the help.
I made the exact same mistake before :) http://www.purebasic.fr/english/viewtop ... 18&t=45783