Author Topic: Default project  (Read 2554 times)

Offline ordak

  • Multiple posting newcomer
  • *
  • Posts: 105
    • My Site
Default project
« on: September 18, 2017, 05:17:11 pm »
Hi,

How can I set a project as default project in Code::Blocks ?

By default project I mean a project that is opened after Code::Blocks execution.
Code::Blocks SVN
OS : Ubuntu LTS

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Default project
« Reply #1 on: September 18, 2017, 06:01:06 pm »
There is no easy way to do this (but there are multiple hard ways to do it ;) ...
What project should be loaded? A created project, or a new project?

Offline ordak

  • Multiple posting newcomer
  • *
  • Posts: 105
    • My Site
Re: Default project
« Reply #2 on: September 19, 2017, 09:34:02 am »
There is no easy way to do this (but there are multiple hard ways to do it ;) ...
What project should be loaded? A created project, or a new project?

A created project. This is not a high priority for me though.
Code::Blocks SVN
OS : Ubuntu LTS

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Default project
« Reply #3 on: September 19, 2017, 03:27:33 pm »
Always a fixed project?
You could hard code the project loading in the startup script:
Settings->Edit startup script
and paste the following code in it:
Code
GetProjectManager().LoadProject(_("PATH/TO/YOUR/PROJECT"), true);

it would probably also be possible to load the last activated project somehow....