Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Irregular comportement for the F11 shortcut

<< < (2/2)

MortenMacFly:

--- Quote from: Loumnam on March 26, 2010, 12:54:34 pm ---But it creates array.CPP, while I am in a C project!

--- End quote ---
There is no such thing like a C project. All projects are C/C++. However, to create the right file for you (with an extension .c) why don't you simply name the full file name, including the extension as you need, like "blah.c"?!

*.h files are also valid for C++, so the IDE cannot know what exactly you want to do (unless you tell by the file extension yourself).

oBFusCATed:

--- Quote from: MortenMacFly on April 11, 2010, 08:07:50 pm ---There is no such thing like a C project. All projects are C/C++. However, to create the right file for you (with an extension .c) why don't you simply name the full file name, including the extension as you need, like "blah.c"?!

*.h files are also valid for C++, so the IDE cannot know what exactly you want to do (unless you tell by the file extension yourself).

--- End quote ---
Yes but hitting f11 in a header (blah.h) doesn't ask you if you want to create .cpp or .c, it always creates blah.cpp file.

MortenMacFly:

--- Quote from: oBFusCATed on April 11, 2010, 08:11:28 pm ---Yes but hitting f11 in a header (blah.h) doesn't ask you if you want to create .cpp or .c, it always creates blah.cpp file.

--- End quote ---
Not for me :-)

But I recall that I did some modifications in that part of C::B literally ages ago... probably I did that already and forgot to submit... I need to check...

Navigation

[0] Message Index

[*] Previous page

Go to full version