News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Empty file as default C++ source

Started by hyphen, October 10, 2010, 07:38:33 PM

Previous topic - Next topic

hyphen

I'm very new to CodeBlocks IDE. My use of CB is just for normal C/C++ file compilation not any project. I do project work in MSVC only.

So I need to get a simple interface which let me code in a default c++ file. ie: after opening CB I want to just click empty file and start writing c/c++ codes. And without saving it I wanna compile and run. C-Free have this facility but thats not free. Anyway to do it in CB ?

stahta01

#1
Code::Blocks IS NOT a compiler!!!!!!!

So, if you can find a compiler that does NOT require a source file to compile; you might have a chance; I do NOT think a thing like that exists.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

hyphen

Is there any shortcut to directly start a predefined empty C/C++ source file.

oBFusCATed

Look at the settings, there was an option for default content in the newly created files...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

hyphen

default content in the newly created files

but the newly created file is not saved before user saves it..

oBFusCATed

There are 3 ways to save a file:
1. Ctrl+S
2. Toolbar button
3. File->Save

Why don't you want to save your file  :shock: :shock: :shock: :shock: :shock: ?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

hyphen

Just for fast programming. As I dont use CodeBlocks for projects, I juts need to use this IDE for some small code check and instant compiling and running. Anyways I got my point, its not possible in CB what Im trying to do. It requires C-Free which servers my purpose well..

hyphen

A simpler way is to open from recent file.

Is it possible to modify any CB script to bind any working of any wizards ?

oBFusCATed

Yes, right click -> edit template script
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]