GLBasic forum

Feature request => IDE/Syntax => Topic started by: mentalthink on 2011-Dec-24

Title: A little question, about open Samples
Post by: mentalthink on 2011-Dec-24
It´s possible to open samples files?¿, whitout creating a new File, sometime I open the IDE and I want open a sample, but I have to load some project or make a new project...

Title: Re: A little question, about open Samples
Post by: Ruidesco on 2011-Dec-25
The easiest way that comes to mind is just double-clicking the .gbaP file in an explorer window, it opens GLBasic with the file directly visible.

[edit]
Use the gbaP (Project) files if applicable. If you only open an gbaS (Source) file, it "might" create a new project but usually gives you some headache at some point.
Title: Re: A little question, about open Samples
Post by: kanonet on 2012-Jan-09
I think thats not what mentalthink wanted to say. I know this problem: You want to open a sample, your samples are in a very deep folder and you are to lazy to navigate there with windows explorer. So fastest way to get to the samples folder is to open to GLB IDE an and click on samples... but you cant, cuz the menu point "samples" is greyed out, until you open an existing project or start a new one.
Hope i understand it right, at least thats my problem.
Title: Re: A little question, about open Samples
Post by: Kitty Hello on 2012-Jan-10
oh. Thanks for pointing that out.
Title: Re: A little question, about open Samples
Post by: spicypixel on 2012-Apr-22
Sometimes I just wanna paste code in and run it without having to have a project setup. It's handy to have code you can just run to do calculations or whatever and then use that output to better assist your "project" and it's annoying not being able to do that. I mentioned this before but no-one seemed to mind.
Title: Re: A little question, about open Samples
Post by: Ian Price on 2012-Apr-22
I think it's because we're all so used to the way it works now, but it would be nice just to run a quick test and not have to create a new project.
Title: Re: A little question, about open Samples
Post by: hardyx on 2012-Apr-22
I use notepad++ when I want to open files only for reading without a project.
Title: Re: A little question, about open Samples
Post by: kanonet on 2012-Apr-23
Quote from: spicypixel on 2012-Apr-22Sometimes I just wanna paste code in and run it without having to have a project setup.
Thats why i have a Project "Test1" (and also "Test2"...), so i can run snippets without creating a new projects, when im done i can paste the next snippet...
Title: Re: A little question, about open Samples
Post by: Ian Price on 2012-Apr-23
QuoteThats why i have a Project "Test1" (and also "Test2"...), so i can run snippets without creating a new projects, when im done i can paste the next snippet...
I do too, but sometimes it would be great just to run something quickly and then later decide if it's worth saving as a project.
Title: Re: A little question, about open Samples
Post by: okee on 2012-Apr-23
I've gotten to like the GLB IDE but yeah, an option to compile the current code file that's got the focus on it's own would be nice.
i.e. it would disregard the "Build for" options and just compile for the current platform that
you're running on such as windows.
Title: Re: A little question, about open Samples
Post by: spicypixel on 2012-Apr-23
I too have a Test project set up but the fact that we all do this is more reason why it would be nice :)
Title: Re: A little question, about open Samples
Post by: Kitty Hello on 2012-Apr-24
I have a project "_sample", so the underscore will list as the first file. There I copy/paste examples.
Title: Re: A little question, about open Samples
Post by: spicypixel on 2012-Apr-24
Hehe amusing that Gernot wants to just run code too sometimes ;)