User forums > Using Code::Blocks
Split windows and defines in C++
(1/1)
zend:
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!
BlueHazzard:
--- 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?
--- End quote ---
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
--- End code ---
I think at the moment this is only per file and not for the whole project, but i can miss something here...
Navigation
[0] Message Index
Go to full version