Making a new file your active one

General questions regarding the usage of CodeLite
bob_sanchez
CodeLite Curious
Posts: 3
Joined: Thu Mar 15, 2012 3:31 am
Genuine User: Yes
IDE Question: C++
Contact:

Making a new file your active one

Post by bob_sanchez » Thu Mar 15, 2012 3:37 am

I am using Codelite version 3.5.5377 on Windows 7.

I am just getting familiar with Codelite and I am having trouble switching active files. How do I do this? Whenever I write, compile, and run a new file Codelite runs the first one I did. I know that Codelite thinks I still want it to run the original and am trying to figure out how to tell it to run new ones.


Sorry if this is a really basic question, I am very new to both C++ and Codelite. Any help is incredibly appreciated.

DavidGH
CodeLite Plugin
Posts: 592
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Making a new file your active one

Post by DavidGH » Thu Mar 15, 2012 3:08 pm

Hi,

If by 'file' you mean 'project', you need to switch between projects first. You can do so from the Workspace View, either by using the 'Select Active Project' tool on its toolbar, or by right-clicking on the project's name and selecting 'Set as Active'.

Regards,

David

bob_sanchez
CodeLite Curious
Posts: 3
Joined: Thu Mar 15, 2012 3:31 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Making a new file your active one

Post by bob_sanchez » Thu Mar 15, 2012 11:46 pm

DavidGH wrote:Hi,

If by 'file' you mean 'project', you need to switch between projects first. You can do so from the Workspace View, either by using the 'Select Active Project' tool on its toolbar, or by right-clicking on the project's name and selecting 'Set as Active'.

Regards,

David
Ah, there we go. I thought that it was handled on a file-by-file basis as opposed to on the project level. That's probably the issue.

Thanks for the help!

bob_sanchez
CodeLite Curious
Posts: 3
Joined: Thu Mar 15, 2012 3:31 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Making a new file your active one

Post by bob_sanchez » Fri Mar 16, 2012 12:15 pm

Never mind, still struggling with this. Despite changing active status at the project level, it still runs certain files regardless of what I compile and attempt to instruct it to run. I am completely vexed.

To elaborate: whenever I start a new project and file, the file never responds. The "hello world" program under main.cpp is the only thing that will run, and it is under all new workspaces and projects, I can't get rid of it. I don't understand why this is happening.

User avatar
eranif
CodeLite Plugin
Posts: 5959
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Making a new file your active one

Post by eranif » Fri Mar 16, 2012 1:33 pm

bob_sanchez wrote: it still runs certain files regardless of what I compile and attempt to instruct it to run
I am not sure what does "run files" means, but executable can be run

codelite will execute whatever it is instructed in the project settings (right click on the project -> settings -> general -> "Program to Run / Debug")
so it does not matter which file is opened in the editor, it will always run the same file it is instructed.

Each project is capable of handling one target (executable, dll, shared-library, archive etc) - if you want to create multiple executables, each executable should have its own project

Eran
Make sure you have read the HOW TO POST thread

Post Reply