Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: zend on October 16, 2019, 10:53:39 am

Title: Split windows and defines in C++
Post by: zend on October 16, 2019, 10:53:39 am
Hello,

First of all, thank you for your product. I'm very happy using it.

I have several quesions how to use the product.
1) I can split window using single source file. But several times I need to compare different files sources. Is it possible to cplit window and have, for example, one c++ source file at the left side, and the another one at the right?

2) I have defines in header files, for example
#define SOURCE_CODE_USED

in C file i have ifdef:
#ifdef SOURCE_CODE_USED
...
#endif

though the define is set, code stays grayed. What am I doing wrong?
When I get those sources opened in Eclipse editor, everything works fine.

Thank you!
Title: Re: Split windows and defines in C++
Post by: BlueHazzard on October 16, 2019, 02:23:04 pm
Quote
1) I can split window using single source file. But several times I need to compare different files sources. Is it possible to cplit window and have, for example, one c++ source file at the left side, and the another one at the right?
take the tab of the editor with the mouse and drag it somewhere in the editor. This will move this tab to a new view.

Code
2) I have defines in header files, for example 
I think at the moment this is only per file and not for the whole project, but i can miss something here...