Author Topic: Split windows and defines in C++  (Read 164 times)

Offline zend

  • Single posting newcomer
  • *
  • Posts: 1
Split windows and defines in C++
« 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!

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2545
Re: Split windows and defines in C++
« Reply #1 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: [Select]
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...