Silver Falcon
Silver Falcon

Reputation: 176

Configure Netbeans basic settings

I want to configure netbeans 7.4 settings for c++. I'm posting here because netbeans forums are close to dead. Can anyone tell me how to do the following things :-

1) When you create a new project of a 'new application' type, main.cpp is already there with some code. I want that main.cpp to be completely empty when I create a new project.

2) When you compile/build your program and run it, the output is shown in a small log window at the bottom. I want it to be shown like in a black output terminal (console ?) just like in Visual Studio or CodeBlocks. (I have some reasons for not using them instead, so don't bother about me not using them)

3) When you click the green 'Run' icon in the upper toolbar, the project is compiled/build again and then runs afterwards. I want it to just run without compiling. (Compiling/Building should be done by 'Build' icon, just like in CodeBlocks or Visual Studio)

Any help would be appreciated.

Upvotes: 0

Views: 186

Answers (1)

Steve Henningsgard
Steve Henningsgard

Reputation: 56

Edit Templates:

Tools -> Templates -> C++ -> C++ Main File -> Open In Editor

Run Without Recompiling: In Terminal Window, click "Re-Run" - incorrect, re-researching...

*edit: found this explanation on the 'net:

"The trick is to look at the .xml files in the harness directory inside the installation of NetBeans. Search for the one containing the "run" target and copy the target into your project's build.xml, renaming it (e.g. to fastrun). Then, remove in the "depends" attribute the reference to the targets that build the system. For instance, for RCP applications this does the trick (sorry, I've never done this in regular applications, but shouldn't bee too different):

<target name="fastrun" depends="-init,branding,-jdk-init"> 
<ant antfile="${harness.dir}/run.xml" target="run"/> 
</target>

-http://forums.netbeans.org/post-1041.html"

Upvotes: 1

Related Questions